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