My system boots OK with this in my GRUB 2 config:
linux /bzImage root=/dev/sda2 init=/usr/lib/systemd/systemd ro
But if I replace /dev/sda2
with the corresponding UUID:
linux /bzImage root=UUID=666c2eee-193d-42db-a490-4c444342bd4e init=/usr/lib/systemd/systemd ro
then it fails during boot:
kernel panic - not syncing: VFS: unable to mount root fs on unknown-block(0,0)
The UUID appears to be correct:
# blkid
/dev/sda1: UUID="97ac3744-39de-4d6d-9a81-e3a3ea08a8bb" TYPE="ext2"
/dev/sda2: UUID="666c2eee-193d-42db-a490-4c444342bd4e" TYPE="ext4"
Why doesn't it work? Is it because I'm not using an initramfs?
This is x86_64 Gentoo Linux with kernel 3.10.7. I'm using a MBR partition table on sda
and a GUID partition table on sdb
.
unknown-block(0,0)
looks like a GRUB device to me. my guess is that GRUB can't use that UUID for some reason.sda1
. I didn't show that part of the config.)init
.