我从 USB 闪存盘启动新编译的 Linux 内核时出现内核恐慌(如下所示)无法挂载根文件系统)
1. error : unable to mount root fs on unknown-block(0,0)
2. kernel version : 5.5-rc5
3. bootloader : none (EFI stub)
4. built-in kernel command line : root=PARTUUID=xx1-xx1-xx1-1xx
5. root file system : f2fs
6. kernel is moduleless
尝试/测试的解决方案
1. kernel supports the filesystem on root
2. checked PARTUUID of the root device 3 times
3. no modules
4. kernel do load my sata ssd with proper PARTUUID
5. kernel doesn't mount other USB drive
6. BLK_DEV=y, BLK_DEV_SD=y, USB_STORAGE=y, ...
7. tried with UUID and /dev/sda2 same result
看来是 USB 问题,内核配置有问题吗?
一些链接已经检查过 无法挂载根文件系统, 不同步 vfs 无法在未知块上挂载 root fs(0 0)