[Linux] Recovering grub


Writing time : 2017-06-28 22:12:06

Recovering grub

When I reinstalled Windows while using CentOS and Windows by multi-booting, a symptom of not multi-booting occurred, and I solved it with Grub recovery.

First, insert the CentOS installation CD and boot.

On the boot screen, select the rescue mode (Rescue installed system) and proceed by selecting the default value.
When asked What type of media contains the rescue image?, select Local CD/DVD.
If you see a command prompt by selecting shell Start shell, you are ready to recover.

Refer to the link below for details on booting in rescue mode.
https://www.lesstif.com/pages/viewpage.action?pageId=12943500

Enter the following command to run the shell with root privileges.

#chroot /mnt/sysimage  

Check grub information

#cat /boot/grub/grub.conf  

grub recovery

#root (hd0,1)  
#setup (hd0)  

If you see a success message, recovery is complete.

exit grub

#quit  

Reboot with ctrl + alt + del

Make sure it boots to CentOS.

Reference URL


http://idchowto.com/?p=22125

Previous post

Other posts in the category