Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-31-2005, 12:13 PM   #1
LQ Newbie
Registered: Jul 2004
Location: Germany
Posts: 24

Rep: Reputation: 15
How to tell GRUB to boot an other bootloader

I would like to add two more options to the GRUB boot menu. "CD" to boot from a CD-ROM (secondary master) and "Second Hard-drive" to boot from my second hard-drive(primary slave). This should be independent from the operating system or partitions of the other drives. So GRUB should just call the bootloader (MBR) on the other media. I only found configuration examples how to start an operating system on the same drive as GRUB where the type of operating system and partition is well known. Has someone a configuration example how to do this?

A second not so important question:
Every time "apt-get upgrade" upgrades the kernel, the "menu.lst" file is overwritten and changes like a splashimage were lost. Is there a way that I don't need to modify "menu.lst" after every kernel-update (adding new entires is OK, but it should not remove individual entires - like the wished entires "CD" and "Second Hard-drive" above)?
I am using Debian/testing.
Thank you in advanced.
Old 05-31-2005, 02:28 PM   #2
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
Booting from a CD has nothing to do with Grub. If the CD drive is enabled as a boot device (before the HD) in BIOS and the CD in it is a bootable one, the OS present on CD shouldn't allow Grub to load, but load itself instead.
As for booting an OS on another partition, add an entry into /boot/grub/menu.lst which should look like this:
title    OS_name_here
rootnoverify  (hdN)
as an example for a Windows OS.
For more information, check

Last edited by harken; 05-31-2005 at 02:30 PM.
Old 06-04-2005, 12:32 AM   #3
LQ Addict
Registered: Oct 2003
Location: Australia
Distribution: MX 16
Posts: 5,296

Rep: Reputation: Disabled
change your menu.lst file to include will need root powers to save the change....

title mbr #line 1
rootnoverify (hd0)#line 2
chainloader 0+1#line 3 or 4

(edit) insert a command b4 chainloader command if you have a dos bootable partition that has no bootable flag set so its insert

makeactive #line 3 for dos bootable flag is off

will get you to the first DETECTED by bios.... drive so your hd question would be change line 2 to

Naturally this is a stupid thing to do as you can boot up any MS partition using booting files on your first drive with grub installed on the first MBR.

If you don't understand my tutorial feel free to reply I think I have examples.

2) cant help with debian types

3) and as Harken suggests to get to a cdrom you change the BIOS boot order to

cdrom then hard drive.......which is how I leave it.......if no BOOTABLE cd is detected or no cdrom in drive the bios jumps to the next device to try

Last edited by aus9; 06-04-2005 at 12:36 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
boot usb via grub or bootloader? netsurf Linux - Hardware 5 06-28-2005 08:45 AM
change default OS to boot from grub bootloader. trempel Ubuntu 5 05-27-2005 09:20 PM
grub or lilo bootloader selection during boot pcandpc Linux - Newbie 7 05-25-2005 05:38 PM
Setting up GRUB Bootloader to boot from CD davstin2002 Linux - Software 4 05-26-2004 03:41 AM
how to hide GRUB bootloader while booting a duel boot system ( linux/windows ) ? dommini Linux - General 0 12-03-2003 04:48 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:27 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration