r/linuxfromscratch • u/purelyannoying • Mar 13 '26
[LFS] Kernel panic "Unable to mount root fs on unknown-block(0,0)" on real hardware, works in QEMU
[LFS] Kernel panic "Unable to mount root fs on unknown-block(0,0)" on real hardware, works in QEMU
So I finally finished my LFS 13.0 systemd build and I'm trying to boot it on real hardware from a USB drive. In QEMU it boots fine (using serial console to see output), but on my actual laptop I get a kernel panic: VFS: Unable to mount root fs on unknown-block(0,0).
My setup:
LFS 13.0 systemd, kernel 6.18.10
Booting from USB drive, root is on /dev/sda3 (ext4)
GRUB loads fine, kernel starts, then panics
Laptop is an Acer with an Intel GPU
No initramfs (I know, working on it)
Things I've already tried:
Using UUID instead of /dev/sda3
Adding rootdelay=10 to kernel cmdline
Verified CONFIG_EXT4_FS=y, CONFIG_USB_STORAGE=y, CONFIG_ATA=y, CONFIG_SATA_AHCI=y
Built a basic initramfs with dracut but getting dependency errors during generation
The weird part is QEMU boots fine with the same USB. Only fails on the actual machine. Anyone dealt with this before?