Code: Select all
VFS: Cannot open root device mapper/root or unknown-block(0,0): error -2
Please append a correct "root=" boot option; here are the available partitions:
0800 78150744 sda driver: sd
0801 30720 sda1 7d516f3e-61a2-4a56-82f6-35cc2fffb661
0802 3999744 sda2 8b1689aa-60ed-4105-a37f-90f3f366381e
0803 73994240 sda3 54252171-c9ca-46f1-af389b473cd842db
0804 124928 sda4 65aefdd9-98a4-4ac3-88b5-f8d95c8618c8
0b00 1048575 sr0 driver: sr
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) I have no idea what to feed the kernel with root= to make this work. Let's go over some possibilities, suggested by various online sources, all of which I have tried and excluded:
- The actual root partition, /dev/sda3. Wrong: this is encrypted, so the kernel can't read it until after it's been decrypted.
- The virtual block device that holds the actual root filesystem, /dev/mapper/realroot. Wrong: this doesn't exist until /dev/sda3 has been decrypted.
- /dev/ram0, presumably autogenerated by the kernel expecting an initramfs or by the bootloader or something. Wrong: seems not to exist at all. (EDIT: this is right after all. See below.)
- /dev/mapper/root, also presumably autogenerated by the kernel expecting an initramfs or by the bootloader or something. Wrong: also seems not to exist at all.
- Anything generated by mdev. Wrong: doesn't exist until the initramfs is loaded and init gets going to invoke mdev in the first place.
- The (unencrypted) boot partition, /dev/sda4. Wrong: mountable, I guess, but doesn't contain anything even remotely like a root filesystem.
Yes, CONFIG_DEVTMPFS is enabled. Yes, CONFIG_BLK_DEV_INITRD is enabled. Yes, all of the hardware drivers are in the kernel. No, they aren't modules; they're built-in. Yes, I have created an initramfs and packaged it nicely in a cpio archive, which sits with the kernel on the boot partition. Yes, the bootloader is loading the initramfs.
I am worried that I may not have enabled some device mapper or lvm bit in the kernel because only the physical partitions, and nothing from device mapper, are showing up in the kernel's list of suggestions for root=. I don't know what that option would be, though.
The problem also presumably might be in the way I am configuring the bootloader. It's not specific to any one bootloader, though, because LILO, GRUB Legacy, and GRUB2 all display the same behavior.
I am not using genkernel, mkinitrd, mkinitramfs, mkinitcpio, or any such tool.


