1, switch to the root user
#su – root
2, enter grub mode
#grub
3, then follow the steps below to do
grub> find / boot / grub / stage1 or find / grub / stage1
General returns similar to (hd0,5) and the like, remember it.
grub> quit
4, edit grub.conf
#vim /boot/grub/grub.conf
The all appear in the document (hdx, y) replaced all values obtained in Step 3
5, re-enter the grub mode and follow these steps, note the following two commands have spaces.
grub> root (hdx, y)
grub> setup (hdx)
grub> quit
6. Restart
#shutdown -r now
Leave a Reply