Save 15% on Instant Deploy Bare-Metal Servers in 26 Global Markets with Coupon Code: EdgeSave

How to take the backup of MBR on linux server?

Always recommended that you should take backup MBR.

It is hard disk partition table on your server.

We can use dd command to take a backup for MBR.

[root@~]# dd if=/dev/hdX of=/tmp/hda-mbr.bin bs=512 count=1

Replace X with the actual device name. ex. /dev/hda or /dev/sda

In order to restore it back on the server, use following command

[root@~]# dd if= hda-mbr.bin of=/hev/hdX bs=1 count=64 skip=446 seek=446

Share on Twitter
Share on Facebook