"Linux system" simulating MBR sector failure and recovery

Source: Internet
Author: User

First, it is the first step to build an experimental environment before doing the experiment, and the next is to do the experiment.

The following is my experimental environment: prepare a virtual machine with a Linux system (I use the Linux6 version of the virtual machine), and the system to have two disks, that is to add a disk. The newly added disk will be partitioned and formatted before the MBR sector failure can be simulated. However, before you perform a simulated MBR sector failure, you need to back up the disk before the data is lost. The MBR sector is restored.

Partition and format the disk, if you do not understand, please see my previous write "Linux system" disk partition one of the partitions.

650) this.width=650; "title=" Picture 1.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M00/6C/5F/ Wkiol1virmvaa6xqaaja9orr3iu185.jpg "alt=" Wkiol1virmvaa6xqaaja9orr3iu185.jpg "/>

650) this.width=650; "title=" Picture 2.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M00/6C/63/ Wkiom1viq1vbj-rqaak7pme9a2k242.jpg "alt=" Wkiom1viq1vbj-rqaak7pme9a2k242.jpg "/>

650) this.width=650; "title=" Picture 3.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M01/6C/5F/ Wkiol1virmza5dksaaf_dcy3sgg532.jpg "alt=" Wkiol1virmza5dksaaf_dcy3sgg532.jpg "/>

650) this.width=650; "title=" Picture 4.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M01/6C/63/ Wkiom1viq1yy6vxzaajldqmrvug306.jpg "alt=" Wkiom1viq1yy6vxzaajldqmrvug306.jpg "/>

The following is a detailed procedure for MBR sector simulation failure and recovery

650) this.width=650; "title=" Picture 5.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M02/6C/60/ Wkiol1virmzworygaaijbjuxldy682.jpg "alt=" Wkiol1virmzworygaaijbjuxldy682.jpg "/>

After the configuration is complete, enter init 6 to reboot. But after this interface, press ESC and enter to confirm.

650) this.width=650; "title=" Picture 6.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M02/6C/63/ Wkiom1viq13gwvvtaakyywluq40775.jpg "alt=" Wkiom1viq13gwvvtaakyywluq40775.jpg "/>

Enter the following statement for Linux rescue.

650) this.width=650; "title=" Picture 7.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M00/6C/60/ Wkiol1virm2ybt2naaavxja4xga500.jpg "alt=" Wkiol1virm2ybt2naaavxja4xga500.jpg "/>

The basic of the following is to press the TAB key and enter OK. There is one exception, however, which is specifically presented below.

650) this.width=650; "title=" Picture 8.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M00/6C/63/ Wkiom1viq12h1vd7aaexrrgr-ye053.jpg "alt=" Wkiom1viq12h1vd7aaexrrgr-ye053.jpg "/>

The question here is, is your system going to install a network interface? After pressing the TAB key, select No in the Enter OK.

650) this.width=650; "title=" Picture 10.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M01/6C/63/ Wkiom1viq13crwsgaadjujkjmby521.jpg "alt=" Wkiom1viq13crwsgaadjujkjmby521.jpg "/>

650) this.width=650; "title=" Picture 13.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M00/6C/60/ Wkiol1virm6wnfqkaabpzykjqsy896.jpg "alt=" Wkiol1virm6wnfqkaabpzykjqsy896.jpg "/>

650) this.width=650; "title=" Picture 14.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M02/6C/60/ Wkiol1virm7azxppaajrg7xieug682.jpg "alt=" Wkiol1virm7azxppaajrg7xieug682.jpg "/>

After rebooting, check. (Check to see if the SDA disk is restored.)

650) this.width=650; "title=" Picture 16.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M01/6C/60/wKioL1VIRM_ Gp3vqaaf6m_98mja776.jpg "alt=" Wkiol1virm_gp3vqaaf6m_98mja776.jpg "/>

This article is from the "Routing" blog, so be sure to keep this source http://9863378.blog.51cto.com/9853378/1642049

"Linux system" simulating MBR sector failure and recovery

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.