I have a pi 3b running raspbian 10, installed fresh this morning. All was going well until it ceased to be able to mount my btrfs volume.
The error I get is as follows:
mount: /drive: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or helper program, or other error.
There are 2 usb drives connected which together make up one btrfs volume (it's like RAID1).
The etc/fstab
entry specifies the PARTUID and that's correct, I checked.
What I've found is that if I try to mount one of the disks, it fails as above. But if I then try to mount the second disk, it works! But you can only specify one disk in fstab. And anyway, that's weird, you're only supposed to specify one of the disks and leave it up to btrfs to find the other.
The disks mount fine on other computers without the double mount call schenanegans. And I'm pretty sure at some point today it was booting ok, but to be honest there's been a lot of reboots and config today.
Nb. it also seems to mount after this command:
sudo btrfs device scan
Perhaps I need a way to get that command to run before it tries to mount it?
device=devicepath
) in the options in fstab?device=/dev/sda1,device=/dev/sdb1
in the fstab options seems to have fixed it and is much more elegant than the solution I'd found which involved adding another systemd unit to callbtrfs device scan
. Thanks!