On Fri, Aug 19, 2011 at 6:06 PM, Dave Badia <[email protected]> wrote:
> I can't get grub 1.99_rc1 to generate a UUID for the root entry in my
> grub.cfg file.  It will reference the boot drive by UUID (or at least
> try to), but root keeps using /dev/sdx.  For example:
>
> menuentry "Gentoo GNU/Linux, with Linux 2.6.37.2" --class gentoo --class 
> gnu-lin
> ux --class gnu --class os {
>        savedefault
>        set gfxpayload=keep
>        insmod part_msdos
>        insmod ext2
>        set root='(hd5,msdos1)'
>        search --no-floppy --fs-uuid --set=root 0f194bb0....
>        echo    Loading Linux 2.6.37.2 ...
>        linux   /kernel-2.6.37.2 root=/dev/sdf2 ro
> }

Notice that there is no initrd command there. With linux, specifying
the root device by UUID requires an initramfs (and when grub knows
it's not possible to specify root=UUID=foo it falls back to static
device names). If you don't have one, then you'll need to create one.
If you do have one and grub-mkconfig is not including it, make sure
that the naming convention of the initramfs matches that of the kernel
image.

-- 
Jordan Uggla (Jordan_U on irc.freenode.net)

_______________________________________________
Help-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-grub

Reply via email to