I have my Linux root on an F2FS USB flash drive. The kernel is on another device accessible by the bootloader. I'm trying to start it with the parameters root=/dev/sda1 rootwait rootfstype=f2fs
, but I always end up with a kernel panic:
VFS: Cannot open root device "sda1" or unknown-block(8,1): error -19
Please append a correct "root=" boot option; here are the available partitions:
0100 8192 ram0 (driver?)
0101 8192 ram1 (driver?)
0800 3913728 sda driver: sd
0801 3913728 sda1 973c7215-01
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)
sda1 is the correct device, and I'm able to mount it with no problems to another computer running Arch Linux. I partitioned it using fdisk
and formatted it using mkfs.f2fs
from f2fs-tools.
Why does the kernel panic? Am I missing the F2FS module? If so, how can I load it at boot time?
.config
inside your kernel source tree forCONFIG_F2FS_FS=y
. (Or, if you didn't just build your own kernel, could you give the backstory here? E.g., what device is this, steps/instructions you were following to set it up, etc.)