How to take the backup of MBR on linux server? Print

  • 2

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
=================================


Was this answer helpful?

« Back