Download your favorite Linux distribution at LQ ISO.
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 01-04-2004, 12:32 AM   #1
LQ Newbie
Registered: Jan 2004
Posts: 1

Rep: Reputation: 0
Grub boot to CD

Just want to know how to edit the grub file to boot to a CD... tried

title CD
root (cd0)

I was just fooling around and it didn't work :( The real command would be useful
Old 01-04-2004, 04:31 AM   #2
Registered: Jun 2002
Location: TX, USA
Distribution: Slackware
Posts: 381

Rep: Reputation: 31
title CD
rootnoverify (cdrom,0)

if not try "/dev/cdrom"
I'm just guessing... i'm not at my pc right now...
Old 01-04-2004, 07:23 AM   #3
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
AFAIK grub does support booting a CD natively, but if someone knows how to do it please let me know.
In the meantime try this, download this bootsector file and put it in your /boot
and add in grub.conf/menu.lst:
title Floppy/CDROM
chainloader /boot/bootflop.bin +1
what this file does is that it'll first try booting from the floppy, if one isnt present then it'll try to boot from the cdrom, a bit of a nuisance but hey it works.
Old 01-13-2004, 10:50 AM   #4
Registered: Sep 2003
Location: Austin TX
Distribution: Slackware 9.1
Posts: 56

Rep: Reputation: 15
Does anyone have a hack of this bootsector that will just jump to the booting from CD instead of testing the floppy first?
Old 01-13-2004, 12:46 PM   #5
Registered: Jan 2004
Location: California
Distribution: SuSE10.1, Ubuntu Edgy, Fedora 7
Posts: 30

Rep: Reputation: 15
CMOS Option

You should be able to modify the boot order in the CMOS, just change the first boot device to CDROM, it is commonly set to floppy.
Old 01-13-2004, 03:50 PM   #6
Registered: Sep 2003
Location: Austin TX
Distribution: Slackware 9.1
Posts: 56

Rep: Reputation: 15
Well, the point is not to boot the system to the CDROM. That I know how to do.

What I have is a floppy disk that I need to leave in the drive and have it bypass it to the CDROM unless another option is being selected. I am using grub on a FAT12 floppy disk. I have a Freedos boot sector for when I want to boot to the floppy. I want to use this bootsector (minus the floppy check) as the default option.

This way I can boot to the floppy if I select it, otherwise it will resume booting to the other devices.

Unfortunately I know very little about x86 assembly code otherwise I would have done it by now.


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
gentoo : grub: The file /boot/boot/grub/stage1 not read correctly Boudewijn Linux - Software 3 05-21-2008 03:13 AM
need to access /boot/grub/menu.lst and /boot/grub/ neouto Linux - Newbie 8 09-04-2005 11:45 AM
Setting password on grub, wha to do after changing default values in /boot/grub/menu. sarajevo Linux - Security 1 08-17-2005 08:01 PM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 08:13 PM
Trying to dual-boot XP and RH9 with GRUB...GRUB stops right after BIOS EvilYoda Linux - Newbie 5 06-20-2003 03:38 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:00 AM.

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