Turn: grub rescue repair method, because the root partition UUID changes

Source: Internet
Author: User

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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.