I have an 8TB WD Elements drive that I’ve been using as the main storage medium of the family plex server for awhile. It served us well until one of my family members unplugged it while I was gone (shoot!) and somehow rendered the server (RPi4, 4GB) useless. I thought it would be easier to just rebuild from scratch, so I wiped the SD card and started a fresh install of PiOS with OpenmediaVault to handle the details. I tried to mount my drive’s BTRFS volume, but no dice.
I went into Ubuntu for RPi and tried to mount there and got an error: “Error mounting system-managed device /dev/sda1: wrong fs type, bad option, bad superblock on /dev/sda1, mission codepage or helper program, or other error”
What should I do? After some googling and trying different things a few weeks ago from the OMV forums, I find myself here. What would y’all suggest?
Thanks in advance!
The file system needs checking. Make sure you have the appropriate tools package for BTRFS installed, then sudo fsck /dev/sda1 should be all you need, but it might be that BTRFS has a different syntax for it (don’t use it, can’t tell) so do your homework
You can do a fdisk /dev/sda and then select option p for partitions to see what is on the disk. Make sure you are not about to potentially nuke the wrong drive. Once you find which partition is your btrfs partition, then you would run btrfsck /dev/sdaX where X is the actual partition number.