製造 GRUB boot 機碟

Create GRUB floppy:

– mke2fs /dev/fd0
– mount /dev/fd0 /media/floppy

– mkdir /media/floppy/boot/grub
– cd /boot/grub
– cp stage1 stage2 /media/floppy/boot/grub
– cp /boot/grub/menu.lst /boot/grub/device.map /media/floppy/boot/grub
– umount /dev/fd0
– grub
– device (fd0) /dev/fd0
– root (fd0)
– setup (fd0)
– quit

backup MBR:
dd if=/dev/hda of=/media/floppy/boot.mbr bs=512 count=1

restore MBR:
dd if=/media/floppy/boot.mbr of=/dev/hda bs=512 count=1

Leave a comment

Please leave your comment on the topic

This site uses Akismet to reduce spam. Learn how your comment data is processed.