I recently had a hardware failure and replaced by old HDD with an SSD. Therefore I used f2fs for my root partition. But now I am unable to boot properly due to fsck failure. I keep getting the following output during boot:
=> Welcome to Void!
=> Mounting pseudo-filesystems...
=> Loading kernel modules...
=> Starting udev and waiting for devices to settle...
=> Setting up keymap to 'de-latin1-nodeadkeys'...
=> Remounting rootfs read-only...
=> Activating btrfs devices...
Scanning for Btrfs filesystems
=> Activating encrypted filesystems...
=> Checking filesystems:
Info: Fix the reported corruption.
Info: Mounted device!
Info: Check FS only on RO mounted device
Error: Failed to open the device!
Cannot continue due to errors above, starting emergency shell.
As only the filesystem check fails, I am still able to boot by simply exiting the emergency shell.
According to the log, the filesystem should theoretically be mounted read-only. I don't understand what's the actual issue here and how I can solve it.
I am running Void Linux with a 6.6.16 kernel.
Update: The filesystem seems to be read-only when still in the emergency shell.
$ mount -l -t f2fs
/dev/sda2 on / type f2fs (ro,relatime,lazytime,backgrou...