For mbr backup to floppy:
dd if=/dev/hda of=/dev/fd0 bs=512 count=1
Floppy will boot like the hd does.
For bootsector backup:
dd if=/dev/[partition] of=/dev/fd0 bs=512 count=1
Floppy will boot like partition does.
For backup of either to file (mbr in this case):
dd if=/dev/hda of=/mbr.bak bs=512 count=1
If you want to copy back to hd, keep in mind that parititon info is in the first 16 bytes of the mbr, you will need to skip it if you don't want new partition data overwritten.
|