1, switch to the root user
#su – root
2, enter grub mode
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.
4, edit 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)
#shutdown -r now
Leave a Reply