Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to install grub in floppy disk?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
ike
n00b
n00b


Joined: 06 Sep 2002
Posts: 21

PostPosted: Sun Sep 08, 2002 3:19 pm    Post subject: how to install grub in floppy disk? Reply with quote

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
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Sun Sep 08, 2002 4:56 pm    Post subject: Reply with quote

You can do:
Code:

setup (fd0)

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
View user's profile Send private message
ike
n00b
n00b


Joined: 06 Sep 2002
Posts: 21

PostPosted: Mon Sep 09, 2002 4:24 am    Post subject: Reply with quote

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
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Mon Sep 09, 2002 3:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum