[prev in list] [next in list] [prev in thread] [next in thread]
List: grub-help
Subject: Re: Can't get UUID for root device
From: Jordan Uggla <jordan.uggla () gmail ! com>
Date: 2011-08-20 2:04:15
Message-ID: CAHh2SOSi1c43X8kbhcO2YJJUkRnMNDOQyyWjjQ6eLEUe5i0heQ () mail ! gmail ! com
[Download RAW message or body]
On Fri, Aug 19, 2011 at 6:06 PM, Dave Badia <dbadia@gmail.com> 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)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic