bash% cd /boot/grub bash% dd if=stage1 of=/dev/fd0 bs=512 count=1 bash% dd if=stage2 of=/dev/fd0 bs=512 seek=1
bash% mke2fs -N 32 /dev/fd0 bash% mount /dev/fd0 /mnt/floppy bash% mkdir /mnt/floppy/boot bash% mkdir /mnt/floppy/boot/grub bash% cp /boot/grub/stage1 /mnt/floppy/boot/grub bash% cp /boot/grub/stage2 /mnt/floppy/boot/grub bash% cp /boot/hello /mnt/floppy/boot/grub bash% cat > /mnt/floppy/boot/grub/menu.lst timeout=10 default=0 # Entry 0: title= floppy root= (fd0) kernel= /boot/hello ^D bash% sync && umount mnt/floppy
grub> root (fd0) Filesystem type unknown, using whole disk grub> setup (fd0) Checking if "/boot/grub/stage1" exists... yes Checking if "/boot/grub/stage2" exists... yes Running "Install /boot/grub/stage1 d (fd0) /boot/grub/stage2 p /boot/grub/menu.lst"... succeeded Done.