update-grub is setting a wrong linux root partition
Posted
by
adrian m
on Ask Ubuntu
See other posts from Ask Ubuntu
or by adrian m
Published on 2012-08-22T09:21:50Z
Indexed on
2014/06/06
15:42 UTC
Read the original article
Hit count: 145
Initially, Ubuntu was installed on another partition (sda5 or sda4).
At some point I did manually move the root partition to sda2.
Now, the problem is that whenever a new kernel is installed, the automatic regeneration of the menu.lst
is using the OLD Linux partition. So I have to manually change in menu.lst
the lines :
root (hd0,5)
into
root (hd0,1)
How can I configure update-grub
to automatically generate menu.lst
with the current Linux root partition? I assume that the (hd0,5) was written somewhere at installation, but I couldn't find it.
© Ask Ubuntu or respective owner