Grub Rescue and Demo

Source: Internet
Author: User

Linux rescue mode is widely used for Linux when it encounters some configuration files such as kernel problem/fstab and disk fsck error, which can cause the system not to start.

Experimental Description: A computer is not accepted by the computer system because of the Xen kernel and selinux conflicts, and cannot be started

  1. Open the virtual machine, we will find that the third line has a "Rescue installed System" Rescue mode click to enter. Then go to the Select language interface.


  2. 650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/A6/wKioL1XqoQzTShtwAAFepf7sZGc605.jpg "title=" Image 3. PNG "alt=" wkiol1xqoqztshtwaafepf7szgc605.jpg "/>

  3. 650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/A6/wKioL1XqoIvCz8X8AANA4cWb7k8260.jpg "title=" Image 2. PNG "alt=" wkiol1xqoivcz8x8aana4cwb7k8260.jpg "/>

  4. 650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/A9/wKiom1Xqn0CQfJAaAAFGikTgaho053.jpg "title=" Image 4. PNG "alt=" wkiom1xqn0cqfjaaaafgiktgaho053.jpg "/>

  5. Setup networking This message asks if you want to link the network, according to your personal needs and then click "Yes" or "NO"

  6. 650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/A6/wKioL1XqoWazKn3DAAELPMHTz_o701.jpg "title=" image 5. PNG "alt=" wkiol1xqowazkn3daaelpmhtz_o701.jpg "/>


  7. Click Continue

  8. 650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/A9/wKiom1Xqn0DymJcWAAJFy6dhoJs763.jpg "title=" image 6. PNG "alt=" wkiom1xqn0dymjcwaajfy6dhojs763.jpg "/>

  9. 650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/A9/wKiom1Xqn0DymJcWAAJFy6dhoJs763.jpg "title=" image 6. PNG "alt=" wkiom1xqn0dymjcwaajfy6dhojs763.jpg "/>


  10. Important, the middle tip is to mount to the/mnt/sysimage directory file, then we remember the middle "chroot/mnt/sysimage" and then click OK to enter as

  11. 650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/A6/wKioL1XqoWbydhDEAAFACa1lvqQ581.jpg "title=" Image 7. PNG "alt=" wkiol1xqowbydhdeaafaca1lvqq581.jpg "/>

  12. 650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/A9/wKiom1Xqn0Cy9VBXAADYU9AV2zU244.jpg "title=" Image 8. PNG "alt=" wkiom1xqn0cy9vbxaadyu9av2zu244.jpg "/>


  13. Go into the shell start shell and click OK

  14. 650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/A6/wKioL1XqoWbD0HhaAAC7gwqb_P0274.jpg "title=" Image 9. PNG "alt=" wkiol1xqowbd0hhaaac7gwqb_p0274.jpg "/>

  15. 650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/A9/wKiom1Xqn0CyGsgOAABn0nuBMLM257.jpg "title=" image 10. PNG "alt=" wkiom1xqn0cygsgoaabn0nubmlm257.jpg "/>

  16. Use "Chroot/mnt/sysimage"

  17. 650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/A6/wKioL1XqoWazdWdJAAD4qaILKto576.jpg "title=" image 11. PNG "alt=" wkiol1xqowazdwdjaad4qailkto576.jpg "/>

Installing Grub,grub-install--root-directory=root/dev/disk

Grub

grub> Root (hd#,#)

grub> Setup (hd#)

[Email protected] ~]# Grub-install--root-direcory=//DEV/SDA

Then sync, exit exit, restart reboot, and enter the mode you've already rescued.


Note: For the latest, most concise and most understandable content, please pay attention to me.

This article is from the "hard disk partition Logical Volume" blog, so be sure to keep this source http://10442897.blog.51cto.com/10432897/1691570

Grub Rescue and demos

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.