Troubleshooting Linux boot failure in rescue mode

Source: Internet
Author: User

A. system does not start properly due to MBR failure (simulates MBR failure using the following command )

DD If=/dev/zero OF=/DEV/SDA bs=446 count=1

2. After the failure, the system will fail to enter the following conditions

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/83/CD/wKiom1d8sK_hGUYlAAAQ6bvWJO4414.png "title=" Picture 17.png "alt=" Wkiom1d8sk_hguylaaaq6bvwjo4414.png "/>

3. Fault appears, now need to put the CD, reboot, CD boot, press F10 save exit

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/83/CB/wKioL1d8sN3CV5rXAAAZ_fLAhVA409.png "title=" Picture 18.png "alt=" Wkiol1d8sn3cv5rxaaaz_flahva409.png "/>
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/83/CD/wKiom1d8scWCJ2cUAANpkStHZrs872.png "title=" Picture 19.png "alt=" Wkiom1d8scwcj2cuaanpksthzrs872.png "/>650) this.width=650; src=" http://s4.51cto.com/wyfs02/M02/ 83/cc/wkiol1d8sdbjegw3aaaur8da144607.png "title=" image 20.png "alt=" Wkiol1d8sdbjegw3aaaur8da144607.png "/>

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/83/CC/wKioL1d8sguTbTy6AAATI77YJFs908.png "style=" float: none; "title=" Image 21.png "alt=" Wkiol1d8sgutbty6aaati77yjfs908.png "/>

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/83/CD/wKiom1d8sgvQWLNWAAAKjYkLJ3U143.png "style=" float: none; "title=" Image 22.png "alt=" Wkiom1d8sgvqwlnwaaakjyklj3u143.png "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/83/CC/wKioL1d8sgyj_0ryAAAj0e2sEFk124.png "style=" float: none; "title=" Image 23.png "alt=" Wkiol1d8sgyj_0ryaaaj0e2sefk124.png "/>

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/83/CD/wKiom1d8sgyx3RvwAAATJJst0Gg784.png "style=" float: none; "title=" Image 24.png "alt=" Wkiom1d8sgyx3rvwaaatjjst0gg784.png "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/83/CC/wKioL1d8sg3xzgj9AAAIXpjQQhU346.png "style=" float: none; "title=" Image 25.png "alt=" Wkiol1d8sg3xzgj9aaaixpjqqhu346.png "/>

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/83/CD/wKiom1d8sg2BZ64KAAAJhjz0PR8619.png "style=" float: none; "title=" Image 26.png "alt=" Wkiom1d8sg2bz64kaaajhjz0pr8619.png "/>

4. Enter the following command in the Shell to restore

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/83/CC/wKioL1d8sjvC7nr8AAAV-P4hWMs057.png "title=" Picture 27.png "alt=" Wkiol1d8sjvc7nr8aaav-p4hwms057.png "/>


Second, because the/boot/grub/grub.conf file loss caused the system to fail to boot, the following situation occurs

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/83/CD/wKiom1d8stjjKAIkAAANviuQvYY578.png "title=" Picture 28.png "alt=" Wkiom1d8stjjkaikaaanviuqvyy578.png "/>

1. Recovery mode One, if the original backup, enter the rescue mode after entering the chroot/mnt/sysimage After the backup of the configuration document directly copied back on the line

2. Recovery Method II,

Enter root under grub> (hd0,0)

kernel/vmlinuz-2.6.32-431.el6.i686 ro Root=/dev/sda3 rhgb quiet

Initrd/initramfs-2.6.32-431.el6.i686.img

Boot

Note: where ROOT=/DEV/SDA 3 needs to be tested

Initramfs Each version is different before testing it is best to back up the view

3. If there is an error message file in the configuration file, the boot will appear black screen


Troubleshooting Linux boot failure in rescue mode

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.