Address: http://www.nishizhen.cn/2011/01/grub-rescue-%E7%9A%84%E4%BF% AE %E5%A4%8D%E6%96%B9%E5%BC%8F%EF%BC%8C%E5%8E%9F%E5%9B%A0%E6%98%AFroot%E5%88%86%E5%8C%BAuuid%E7%9A%84%E6%94%B9%E5%8F%98/
I found that the Ubuntu partition size was not enough last night. Well, I 'd like to share some with him. I used gparted to re-divide a partition and allocate more space to swap.
Then rewrite fstab-> Save-> Reboot
After the boot, a prompt is displayed:
Unknow filesystem
Grub rescue
What's going on?
Check the grub manual. This is generally because the specified partition is not the root partition, so it is OK to reset the root and prefix.
Input:
Ls
View existing partitions:
(Hd0) (hd0, msdos1) (hd0, msdos2) (hd0, msdos3) (hd0, msdos5) (hd0, msdos6)
I found that all of them are msdos names. It's strange that not all of them were numbers in the past...
Enter set to view the current settings:
Root = hd0, msdos6
Prefix = (hd0, msdos6)/boot/GRUB
First reset to my root partition (hd0, 5 ):
Set root = (hd0, 5)
Set prefix = (hd0, 5)/boot/GRUB
Then reload the module normal:
Insmod normal
Then run the normal mode again:
Normal
Haha, the grub startup interface appeared again. Hurry into the system and update grub (I re-run grub-install ).
You're done. You're asleep...