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. – strugee Oct 06 '13 at 04:29sda1
. I didn't show that part of the config.) – cjm Oct 06 '13 at 04:32init
. – mikeserv Aug 21 '14 at 22:48/bzImage
? Moreover all linux kernels have initramfs since 2.6 - it is always the first/
mounted. You can either compile the image in (which occurs anyway - it's just an essentially empty/
) or you can specify it on the kernel commandline. – mikeserv Aug 22 '14 at 07:27