LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Grub boot to CD (https://www.linuxquestions.org/questions/linux-newbie-8/grub-boot-to-cd-131316/)

popp 01-04-2004 12:32 AM

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

FreakboY 01-04-2004 04:31 AM

title CD
rootnoverify (cdrom,0)

if not try "/dev/cdrom"
I'm just guessing... i'm not at my pc right now...

Demonbane 01-04-2004 07:23 AM

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
http://ryantsai.ozforces.com.au/bootflop.bin
and add in grub.conf/menu.lst:
Code:

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.

metagore 01-13-2004 10:50 AM

Does anyone have a hack of this bootsector that will just jump to the booting from CD instead of testing the floppy first?

MrOuija 01-13-2004 12:46 PM

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.

metagore 01-13-2004 03:50 PM

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.


All times are GMT -5. The time now is 06:23 PM.