Rescue Mode Repair Grub

Source: Internet
Author: User

1. Simulate the destruction of MBR boot.

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

This will not start the system.

Put the Linux system CD and boot. Select the third rescue mode.

650) this.width=650; "style=" Float:none; "title=" 1.png "src=" http://s3.51cto.com/wyfs02/M01/72/CE/ Wkiol1xtow7zjkwcaahylx8db8a072.jpg "alt=" Wkiol1xtow7zjkwcaahylx8db8a072.jpg "/>

Omitted part of the unimportant, directly to the following interface.

650) this.width=650; "style=" Float:none; "title=" 2.png "src=" http://s3.51cto.com/wyfs02/M01/72/D1/ Wkiom1xtn0wzkycmaaipqucnxb8059.jpg "alt=" Wkiom1xtn0wzkycmaaipqucnxb8059.jpg "/>

Chroot/mnt/sysimage # switch to the system on the hard drive

cd/boot/

LS # To see if a file is missing from the boot directory

650) this.width=650; "style=" Float:none; "title=" 3.png "src=" http://s3.51cto.com/wyfs02/M02/72/CE/wKioL1XtoW_ Suo7eaab6mbk-m2m437.jpg "alt=" Wkiol1xtow_suo7eaab6mbk-m2m437.jpg "/>

grub# Enter the GRUB command line interface

grub> Root (hd0,0)

650) this.width=650; "style=" Float:none; "title=" 4.png "src=" http://s3.51cto.com/wyfs02/M02/72/D1/ Wkiom1xtn0wabucyaaa10oltxl0742.jpg "alt=" Wkiom1xtn0wabucyaaa10oltxl0742.jpg "/>

grub> Setup (hd0)

650) this.width=650; "style=" Float:none; "title=" 5.png "src=" http://s3.51cto.com/wyfs02/M00/72/CE/wKioL1XtoW_ Ji0q8aaembcn4qbk425.jpg "alt=" Wkiol1xtow_ji0q8aaembcn4qbk425.jpg "/>

Quit # exit the Grub command interface

Exit # Exit/mnt/sysimage

Reboot # Rebooting the system

Reboot to check if Linux starts properly

Rescue Mode Repair Grub

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.