[ubuntu-uk] How do kernel builds etc determine the UUID of the root partition?

Colin Watson cjwatson at ubuntu.com
Fri Sep 14 13:21:14 BST 2007


On Wed, Sep 12, 2007 at 11:59:50PM +0100, Martyn wrote:
> Some time ago I upgraded my hard drive, & rather than reinstall I did a dump
> & restore of / . Consequently the new disk/partition has a different UUID to
> the old one,  afterwards rather than faff about with UUIDs I modified
> /etc/fstab & /boot/grub/menu.lst to use good old /dev/sda6 & all was well;
> however when I recently did a kernel upgrade it put the UUID field back in
> menu.lst BUT it put the wrong UUID (I think it had the one from the of the
> old disk/partition & not the current one) and consequently it wouldn't
> reboot without a bit of fiddling.

You missed a spot in menu.lst. See the "# kopt=" line (yes, it looks
like a comment; don't uncomment it, just edit the root= bit). Run
update-grub when you've finished to test it.

-- 
Colin Watson                                       [cjwatson at ubuntu.com]



More information about the ubuntu-uk mailing list