Přípravíme si disketu. Nejdříve ji naformátujeme programem format (superformat)
# fdformat /dev/fd0 ??? # mkfs.msdos /dev/fd0
Nebo superformat
# superformat FIXME:
FIXME:
# mount /media/floppy
# mkdir -p /media/floppy/boot/grub
# cp /usr/lib/grub/* /media/floppy/boot/grub/
# grub-install --root-directory=/media/floppy /dev/fd0
Probing devices to guess BIOS drives. This may take a long time.
Installation finished. No error reported.
This is the contents of the device map /media/floppy/boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
(fd0) /dev/fd0
(hd0) /dev/hda
#
cp /boot/grub/menu.lst /media/floppy/boot/grub/
Pozor na jádro řady 2.6.x! Zde je automounter jenž koliduje s grub-install. V tom případě je třeba automounter vypnout umount /media/floppy
, připojit disketu do jiného adresáře mount /dev/fd0 /mnt
a spustit grub-install takto:
#
grub-install --root-directory=/mnt /dev/fd0