if you are interested to contribute your LAB PROGRAM Please send mail to jkumaron@gmail.com

Backup Restore MBR And Partition Table Linux

1)Master Boot sector it is 512 bytes
2)Locate at the First Sector in Hard Disk or Storage Device
3)MBR Total Size 512 Bytes
Bootstrap = 446 bytes
Partition Table = 64 bytes
Signature = 2 bytes

Backup Only Master Boot Sector Not Partition Table
#dd if=/dev/sda of=/tmp/mbr.bak bs=512 count=1
#dd if=/tmp/mbr.bak of=/dev/sdb bs=446 count=1

Backup Only the Partition Not Master Boot Sectore MBR
#dd if=/dev/sda of=/tmp/part.bak bs=512 count=1
#dd if=/tmp/part.bak of=/dev/sdb bs=1 count=64 skip=446 seek=446

How to Create the Boot Load in MBR Refer the Link Restore Recreate Lost MBR Grub Boot Loader Linux

Related post