Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Instead of going to the BIOS every time, I'd like to add an entry in grub menu to boot the CD-ROM.

Best definitive way of doing this ?

share|improve this question
    
most folk just leave CDROM as the first boot device in the BIOS and the boot drive as second. the BIOS will skip over the CD drive if it's empty. any particular reason you've been changing the BIOS each time? –  quack quixote Oct 21 '09 at 20:24
    
I do that too. But why grub wouldn't be able to do it ? It can boot from the network, does chaining... why not the CD-ROM ? –  Gzorg Oct 21 '09 at 21:48
1  
One reason to not let the BIOS do this is because it can sometimes drastically make the boot process slower (at least by about 1-5 seconds if there is something inside the drive). –  Albert Jun 18 '10 at 14:30

2 Answers 2

Step 1: Download the memdisk.bin from here or if you have syslinux installation, you can use the installed memdisk.bin.

Step 2: Download the sbootmgr.dsk from here or if you have any version of Slackware CD-1, /isolinux/sbootmgr/sbootmgr.dsk file you can use.

Step 3: Copy both memdisk.bin and sbootmgr.dsk in your grub existing grub installation path, /boot/grub.

Step 4: Add the following entry in your existing grub menu. Note: root(hd0,0) should be according to your configuration.

title CDROM

root(hd0,0)

kernel /boot/grub/memdisk.bin

initrd /boot/grub/sbootmgr.dsk

Step 5: I hope you need not to run grub-install again. If necessary you can do.

Step 6: Reboot the machine.

Step 7: You can see an entry called CDROM in grub menu list. Select the entry. You will be shown boot device selection screen showing all your harddisk and CDROM drives. Insert your bootable CDROM in the CD Drive and select that drive from menu. Waavv..!! your machine is booted from that CD.

Source

share|improve this answer
    
I saw this too, but I didn't know whether I should trust a third party thing like this. Given the disclaimer and the warnings one can find here lrz-muenchen.de/~bernhard/grub-chain-cd.html... So I tried, and ... it hangs at "Loading boot sector... booting..." –  Gzorg Oct 21 '09 at 21:55

Try this:

title Boot from CD
cdrom --init
map --hook
chainloader (cd0)
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.