The Linux/boot partition was deleted and the system failed to boot

Source: Internet
Author: User

Tag: boot partition is deleted

When/boot is removed, restarting the machine will stop at the Grub boot interface,

650) this.width=650; "title=" 1.PNG "src=" Http://s3.51cto.com/wyfs02/M01/57/99/wKioL1Sf-yTzAlvRAADiMK12wn8147.jpg " alt= "Wkiol1sf-ytzalvraadimk12wn8147.jpg"/>

At this time we put the installation disk, Chongguang drive, enter the rescue mode,

650) this.width=650; "title=" 2.PNG "src=" Http://s3.51cto.com/wyfs02/M02/57/9B/wKiom1Sf-ySRDZriAAIpJWU8RN4800.jpg " alt= "Wkiom1sf-ysrdzriaaipjwu8rn4800.jpg"/>

Select the language and keyboard type in the boot and enter rescue mode after the selection is complete.

650) this.width=650; "title=" 3.PNG "src=" Http://s3.51cto.com/wyfs02/M01/57/99/wKioL1Sf_Gyz1MgEAAD0nRVOE5Q689.jpg " alt= "Wkiol1sf_gyz1mgeaad0nrvoe5q689.jpg"/>

Select Shell mode, click OK, then switch the root directory, Chroot/mnt/sysimage, then we set up a CD mount point to mount the CD. (At this point we can start the network, the SSH service turned on), into the boot directory of nothing, then we want to install kernel,

650) this.width=650; "title=" 4.PNG "src=" Http://s3.51cto.com/wyfs02/M00/57/99/wKioL1Sf_jCQg24lAALHc5Ot7tY168.jpg " alt= "Wkiol1sf_jcqg24laalhc5ot7ty168.jpg"/>

RPM If the installation is not successful, with the installation of the--force, after installing into boot will see the newly generated boot file.

Then install GRUB, Grub-install--root-directory=//DEV/SDA,/This is the parent directory where the boot is located,/DEV/SDA is the partition of the hard disk, and executing this command will generate the Grub directory in/boot, and some files , but the missing grub.conf file, which is needed here, is created manually,

650) this.width=650; "title=" 1.PNG "src=" Http://s3.51cto.com/wyfs02/M02/57/99/wKioL1SgBDHQRvlDAAIyXuvYB_c649.jpg " alt= "Wkiol1sgbdhqrvldaaiyxuvyb_c649.jpg"/>

The first line of default is to choose which kernel to boot, the default is 0, select the first one;

The second line is to select the time, such as if the automatic entry is not selected for 5 seconds

The third line is a heading such as

Line four This root is the disk where the grub boot partition is located, which starts with HD

Line Five is the kernel file, in/boot can be seen, RO read-only mode, root this is the real root can be viewed with the DF command

The last line is initialized.

Once created, reboot the system.

650) this.width=650; "title=" 9.PNG "src=" Http://s3.51cto.com/wyfs02/M01/57/9B/wKiom1SgAwjw9k_UAAEtrT8Y7gE571.jpg " alt= "Wkiom1sgawjw9k_uaaetrt8y7ge571.jpg"/>

650) this.width=650; "title=" 6.PNG "src=" Http://s3.51cto.com/wyfs02/M01/57/99/wKioL1SgA2PgmHwuAAHpYg0qWXM277.jpg " alt= "Wkiol1sga2pgmhwuaahpyg0qwxm277.jpg"/>

It's going to be slow, just wait a minute, OK.

The Linux/boot partition was deleted and the system failed to boot

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.