Upload
srpio
View
220
Download
0
Embed Size (px)
Citation preview
7/28/2019 MBR - Backup and Restore
1/2
7/28/2019 MBR - Backup and Restore
2/2
How to restore MBR in Linux?
Since if the MBR is damaged, the operating system can't boot up. You need a Linux live CD to start
your computer. Linux live CD is a CD that contains Linux operating system. It doesn't need to be
installed on your hard disk an can be run from CDROM directly. For example,Puppy Linux. I
strongly advise you to make a live CD in advance. To boot from a live CD, insert the CD into yourCDROM and make sure the first boot device is the CDROM (you can change the order of boot
devices in BIOS). Then restart the computer. After a while, you will enter Linux environment. For
example, if the MBR image file (mbr.img) was at /home/admin/mbr.img and /dev/sda5 was
mounted as /home. You should mount /dev/sda5 at first.
Step 1. Open terminal and execute the following command to make a directory:
mkdir tmp
Step 2. Mount /dev/sda5 to the "tmp" directory:
mount /dev/sda5 tmp
Step 3. Change the current directory to tmp/admin:
cd tmp/admin
Step 4. Restore the MBR:
dd of=/dev/sda if=mbr.img bs=512 count=1
After that you can reject the live CD and restart your computer. If there are not other problems, your
computer will work again.
If you are interested in MBR backup and restore in Windows too, check the article How to backupdisk partitions.
http://www.puppylinux.org/http://www.puppylinux.org/http://www.backuphowto.info/how-to-backup-disk-partitionshttp://www.backuphowto.info/how-to-backup-disk-partitionshttp://www.puppylinux.org/http://www.backuphowto.info/how-to-backup-disk-partitionshttp://www.backuphowto.info/how-to-backup-disk-partitions