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
-
Picked these up for my TRON Legacy theme build. Got the optional light bar upgrade kit(s). Note, for a quad channel package you will need two light bar kits as each covers two sticks. No issues...
-
I honestly love this cooler, but I think I'm gonna move on to another one soon, it just looks... A bit to bland compared to other flaming red (literally) coolers on the market.
-
Metro 2033 is one of the greatest FPS games ever made. Although not usually recognized as such, due to the horrible state the gaming industry is in, it succeeds largely on its storytelling,...
-
This is an update of the original Fractal Design Arc Midi. The solid left panel has been replaced by a panel with a plexiglass window and the top USB ports are now USB-3.0. Let me state at the...
-
I've used this headset extensively for MAG on PS3. The sounds were wonderful, the mic was crisp, and the ability to adjust peoples voice volume is absolutely invaluable. For $100 ( or less ) this...
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,381
- Rep: 327 (Unique: 213)
- 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,385
- Rep: 128 (Unique: 98)
- Reviews: 3
- Folding Team Rank: 3,079
-
Name Team Rank Points / May Work Units / May JLloyd13 3,079 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,381
- Rep: 327 (Unique: 213)
- 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,385
- Rep: 128 (Unique: 98)
- Reviews: 3
- Folding Team Rank: 3,079
-
Name Team Rank Points / May Work Units / May JLloyd13 3,079 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,381
- Rep: 327 (Unique: 213)
- 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,385
- Rep: 128 (Unique: 98)
- Reviews: 3
- Folding Team Rank: 3,079
-
Name Team Rank Points / May Work Units / May JLloyd13 3,079 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 1621 Active Users
(453 Members and 1168 Guests)
Recent Discussions
- › The red club 8 seconds ago
- › 780 SLI vs Single Titan for Modded Skyrim at 1440p 19 seconds ago
- › Auto 3.3Ghz 23 seconds ago
- › Water cooling or second gtx 780? 1 minute ago
- › monitoring program like msi afterburner 1 minute ago
- › [Appraisal] Asus gtx 680 2 minutes ago
- › [Official] 1440p and Above Gaming Club (1440p+) 2 minutes ago
- › [Official] NVIDIA GTX 670 Owners Club 2 minutes ago
- › Broswer and Why? 3 minutes ago
- › [Official] NVIDIA GTX 660TI Owners club 3 minutes ago
View: New Posts | All Discussions
Recent Reviews
- › CORSAIR Dominator Platinum 16GB (4 x 4GB) 240-Pin DDR3 SDRAM DDR3... by TLHarrell
- › Cooler Master Hyper 212 EVO CPU Cooler (RR-212E-20PK-R1) by junhawng
- › Metro: Last Light - Standard Edition by boredgunner
- › Fractal Design Arc Midi R2 FD-CA-ARC-R2-BL-W Computer Case With... by Alan G
- › Wireless Stereo Headset by DoomDash
- › GIGABYTE Radeon HD 7870 GHz Edition GV-R787OC-2GD Video Card by VitalShot
- › Crucial Ballistix sport 16GB (2 x 8GB) 240-Pin DDR3 SDRAM DDR3 1600... by Fieldsweeper
- › Creative 70SB150000000 Sound Card by Fieldsweeper
- › ASUS PB Series PB278Q 27"" 5ms (GTG) WQHD Widescreen LED... by R3apR369
- › SilverStone Aluminum Body ATX Full Tower Computer Case TJ07B -... by R3apR369
View: More Reviews
New Articles
- › METRO 2033 STARTUP CRASH FIX WORKS by xiangelo
- › 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
- › Efficiency Trials by dava4444
- › How on EARTH Do I Build a Computer??... by dava4444
- › How to rip a Windows 7/8 Image using WinPE4.0... by RagingCain
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




