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 ?

  • 1
    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? 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
  • 4
    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
  • @Gzorg, please accept the answer if it has helped you. This helps other users as well.
    – MERose
    Apr 27 '15 at 21:56

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


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.



Try this:

title Boot from CD
cdrom --init
map --hook
chainloader (cd0)

(I added boot command at the and line)

  • 2
    Does not work ... Sep 28 '16 at 7:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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