View Full Version : Making grub changes permanent

January 26th, 2013, 04:01 PM
Hello all,

I just re-installed ubuntu 12.04lts on my desktop and have some problems booting up.

My PC boots into grub rescue because it can not find my root partition; I have to type the following every time to get it to work:

set prefix=(hd1,msdos1)/boot/grub
set root=(hd1,msdos1)
insmod normal

Any ideas how to make these changes permanent? I think the root cause is something to do with an incorrectly set UUID of the drive with the root partition, but I am a bit out of my depth and have been stuck now for about a week.

All software is up to date with the default Precise repos.

Any help is much appreciated,


January 26th, 2013, 04:18 PM
You find lots of information about grub here
https://help.ubuntu.com/community/Grub2 (https://help.ubuntu.com/community/Grub2)

Have you tried the automatic way, to run

sudo update-grub
and reboot?

The settings you need can be fixed by entering them in the file

or should I say, copy the relevant part of

when it works, and enter it into


This should be a piece of text like this

menuentry "Ubuntu ..."{

and run

sudo update-grub
to make it active (to move it into /boot/grub/grub.cfg)

January 26th, 2013, 04:28 PM
Thanks for the info, I'll try this when I get home.