View previous topic :: View next topic |
Author |
Message |
ike n00b
Joined: 06 Sep 2002 Posts: 21
|
Posted: Sun Sep 08, 2002 3:19 pm Post subject: how to install grub in floppy disk? |
|
|
i already install freebsd's boot manger in MBR , and i not want to install grub in MBR, so i want to install it in floppy disk , use floppy disk boot my gentoo linux.
how to do it? |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Sun Sep 08, 2002 4:56 pm Post subject: |
|
|
You can do:
instead of setup (hd0) as described in the install guide. This will put grub on a floppy.
You can also make a grub boot disk using these instructions. |
|
Back to top |
|
|
ike n00b
Joined: 06 Sep 2002 Posts: 21
|
Posted: Mon Sep 09, 2002 4:24 am Post subject: |
|
|
i follow the steps, but grub can not identify floppy disk file system.
mke2fs /dev/fd0
# cd /usr/share/grub/i386-pc
# dd if=stage1 of=/dev/fd0 bs=512 count=1
1+0 records in
1+0 records out
# dd if=stage2 of=/dev/fd0 bs=512 seek=1
153+1 records in
153+1 records out
device (fd0) /dev/fd0
root (fd0)
setup (fd0) ----in this step ,it's abort
quit
anything i make mistake?
and i find stage1 size just 512, isn't it?
thanks |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Mon Sep 09, 2002 3:47 pm Post subject: |
|
|
I guess you went with the second option. If you go that way, you put stage 1 and stage2 directly on the floppy. You need not (should not) do anything other than dd'ing stage1 and stage2 as you describe below. During boot with the floppy, you would have to do something like:
Code: |
kernel (hd0,1)/boot/bzImage
boot root=/dev/hda3
|
Note: (hd0,1) and /dev/hda3 are hypothetical and need to be replaced with the actual things on your box.
The first method I suggested is a little bit easier and takes out typing above in the grub menu during boot. Basically, you do everything as per the install guide; however, instead of 'setup (hd0)', you do 'setup (fd0)'. The root and other commands should be exactly as described in the install guide. This will put the stage1 on the floppy, but stage2 and menu.lst will be used from the /boot partition (or directory) under gentoo.
There is a third method that allows write a ext2 floppy with grub directories and then load stage2 from there. I won't describe it however unless you really want to go that way.
ike wrote: | i follow the steps, but grub can not identify floppy disk file system.
mke2fs /dev/fd0
# cd /usr/share/grub/i386-pc
# dd if=stage1 of=/dev/fd0 bs=512 count=1
1+0 records in
1+0 records out
# dd if=stage2 of=/dev/fd0 bs=512 seek=1
153+1 records in
153+1 records out
device (fd0) /dev/fd0
root (fd0)
setup (fd0) ----in this step ,it's abort
quit
anything i make mistake?
and i find stage1 size just 512, isn't it?
thanks |
|
|
Back to top |
|
|
|