
Hi,
Grml wiki indicates that grml can use disk labels/UUIDs as root= option for booting [1]. What's the correct syntax for that?
[1] http://wiki.grml.org/doku.php?id=usb&DokuWiki=88eb0d5110993c6c4d0ca5992a...
I searched hard and came up with the following, trying to boot my USB key:
title GRML on 1st HD root (hd0,1) kernel /boot/vmlinuz root=/dev/disk/by-uuid/b53f0a8b-deab-40b3-a84c-0779cb8b7772 ro boot
title GRML on 1st HD root (hd0,1) kernel /boot/vmlinuz root=/dev/disk/by-label/grml.boot ro boot
title GRML on 2nd HD root (hd1,1) kernel /boot/vmlinuz root=/dev/disk/by-uuid/b53f0a8b-deab-40b3-a84c-0779cb8b7772 ro boot
But all gave me root filesystem not found error (grub boot normally, just can't find root fs).
I'm sure the uuid and disk label are correct. What else could be the problem?
thanks

* ][ mlist4suntong@yahoo.com [20070201 10:08]:
Grml wiki indicates that grml can use disk labels/UUIDs as root= option for booting [1]. What's the correct syntax for that?
[...]
http://michael-prokop.at/blog/2006/08/11/stable-root-device-aka-uuid/
grub:
kernel /boot/vmlinuz-... root=UUID=4a6aed11-42dd-4c82-81ce-8f469e93f210 ro
/etc/fstab:
UUID=e0164f78-9821-4eaf-bda7-1fd9b43a6f06 / ext3 defaults,errors=remount-ro 0 1
regards, -mika-

On Thu, 01 Feb 2007 10:11:47 +0100, Michael Prokop wrote:
Grml wiki indicates that grml can use disk labels/UUIDs as root= option for booting [1]. What's the correct syntax for that?
[...]
http://michael-prokop.at/blog/2006/08/11/stable-root-device-aka-uuid/
Ah, that's where I learned about stable root device naming convention. I've read it before, but only vaguely remember the knowledge came from grml when I need it, but searched the wrong place -- grml wiki.
thanks again mika.
A side question, is the UUID get assigned during mkfs or partition creation, or...?

* ][ mlist4suntong@yahoo.com [20070203 04:15]:
On Thu, 01 Feb 2007 10:11:47 +0100, Michael Prokop wrote:
Grml wiki indicates that grml can use disk labels/UUIDs as root= option for booting [1]. What's the correct syntax for that?
[...]
http://michael-prokop.at/blog/2006/08/11/stable-root-device-aka-uuid/
Ah, that's where I learned about stable root device naming convention. I've read it before, but only vaguely remember the knowledge came from grml when I need it, but searched the wrong place -- grml wiki. thanks again mika.
I did not document it in the grml wiki yet because I'd like to write some more documentation about it before. Upcoming grml releases will very probably use mounting by UUID for main partition (the libata merge of >=2.6.19 forces the decision), I've to make sure the upgrade path works fine for all users then.
A side question, is the UUID get assigned during mkfs or partition creation, or...?
The UUID is usually assigned with running mkfs. Some filesystems provide an interface to change the UUID later on, like with "xfs_admin -U $UUID".
regards, -mika-
Teilnehmer (2)
-
][
-
Michael Prokop