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
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.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/A6/wKioL1XqoQzTShtwAAFepf7sZGc605.jpg "title=" Image 3. PNG "alt=" wkiol1xqoqztshtwaafepf7szgc605.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/A6/wKioL1XqoIvCz8X8AANA4cWb7k8260.jpg "title=" Image 2. PNG "alt=" wkiol1xqoivcz8x8aana4cwb7k8260.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/A9/wKiom1Xqn0CQfJAaAAFGikTgaho053.jpg "title=" Image 4. PNG "alt=" wkiom1xqn0cqfjaaaafgiktgaho053.jpg "/>
Setup networking This message asks if you want to link the network, according to your personal needs and then click "Yes" or "NO"
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/A6/wKioL1XqoWazKn3DAAELPMHTz_o701.jpg "title=" image 5. PNG "alt=" wkiol1xqowazkn3daaelpmhtz_o701.jpg "/>
Click Continue
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/A9/wKiom1Xqn0DymJcWAAJFy6dhoJs763.jpg "title=" image 6. PNG "alt=" wkiom1xqn0dymjcwaajfy6dhojs763.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/A9/wKiom1Xqn0DymJcWAAJFy6dhoJs763.jpg "title=" image 6. PNG "alt=" wkiom1xqn0dymjcwaajfy6dhojs763.jpg "/>
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
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/A6/wKioL1XqoWbydhDEAAFACa1lvqQ581.jpg "title=" Image 7. PNG "alt=" wkiol1xqowbydhdeaafaca1lvqq581.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/A9/wKiom1Xqn0Cy9VBXAADYU9AV2zU244.jpg "title=" Image 8. PNG "alt=" wkiom1xqn0cy9vbxaadyu9av2zu244.jpg "/>
Go into the shell start shell and click OK
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/A6/wKioL1XqoWbD0HhaAAC7gwqb_P0274.jpg "title=" Image 9. PNG "alt=" wkiol1xqowbd0hhaaac7gwqb_p0274.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/A9/wKiom1Xqn0CyGsgOAABn0nuBMLM257.jpg "title=" image 10. PNG "alt=" wkiom1xqn0cygsgoaabn0nubmlm257.jpg "/>
Use "Chroot/mnt/sysimage"
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