LinuxMBR and Partition Table backup and recovery

Source: Internet
Author: User
LinuxMBR and Partition Table backup and recovery-Linux general technology-Linux technology and application information, the following is a detailed description. Back up MBR partitions
1. Use fdisk-l to determine the MBR location
2. Back up MBR
Dd if =/dev/sda1 of =/root/mbr bs = 512 count = 1
3. Restore MBR
Dd if =/root/mbr of =/dev/sda1 bs = 512 count = 1
4. Restore A partitioned table
Dd if =/root/mbr of =/dev/sda1 bs = 512 skip = 446 count = 66

Note: The mbr size is 512, so bs = 512 count = 1
Bs = 512 skip = 446 count = 66 is used to determine the location of the partition table in the backup file
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.