LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to chain load grub on a floppy? (https://www.linuxquestions.org/questions/linux-general-1/how-to-chain-load-grub-on-a-floppy-217668/)

zero79 08-14-2004 06:54 PM

how to chain load grub on a floppy?
 
how do i add a grub menu entry that will chainload another instance of grub that is on a floppy disk?

i've tried

Code:

title floppy disk
root (fd0)

and

Code:

title floppy disk
root (fd0)
chainloader +1

neither of which worked. what is the proper way to do this?

i know i can easily set up the floppy to boot first in the bios, but i want to have password protection. thanks for your thoughts.

qwijibow 08-14-2004 08:43 PM

this will only work of the floppy disk in the drive is bootable.

try replacing root with rootnoverify incase the disk's format is not reconised by grub.

futhark 08-14-2004 08:50 PM

I don't have a reply to the original question but that reminds me something I tried a while ago. Is it possible to have grub chainload a bootable cdrom?

qwijibow 08-14-2004 10:52 PM

nope. grub will boot hard disk partitions and floppy disks, maybe even usb media, but not cd-roms.

zero79 08-15-2004 12:45 AM

they're working on implementing cdrom chainloading i believe (someone had submitted a patch about a month ago).

the disk was formatted as ext2, so grub does recognize the file system. the disk is bootable because i can select boot from floppy in the bios and grub will be started from the floppy.

do i need to get it to start one of the stage files on the floppy?

qwijibow 08-15-2004 09:14 AM

okay, now im confused, i thought u had grub on a hard disk, and you were boting the hard disk, then chainloading a bootable floppy...

but you have grub on the floppy ?

but you have nothing on the floppy, just grub ?

one of us is confused !

zero79 08-15-2004 10:49 AM

grub is on both the floppy disk and the hard disk mbr.

the instance of grub on the hard disk presents to me the boot options in (hd2,0)/grub/menu.lst. i want one of the options here to be able to load up and present the grub boot menu that is stored on the floppy.

the instance of grub on the floppy presents the boot options in (fd0)/boot/grub/menu.lst. i was just wondering if there was a way to start or chainload (fd0)/boot/grub/stage1 or something from the grub interface on the hard disk.

qwijibow 08-15-2004 11:25 AM

i cant see what advantage this has, but yeah, just chain load it.

zero79 08-15-2004 12:19 PM

like i said, i want to password protect booting via floppy.

so now, how do i chain load grub on the floppy?

qwijibow 08-15-2004 01:00 PM

oh...

use password=(md5ed password)

info grub will tell you how to generate a passwords md5sum.

zero79 08-15-2004 01:13 PM

i know how to set a password for a grub menu entry.

how do i chain load grub on the floppy?

qwijibow 08-15-2004 04:51 PM

we seem to be going in circles...

i told you how to chainload, then you ask about passowrds, i tell you about passwords and you ask about chainloading.


All times are GMT -5. The time now is 10:20 AM.