Linux boot error MBR

Source: Internet
Author: User

When starting the Linux operating system, sometimes due to misuse of the system will not start normally, and these errors are related to grub, here we have a simple simulation of this situation and solve the problem of not starting properly. First, let's take a look at the Linux startup flowchart:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/41/E4/wKiom1PWZAOicS_XAAFA-DOwBu4974.jpg "title=" 230916p2ii000w00ie06e6.jpg "alt=" Wkiom1pwzaoics_xaafa-dowbu4974.jpg "/>

Simulation of the first phase failure and repair
We use a command to simulate the first 446 bytes of the MBR by overriding the method.

Then we restart the Linux system, this time only this interface, and can't get into the system

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/41/E5/wKiom1PWZbei3xGUAAD30pAZfo0620.jpg "title=" QQ picture 20140728230004.jpg "alt=" Wkiom1pwzbei3xguaad30pazfo0620.jpg "/>

Next we will find a way to get the system back to normal, first we have to add the CD-ROM drive, and then reboot, to boot on the CD. An interface like this will appear:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/41/E6/wKioL1PWZxvwIgK0AAErXaeA5Ok051.jpg "title=" QQ picture 20140728230148.jpg "alt=" Wkiol1pwzxvwigk0aaerxaea5ok051.jpg "/>

Then we have to go into rescue mode to repair the system. Enter the rescue mode by entering a command at the back of the boot:
The interface that Linux rescue will enter at this time

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/41/E8/wKioL1PWaPTSoEK0AAD7FfHnJkQ728.jpg "title=" QQ picture 20140728230518.jpg "alt=" Wkiol1pwaptsoek0aad7ffhnjkq728.jpg "/>

Then press ENTER to continue, when the interface appears

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/41/E7/wKiom1PWZ__DBDRNAADNP12PBuI250.jpg "title=" QQ picture 20140728230530.jpg "alt=" Wkiom1pwz__dbdrnaadnp12pbui250.jpg "/>

Since we are trying to simulate the repair system, configure the network here to select No and continue until it appears

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/41/E8/wKiom1PWaDfDxh3EAAJmKkn6M6g004.jpg "title=" QQ picture 20140728230637.jpg "alt=" Wkiom1pwadfdxh3eaajmkkn6m6g004.jpg "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/41/E9/wKiom1PWaR3Rv-naAACtYlzhVn8854.jpg "title=" QQ picture 20140728231445.jpg "alt=" Wkiom1pwar3rv-naaactylzhvn8854.jpg "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/41/E9/wKioL1PWakqRD62WAACsVHFaRuU900.jpg "title=" QQ picture 20140728231507.jpg "alt=" Wkiol1pwakqrd62waacsvhfaruu900.jpg "/>

At this point we are going to switch to this directory and use the Chroot/mnt/sysimage command. Then we can execute the order.
Because this is the first stage of the problem, so we have to install the first phase of the required files,
Using the command: GRUB-INSTALL/DEV/SDA

Then the installation is ready, we will restart the system, then the system will return to normal.


This article is from the "Jeffery blog" blog, please be sure to keep this source http://oceanszf.blog.51cto.com/6268931/1531805

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.