[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't get UUID for root device

From: Jordan Uggla
Subject: Re: Can't get UUID for root device
Date: Fri, 19 Aug 2011 19:04:15 -0700

On Fri, Aug 19, 2011 at 6:06 PM, Dave Badia <address@hidden> 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" --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 ...
>        linux   /kernel- 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

Jordan Uggla (Jordan_U on

reply via email to

[Prev in Thread] Current Thread [Next in Thread]