MBR

From Glee
Jump to: navigation, search

Backup/Restore

On the x86 architecture, the Master Boot Record is stored within the first 512 bytes of the boot disk. It's trivial to save or clone. Note that it also contains the DOS partition table.

Backup :

dd if=/dev/sda of=mbr.img bs=512 count=1

Restore :

dd if=mbr.img of=/dev/sdb bs=512 count=1