this may seem like a dumb question, but I can't find a good online answer to this. what is the best way to add an entry to grub (in debian) basically, switched over to my debian install, did a dist upgrade and when updating grub it removed the entries for my arch install. I found the file where the menu is listed, but it says you should not edit it, and instead points me to another file in which I have no idea what to do
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › adding entrys to grub -Debian
Featured Sponsors
Recent Reviews
-
Wow, I'm quite surprised that I am the first one to review this monitor. I probably won't be able to get all technical with this review, but I would like to write out what makes this a great...
-
I remember the first time I set my eyes on the Silverstone TJ07. It was like looking A PC Tower that screamed quality and versatility! The case is very light, unlike other full tower cases. Thumbs...
-
I had this case for a good while and it was such a joy. Everyone that saw my computer called it "The Tank" because they loved the beefy looks of it. I found the case to be very easy to work with...
-
I run 2 of these in my Quad-SLI rig. 0 coil whine... Software has worked well for me, not without "some" problems but, not a bad experience, either. When I called in about my issues (I purchased...
-
Okay. So I am kind of a nerd for finding computer cases and what I think looks good and matches peripherals and such. Many people don't pay attention to these things but I happen to and I'm glad I...
adding entrys to grub -Debian
post #2 of 9
10/25/12 at 7:08pm
- Shrak
- (╯°□°)╯︵ ┻━┻
-



- Joined: Dec 2011
- Location: Virginia Beach, VA
- Posts: 6,306
- Rep: 326 (Unique: 212)
- Select All Posts By This User
You'd be better off just doing a grub-mkconfig -o /boot/grub/grub.cfg so that it adds Arch back. ( if it doesn't then you may need os-prober, though normally you don't with other Linux distro's ).
/etc/grub.d/40_custom is the file to add custom entries too manually though ( at least in arch ).
Edited by Shrak - 10/25/12 at 7:11pm
/etc/grub.d/40_custom is the file to add custom entries too manually though ( at least in arch ).
Edited by Shrak - 10/25/12 at 7:11pm
post #3 of 9
10/25/12 at 9:22pm
- Metmop
- Linux Lobbyist
- Joined: Nov 2010
- Location: Duluth, MN
- Posts: 94
- Rep: 10 (Unique: 9)
- Select All Posts By This User
Meh
(14 items) |
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| i5 760 @ 3.8 Ghz | GA-P55-USB3 | Gigabyte GTX 460 | 16GB(4x4) Corsair Vengeance |
| Hard Drive | Optical Drive | Cooling | OS |
| Samsung Spinpoint F3 1TB | Asus Cheapo | Corsair H70 | Arch Linux |
| Monitor | Keyboard | Power | Case |
| LG 26LH20 HDTV | Das Model S Ultimate Silent | Corsair HX850 | Lian Li(Lancool) PC-K62 |
| Mouse | Mouse Pad | ||
| Logitech MX 518 | My desk. | ||
| View all | |||
Meh
(14 items) |
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| i5 760 @ 3.8 Ghz | GA-P55-USB3 | Gigabyte GTX 460 | 16GB(4x4) Corsair Vengeance |
| Hard Drive | Optical Drive | Cooling | OS |
| Samsung Spinpoint F3 1TB | Asus Cheapo | Corsair H70 | Arch Linux |
| Monitor | Keyboard | Power | Case |
| LG 26LH20 HDTV | Das Model S Ultimate Silent | Corsair HX850 | Lian Li(Lancool) PC-K62 |
| Mouse | Mouse Pad | ||
| Logitech MX 518 | My desk. | ||
| View all | |||
- jrl1357
- Linux Lobbyist
-


- Joined: Feb 2012
- Location: Halifax N.S. Canada
- Posts: 3,372
- Rep: 128 (Unique: 98)
- Reviews: 3
- Folding Team Rank: 3,075
-
Name Team Rank Points / May Work Units / May JLloyd13 3,075 139,050 / 0 70 / 0 - Select All Posts By This User
Quote:
Originally Posted by Shrak 
You'd be better off just doing a grub-mkconfig -o /boot/grub/grub.cfg so that it adds Arch back. ( if it doesn't then you may need os-prober, though normally you don't with other Linux distro's ).
/etc/grub.d/40_custom is the file to add custom entries too manually though ( at least in arch ).

You'd be better off just doing a grub-mkconfig -o /boot/grub/grub.cfg so that it adds Arch back. ( if it doesn't then you may need os-prober, though normally you don't with other Linux distro's ).
/etc/grub.d/40_custom is the file to add custom entries too manually though ( at least in arch ).
isn't working for me even with os-prober. reinstalled grub and when I ran it again it said it found arch but its still not in the boot menu, the this very odd entry: Debian GNU/Linux with linux linux (/dev/sda4) (sda4 is my arch partition) just boots deian. some of the other entrys about /dev/sda4 fail to boot at all. however, arch is still there as I can chroot into it
Quote:
seen that, doesn't help me much as I need how to configure the files rather then what files to configure
The Daily (K)Module
(14 items) |
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| AMD Phenom II X4 B55 | Biostar A880GZ | AMD Radeon HD 4250 iGPU | 8GB (2x4GB) Patriot Sector 5 DDR3 |
| Hard Drive | Hard Drive | Hard Drive | Optical Drive |
| Seagate Barracuda 1TB (ST1000DM003) | Western Digital Caviar SE 250GB | Seagate External 1TB | LG DVD Burner |
| OS | OS | OS | Power |
| Debian GNU/Linux 6.0.6 'Squeeze' 64-bit | Arch Linux 64-bit | FreeBSD 9.0 64-bit | LPS Ultra 550 watt |
| Case | |||
| Thermaltake V4 | |||
| View all | |||
The Daily (K)Module
(14 items) |
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| AMD Phenom II X4 B55 | Biostar A880GZ | AMD Radeon HD 4250 iGPU | 8GB (2x4GB) Patriot Sector 5 DDR3 |
| Hard Drive | Hard Drive | Hard Drive | Optical Drive |
| Seagate Barracuda 1TB (ST1000DM003) | Western Digital Caviar SE 250GB | Seagate External 1TB | LG DVD Burner |
| OS | OS | OS | Power |
| Debian GNU/Linux 6.0.6 'Squeeze' 64-bit | Arch Linux 64-bit | FreeBSD 9.0 64-bit | LPS Ultra 550 watt |
| Case | |||
| Thermaltake V4 | |||
| View all | |||
post #5 of 9
10/26/12 at 9:00am
- Shrak
- (╯°□°)╯︵ ┻━┻
-



- Joined: Dec 2011
- Location: Virginia Beach, VA
- Posts: 6,306
- Rep: 326 (Unique: 212)
- Select All Posts By This User
Odd. This is just me but I'd just chroot the Arch install and run grub-install and grub-mkconfig from there and leave Arch to handle the grub menu's since that I know for a fact works regardless.
But as you know I also don't use Debian much so it could be a very debian specific problem, i don't know. Not a big fan of messing with boot loaders much.
But as you know I also don't use Debian much so it could be a very debian specific problem, i don't know. Not a big fan of messing with boot loaders much.
- jrl1357
- Linux Lobbyist
-


- Joined: Feb 2012
- Location: Halifax N.S. Canada
- Posts: 3,372
- Rep: 128 (Unique: 98)
- Reviews: 3
- Folding Team Rank: 3,075
-
Name Team Rank Points / May Work Units / May JLloyd13 3,075 139,050 / 0 70 / 0 - Select All Posts By This User
Quote:
Originally Posted by Shrak 
Odd. This is just me but I'd just chroot the Arch install and run grub-install and grub-mkconfig from there and leave Arch to handle the grub menu's since that I know for a fact works regardless.
But as you know I also don't use Debian much so it could be a very debian specific problem, i don't know. Not a big fan of messing with boot loaders much.

Odd. This is just me but I'd just chroot the Arch install and run grub-install and grub-mkconfig from there and leave Arch to handle the grub menu's since that I know for a fact works regardless.
But as you know I also don't use Debian much so it could be a very debian specific problem, i don't know. Not a big fan of messing with boot loaders much.
one thing that has bugged me about debian is that everything is so 'secure' sometimes you have to jump though hoops to get it to do what you want. anyway, I did this on my server a while back but forget how. I need to mount /proc and /tmp in my chroot or else any non basic thing I do is met with errors, ie pacman can't find certs. any help?
The Daily (K)Module
(14 items) |
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| AMD Phenom II X4 B55 | Biostar A880GZ | AMD Radeon HD 4250 iGPU | 8GB (2x4GB) Patriot Sector 5 DDR3 |
| Hard Drive | Hard Drive | Hard Drive | Optical Drive |
| Seagate Barracuda 1TB (ST1000DM003) | Western Digital Caviar SE 250GB | Seagate External 1TB | LG DVD Burner |
| OS | OS | OS | Power |
| Debian GNU/Linux 6.0.6 'Squeeze' 64-bit | Arch Linux 64-bit | FreeBSD 9.0 64-bit | LPS Ultra 550 watt |
| Case | |||
| Thermaltake V4 | |||
| View all | |||
The Daily (K)Module
(14 items) |
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| AMD Phenom II X4 B55 | Biostar A880GZ | AMD Radeon HD 4250 iGPU | 8GB (2x4GB) Patriot Sector 5 DDR3 |
| Hard Drive | Hard Drive | Hard Drive | Optical Drive |
| Seagate Barracuda 1TB (ST1000DM003) | Western Digital Caviar SE 250GB | Seagate External 1TB | LG DVD Burner |
| OS | OS | OS | Power |
| Debian GNU/Linux 6.0.6 'Squeeze' 64-bit | Arch Linux 64-bit | FreeBSD 9.0 64-bit | LPS Ultra 550 watt |
| Case | |||
| Thermaltake V4 | |||
| View all | |||
post #7 of 9
10/26/12 at 9:16am
- Shrak
- (╯°□°)╯︵ ┻━┻
-



- Joined: Dec 2011
- Location: Virginia Beach, VA
- Posts: 6,306
- Rep: 326 (Unique: 212)
- Select All Posts By This User
# mkdir /mnt/arch
# mount /dev/sda3 /mnt/arch
# mount /dev/sda1 /mnt/arch/boot/
# mount /dev/sdb5 /mnt/arch/home/
# mount ...
# cd /mnt/arch
# mount -t proc proc proc/
# mount -t sysfs sys sys/
# mount -o bind /dev dev/
# mount -t devpts pts dev/pts/
# chroot . /bin/bash
https://wiki.archlinux.org/index.php/Change_Root
Gotta love the wiki (ofc replace the drive numbers/letters with your own)
# mount /dev/sda3 /mnt/arch
# mount /dev/sda1 /mnt/arch/boot/
# mount /dev/sdb5 /mnt/arch/home/
# mount ...
# cd /mnt/arch
# mount -t proc proc proc/
# mount -t sysfs sys sys/
# mount -o bind /dev dev/
# mount -t devpts pts dev/pts/
# chroot . /bin/bash
https://wiki.archlinux.org/index.php/Change_Root
Gotta love the wiki (ofc replace the drive numbers/letters with your own)- jrl1357
- Linux Lobbyist
-


- Joined: Feb 2012
- Location: Halifax N.S. Canada
- Posts: 3,372
- Rep: 128 (Unique: 98)
- Reviews: 3
- Folding Team Rank: 3,075
-
Name Team Rank Points / May Work Units / May JLloyd13 3,075 139,050 / 0 70 / 0 - Select All Posts By This User
ok so we have good news and bad news.
good news: I can now boot into arch
bad news: when I start my computer it says something to the likes of 'can not out put to this display' so I a. have no idea weather arch is seeing debian b. am %100 blind in grub. looking on the wiki now for a solution
good news: I can now boot into arch
bad news: when I start my computer it says something to the likes of 'can not out put to this display' so I a. have no idea weather arch is seeing debian b. am %100 blind in grub. looking on the wiki now for a solution
The Daily (K)Module
(14 items) |
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| AMD Phenom II X4 B55 | Biostar A880GZ | AMD Radeon HD 4250 iGPU | 8GB (2x4GB) Patriot Sector 5 DDR3 |
| Hard Drive | Hard Drive | Hard Drive | Optical Drive |
| Seagate Barracuda 1TB (ST1000DM003) | Western Digital Caviar SE 250GB | Seagate External 1TB | LG DVD Burner |
| OS | OS | OS | Power |
| Debian GNU/Linux 6.0.6 'Squeeze' 64-bit | Arch Linux 64-bit | FreeBSD 9.0 64-bit | LPS Ultra 550 watt |
| Case | |||
| Thermaltake V4 | |||
| View all | |||
The Daily (K)Module
(14 items) |
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| AMD Phenom II X4 B55 | Biostar A880GZ | AMD Radeon HD 4250 iGPU | 8GB (2x4GB) Patriot Sector 5 DDR3 |
| Hard Drive | Hard Drive | Hard Drive | Optical Drive |
| Seagate Barracuda 1TB (ST1000DM003) | Western Digital Caviar SE 250GB | Seagate External 1TB | LG DVD Burner |
| OS | OS | OS | Power |
| Debian GNU/Linux 6.0.6 'Squeeze' 64-bit | Arch Linux 64-bit | FreeBSD 9.0 64-bit | LPS Ultra 550 watt |
| Case | |||
| Thermaltake V4 | |||
| View all | |||
post #9 of 9
10/26/12 at 4:06pm
- tom.slick
- 2.4ghz
-

- Joined: May 2009
- Location: Orange County
- Posts: 714
- Rep: 98 (Unique: 87)
- Trader Rating: 5
- Select All Posts By This User
Quote:
Originally Posted by jrl1357 
this may seem like a dumb question, but I can't find a good online answer to this. what is the best way to add an entry to grub (in debian) basically, switched over to my debian install, did a dist upgrade and when updating grub it removed the entries for my arch install. I found the file where the menu is listed, but it says you should not edit it, and instead points me to another file in which I have no idea what to do

this may seem like a dumb question, but I can't find a good online answer to this. what is the best way to add an entry to grub (in debian) basically, switched over to my debian install, did a dist upgrade and when updating grub it removed the entries for my arch install. I found the file where the menu is listed, but it says you should not edit it, and instead points me to another file in which I have no idea what to do
Quote:
put something like this in 40_custom
Code:
#!/bin/sh -e
echo "Adding Arch Linux to GRUB 2"
cat << EOF
menuentry "Arch Linux" {
set root=(hd0,4)
linux /boot/vmlinuz
initrd /boot/initrd
}
EOF
echo "Adding Arch Linux to GRUB 2" just displays during update-grub. change it to what ever you want
menuentry "Arch Linux" is what will show in the grub menu
set root=(hd0,4) means device 1 partition 4
It's a little different in grub2 device numbers start at 0 and partitions start at 1
I believe you said sda4 is your arch install so that would be hd,0,4
And of course adjust /boot/vmlinuz and /boot/initrd to what ever is in your arch boot directory
Make the script executable
And last but not least run update-grub as root
Also if you change the number in 40_custom to a lower number it will appear higher in the boot order .
So if debian is 20 make this 15 and it will be before debian. You can even change the rest of the name to
anything you want
Code:
15_ARCH_Install
just use "_" for a space
Core I7
(13 items) |
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| I7 920 rev. D0 @ 4.26Ghz | EVGA X58 SLI | EVGA GTX 285 | OCZ XMP 3x2Gb (pc3 12800) |
| Hard Drive | Optical Drive | OS | Monitor |
| Western Digital Caviar Black 640Gb x 2 | LG GH22LS30 | openSuse 12.1 x64 | HP F2105 |
| Power | Case | ||
| CORSAIR 850TX | Cooler Master ATCS 840 | ||
| View all | |||
Core I7
(13 items) |
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| I7 920 rev. D0 @ 4.26Ghz | EVGA X58 SLI | EVGA GTX 285 | OCZ XMP 3x2Gb (pc3 12800) |
| Hard Drive | Optical Drive | OS | Monitor |
| Western Digital Caviar Black 640Gb x 2 | LG GH22LS30 | openSuse 12.1 x64 | HP F2105 |
| Power | Case | ||
| CORSAIR 850TX | Cooler Master ATCS 840 | ||
| View all | |||
Return Home
Back to Forum: Linux, Unix
- adding entrys to grub -Debian
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › adding entrys to grub -Debian
Currently, there are 1444 Active Users
(322 Members and 1122 Guests)
Recent Discussions
- › 3770k 5Ghz 1.6v 6 seconds ago
- › [Official] Starcraft 2 Strategy & Discussion Thread 19 seconds ago
- › [OFFICIAL]--- Top 30 --- Unigine 'Valley' Benchmark 1.0 [Fill the... 1 minute ago
- › Needing help with copper pipes on a WC loop! 2 minutes ago
- › 4th BOINC Pentathlon - May 5th - 18th, 2013 2 minutes ago
- › With modern hard drives, do you need a fan blowing on them? 2 minutes ago
- › GPU Voltage 2D vs 3D 3 minutes ago
- › [pcghw] Metro Last Light on the benchmark 15 graphics cards tested... 3 minutes ago
- › Watercooled Corsair 350D 3 minutes ago
- › TATH \ Caselabs TH 10 + Pedastel "Hill 7.9" 5 minutes ago
View: New Posts | All Discussions
Recent Reviews
- › ASUS PB Series PB278Q 27"" 5ms (GTG) WQHD Widescreen LED... by R3apR369
- › SilverStone Aluminum Body ATX Full Tower Computer Case TJ07B -... by R3apR369
- › Cooler Master HAF 922 RC-922M-KKN1-GP Black Steel + Plastic and... by Steve1300
- › CORSAIR AX1200i 1200W Power Supply by Masked
- › Silverstone Tek Aluminum Mini ITX 140mm FanX1 USB3.0x2 3.5-Inchx1... by yancyv8
- › Xfx ProSeries 750W PSU by Ticklemehballlz
- › Logitech M310 Wireless Mouse (Blue Shards) by Mournful3ch0
- › Azio Headset GH808 Levetron USB Gaming Headset Retail by ViSioNx
- › Xigmatek Gaia SD1283 120mm Long Life Bearing CPU Cooler bracket... by ViSioNx
- › Cooler Master Storm Recon - Gaming Mouse with 4000 DPI Optical... by ViSioNx
View: More Reviews
New Articles
- › The CD/DVD Duplication Process by MichaelBurrows
- › Why are DNS Servers Important? How to make... by exzacklyright
- › Titanium Backup Guide For Newbies by exzacklyright
- › How to install ADB (Android Debug Bridge) by exzacklyright
- › How to take ownership of a file, folder, or... by exzacklyright
- › How to disable the open file security warning... by exzacklyright
- › Clean and Make a USB Bootable Flash Drive for... by exzacklyright
- › Do you Really Need Cell Phone Insurance by andyharris
- › Efficiency Trials by dava4444
- › How on EARTH Do I Build a Computer??... by dava4444
View: New Articles | All Articles
Home | Reviews | Forums | Articles | My Profile
About Overclock.net | Join the Community | Advertise | Contact Us | All Staff
© 2013 Shogun Interactive Development Overclock.net is powered by Huddler Tech | FAQ | Support | Privacy | ToS | DMCA | Site Map
About Overclock.net | Join the Community | Advertise | Contact Us | All Staff
© 2013 Shogun Interactive Development Overclock.net is powered by Huddler Tech | FAQ | Support | Privacy | ToS | DMCA | Site Map




