Lab Environment: CentOS 6.6 Mini + VMware
Friends Encounter, prevention, oneself first Test:
1. First use the CENTOS6 image to enter the Linux rescue rescue mode.
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/87/6F/wKiom1ffkBbT6iQ1AAb_Oi0vEgs987.png-wh_500x0-wm_3 -wmp_4-s_2946642695.png "title=" Qq20160919151242.png "alt=" Wkiom1ffkbbt6iq1aab_oi0vegs987.png-wh_50 "/>
Follow the steps step by step to confirm the OK,
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/87/6F/wKiom1ffkIPyxJ1iAAAbfjpRHgo948.png-wh_500x0-wm_3 -wmp_4-s_109035826.png "title=" Qq20160919151452.png "alt=" Wkiom1ffkipyxj1iaaabfjprhgo948.png-wh_50 "/>
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/87/6C/wKioL1ffkKaS6dTkAAAYy_frz4Q634.png-wh_500x0-wm_3 -wmp_4-s_1691979459.png "title=" Qq20160919151533.png "alt=" Wkiol1ffkkas6dtkaaayy_frz4q634.png-wh_50 "/>
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/87/6C/wKioL1ffkcSxFDOPAAAXL--Zwzc546.png-wh_500x0-wm_3 -wmp_4-s_2340780914.png "title=" Qq20160919151800.png "alt=" Wkiol1ffkcsxfdopaaaxl--zwzc546.png-wh_50 "/>
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/87/6F/wKiom1ffkcWi1ZRRAAAiFHxLUpo245.png-wh_500x0-wm_3 -wmp_4-s_1580464935.png "title=" Qq20160919151839.png "alt=" Wkiom1ffkcwi1zrraaaifhxlupo245.png-wh_50 "/>
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/87/6F/wKiom1ffkcWiKTfzAAArhV9DJok429.png-wh_500x0-wm_3 -wmp_4-s_934509266.png "title=" Qq20160919151910.png "alt=" Wkiom1ffkcwiktfzaaarhv9djok429.png-wh_50 "/>
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/87/6C/wKioL1ffkcWDRFn6AAAah7IXdN4248.png-wh_500x0-wm_3 -wmp_4-s_2365067820.png "title=" Qq20160919151928.png "alt=" Wkiol1ffkcwdrfn6aaaah7ixdn4248.png-wh_50 "/>
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/87/6C/wKioL1ffkcWy9QUsAAARJKts2fw251.png-wh_500x0-wm_3 -wmp_4-s_3197772253.png "title=" Qq20160919151936.png "alt=" Wkiol1ffkcwy9qusaaarjkts2fw251.png-wh_50 "/>
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/87/6F/wKiom1ffkcbRWItjAAANWKdCQqw780.png-wh_500x0-wm_3 -wmp_4-s_3974546701.png "title=" Qq20160919151947.png "alt=" Wkiom1ffkcbrwitjaaanwkdcqqw780.png-wh_50 "/>
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/87/6F/wKiom1ffkcbhzZAHAAAQlkRoVfI462.png-wh_500x0-wm_3 -wmp_4-s_3606385697.png "title=" Qq20160919152010.png "alt=" Wkiom1ffkcbhzzahaaaqlkrovfi462.png-wh_50 "/>
Here has entered the rescue mode.
To switch the root directory:
Chroot/mnt/sysimage
To start the SSH service (or not to start):
Service sshd Start
To mount a disc:
Mkdir-p/mnt/cdrommount/dev/cdrom/mnt/cdrom
Re-install the kernel:
CD/MNT/CDROM/PACKAGESRPM-IVH kernel-2.6*--root=/--force
After the installation is complete, view the partition (I am the LVM partition):
ls/dev/mapper/
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/87/70/wKiom1ffkrWghQ8oAAAF6lMVEeQ492.png-wh_500x0-wm_3 -wmp_4-s_3323567509.png "title=" Qq20160919152419.png "alt=" Wkiom1ffkrwghq8oaaaf6lmveeq492.png-wh_50 "/>
Remember the root path, which may be used when booting for grub boot.
Exitreboot
Boot into the Grub interface and enter it manually:
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/87/70/wKiom1ffk77T-nkvAAAdIaIKtus132.png-wh_500x0-wm_3 -wmp_4-s_2328501566.png "title=" Qq20160919152818.png "alt=" Wkiom1ffk77t-nkvaaadiaiktus132.png-wh_50 "/>
Kernel line does not show full, followed by Volgroup-lv_root, that is, the path of the root partition, and enforcing=0 (not likely to boot boot)
When you are done, enter:
Boot
Start
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/87/70/wKiom1fflBygaCiVAAAlOyiKdr8113.png-wh_500x0-wm_3 -wmp_4-s_4258023238.png "title=" Qq20160919153013.png "alt=" Wkiom1fflbygacivaaaloyikdr8113.png-wh_50 "/>
It may be a little longer here, after the disk is re-labeled.
When you are finished, you can enter the system normally:
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/87/6D/wKioL1fflNGAUPjjAAAMUBnHcPc823.png-wh_500x0-wm_3 -wmp_4-s_1374000457.png "title=" Qq20160919153321.png "alt=" Wkiol1fflngaupjjaaamubnhcpc823.png-wh_50 "/>
Next, you can find a grub file, repair changes, the basic completion of the recovery.
This article is from the "Thousand Face" blog, please make sure to keep this source http://oslibo.blog.51cto.com/10854638/1854090
"Record" CentOS 6. 6 deleted boot partition recovery