Linux startup flowchart
650) this.width=650; "src=" http://s12.sinaimg.cn/mw690/00688Tvygy6ZKIbiI1Jbb&690 "width=" 690 "height=" 535 "name = "image_operate_47601456750209783" alt= "Analog Linux boot Fault and solution" title= "simulate Linux boot failure and solution" style= "margin:0px;padding:0px; Border:0px;list-style:none; "/>
(i)
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 .
DD If=/dev/zero OF=/DEV/SDA bs=446 count=1
then we restart the Linux system, this time only this interface, and can't get into the system
650) this.width=650; "src=" http://s9.sinaimg.cn/mw690/00688Tvygy6ZKISGNlu88&690 "width=" 555 "height=" 143 "alt=" Analog Linux boot failure and solution "title=" simulates Linux boot failure and solution "style=" margin:0px;padding:0px;border:0px;list-style:none; "/>
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. At this point the interface will appear:650) this.width=650; "src=" http://s10.sinaimg.cn/mw690/00688Tvygy6ZKIT2vUdf9&690 "width=" 555 " height= "407" name= "image_operate_75141456750273647" alt= "simulate Linux boot failure and solution" title= "simulate Linux boot failure and solution" style= "margin : 0px;padding:0px;border:0px;list-style:none; "/>
Then , we need to enter rescue mode to repair the system. In the boot: Enter a command to enter the rescue mode:
Linux Rescue will enter the interface
650) this.width=650; "Src=" http://s11.sinaimg.cn/mw690/00688tvygy6zkit6ib46a& 690 "width=" 555 "height=" 317 "name=" image_operate_42651456750409376 "alt=" Simulate Linux boot Fault and solution "title=" simulate Linux boot failure and solution "Style=" margin:0px;padding:0px;border:0px;list-style:none; "/>
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:
Linux Rescue will enter the interface, press ENTER to appear screen select No;
The following screen appears
650) this.width=650; "src=" http://s4.sinaimg.cn/mw690/00688Tvygy6ZKIT9ok3e3&690 "width=" 482 "height=" "Name=" image_operate_51321456750393366 "alt=" simulation Linux boot Fault and solution "title=" simulation of Linux boot failure and solution "style=" margin:0px;padding:0px; Border:0px;list-style:none; "/>
at this point, we want to read the information, from which we learned that the file system has been mounted to the/mnt/sysimage directory, then we want to switch to this directory, using chroot/mnt/sysimage this 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
At this point the installation is ready, we will restart the system at this time, but this is entered two times exit to reboot, we can see this interface650) this.width=650; "src=" http://s15.sinaimg.cn/mw690/00688Tvygy6ZKITTqKWfe&690 "width=" 555 "height=" name= "image_operate_49351456750502892" alt= "Analog Linux power-on Failure and solution" title= "simulate Linux boot failure and solution" style= "margin:0px;padding:0px; border:0px;list-style:none;line-height:1.5; "/>:
Description, we have solved this error.
(b)
and then we simulate What to do when the second stage goes wrong. When we switch to the/boot/grub directory, we will see an important configuration file grub.conf. At this point we can delete the file or move it to simulate another error, here we delete the file. Then we reboot the system will see the interface 650) this.width=650; "src=" http://s3.sinaimg.cn/mw690/00688Tvygy6ZKITQ4n0f2&690 "width=" 556 "height=" "Name=" image_operate_2601456750561196 "alt=" Simulate Linux boot Fault and solution "title=" simulate Linux boot failure and solution "style=" margin:0px;padding:0px;border:0px;list-style:none;line-height:1.5; "/>
At this point, the system has not come up, and then we solve the problem
At this point we will enter four instructions:
650) this.width=650; "src=" http://s9.sinaimg.cn/mw690/00688Tvygy6ZKISXwtWc8&690 "width=" 555 "height=" 241 "name= "image_operate_52501456750635821" alt= "Analog Linux power-on Failure and solution" title= "simulate Linux boot failure and solution" style= "margin:0px;padding:0px; Border:0px;list-style:none; "/>
Next
650) this.width=650; "Src=" http://www.apelearn.com/bbs/data/attachment/forum/201307/06/ 230037fmwkuuzbedbw5y4y.png "Name=" image_operate_70351456750628417 "alt=" simulation Linux boot Fault and solution "title=" simulate Linux boot failure and solution "Style=" margin:0px;padding:0px;border:0px;list-style:none; "/>
such a Error message, at which time we restart the system, the interface;
650) this.width=650; "Src=" HTTP://S14.SINAIMG.CN/MW690/00688TVYGY6ZKITA3SDFD &690 "width=" 555 "height=" 138 "name=" image_operate_40691456750676146 "alt=" simulate Linux boot failure and solution "title=" Simulate Linux boot failure and solution "style=" margin:0px;padding:0px;border:0px;list-style:none; "/>
Next we still enter four instructions to restart the system
650) this.width=650; "Src=" http://s12.sinaimg.cn/mw690/00688tvygy6zkitkce3cb& 690 "width=" 555 "height=" 161 "name=" image_operate_45901456750689827 "alt=" Simulate Linux boot Fault and solution "title=" simulate Linux boot failure and solution "Style=" margin:0px;padding:0px;border:0px;list-style:none; "/>
After the reboot we can normally log in the system, but our problem has not been resolved, because we have deleted the grub.conf file, so we have to manually edit this file.
650) this.width=650; "src=" http://s2.sinaimg.cn/mw690/00688Tvygy6ZKITIGqd91&690 "width=" 555 "height=" 277 "name= "image_operate_65191456750754597" alt= "Analog Linux power-on Failure and solution" title= "simulate Linux boot failure and solution" style= "margin:0px;padding:0px; Border:0px;list-style:none; "/>
Timeout after the parameters can be defined according to their own preferences, it refers to when the system is started, if we do not do anything, the system will wait 3 seconds after entering the system, after the title can also be free to write their own preferences. Then save the above file, restart the system, to this, we also solved the problem.
III)
What happens if we delete the Grub directory from the boot directory?
650) this.width=650; "Src=" http://www.apelearn.com/bbs/data/attachment/forum/201307/06/ 232138mrpgm5r955yzmzxp.png "alt=" Analog Linux boot Fault and solution "title=" simulation of Linux boot failure and solution "style=" Margin:0px;padding:0px;border : 0px;list-style:none; "/>
At this point we press F2 to enter the BIOS, set to CD-ROM boot
650) this.width=650; "Src=" http://www.apelearn.com/bbs/data/attachment/forum/201307/06/ 232205c2kplbhlkn26puzn.png "Name=" image_operate_65551456750786583 "alt=" simulation Linux boot Fault and solution "title=" simulate Linux boot failure and solution "Style=" margin:0px;padding:0px;border:0px;list-style:none; "/>
After you save the restart, the
650) this.width=650; "Src=" http://www.apelearn.com/bbs/data/attachment/forum/201307/06/ 232209leqf34fwv686ydy3.png "Name=" image_operate_53111456750842703 "alt=" simulation Linux boot Fault and solution "title=" simulate Linux boot failure and solution "Style=" margin:0px;padding:0px;border:0px;list-style:none; "/>
At this point we can do it the first time.
The command to enter when we enter rescue mode:
650) this.width=650; "Src=" http://www.apelearn.com/bbs/data/attachment/forum/201307/06/ 232215ewwwcw02fyfg92aa.png "alt=" Analog Linux boot Fault and solution "title=" simulation of Linux boot failure and solution "style=" Margin:0px;padding:0px;border : 0px;list-style:none; "/>
At this point we look at the boot directory to see the grub directory, but when we look at the contents of the Grub directory, there is no grub.conf file
650) this.width=650; "Src=" http://www.apelearn.com/bbs/data/attachment/forum/201307/06/ 232222t2lvflvvj4farofx.png "Name=" image_operate_56761456750862505 "alt=" simulation Linux boot Fault and solution "title=" simulate Linux boot failure and solution "Style=" margin:0px;padding:0px;border:0px;list-style:none; "/>
Use the second method: Judge Root (hd0,0) after the number can try, to the second line when the input k and then the TAB key to complete, if you can complete the right, and finally go in, reconfigure the grub.conf and restart the good.
Simulating Linux boot failures and solutions