Hardware problems!
This is going to be a longer thread because my file system (main PC) has become read-only.
- I noticed this when I could no longer save any files.
- After a reboot, it was fine for a while. Shortly after, that the file system became read-only again. A look at dmesg shows error messages from btrfs related to sda.
This is a btrfs RAID 1 with two SSDs (one NVMe and one older SATA SSD). The error messages in dmesg were related to the SATA SSD. There are also older rotating hard drives installed, but they are not mounted connected and 2 (to small) SSDs.
Don’t panic! I have btrfs, snapshots (hourly of /@ and /@home) and backups (from the day before yesterday and before that), but of course no spare SSD in the drawer.
I’m currently writing this from a laptop (so no inxi
) and am still figuring out the best way to proceed.
The cause could be:
- Power supply overloaded (-> first, remove USB loads,DVD-drive)

- Motherboard slowly failing (-> remove dust, disconnect and reconnect cables and connectors)
- SATA SSD failing (-> boot from USB and check dmesg ???)
sudo dmesg|grep -E BTRFS says (typed as seen):
BTRFS info (device sda2) bdev /dev/sda2 errs: wr 0, rd 0, flush 0, corrupt 5, gen 0
BTRFS info (device sda2) bdev /dev/nvme0n1p3 errs: wr 0, rd 0, flush 0, corrupt 4, gen 0
mount /dev/sda2 /mnt
mount -t btrfs
/dev/sda2 on /mnt type btrfs (rw,relatime,ssd,discard=async,subvolid=83648,subvol=/@)
brfs scrub start -B -d -r -R ends with:
Starting scrub on devid 1
Starting scrub on devid 3
ERROR: scrubbing /mnt failed for device id 1: ret=-1 errno=30 (Read only file system)
ERROR: scrubbing /mnt failed for device id 3: ret=-1 errno=30 (Read only file system)
...
mount -t btrfs says:
/dev/sda2 on /mnt type btrfs (ro,relatime,ssd,discard=async,subvolid=83648,subvol=/@)
so far, so good, it is readable
but can’t be scrubed ![]()
: scrub works, if the device is mounted ‘ro’ with btrfs scrub -BdrR /dev/sda2

