FSIBLOG

Nobara Linux Configuration File Not Writable: Btrfs Read-Only Fix

Nobara Linux Configuration File Not Writable: Btrfs Read-Only Fix

Everything in this list happened on one PC in one evening, right after a nobara-sync update:

These are not five problems. They are one. The drive that holds your home folder switched itself to read-only, so nothing on the PC could save a file. Every app that tried to write something failed in its own way. A hard power-off forced a fresh mount, which is why it works again. The job now is to find out why the drive flipped, because it will do it again if the cause is still there.

What the Popup Is Actually Saying

Why Btrfs Switches a Drive to Read-Only

Btrfs checks everything it writes. If a block comes back wrong, it stops all writing on that drive rather than risk corrupting more. The usual causes, in order of how often they turn up, are a failing SSD, faulty RAM, a loose cable, or a drive that ran out of space mid-update.

An update is often when this first shows, not because the update broke the disk, but because an update writes gigabytes at once and hits the weak spot.

Check Whether the Drive Is Read-Only Right Now

Open Konsole and paste this. It works on Nobara the same as any other Linux, since these are standard commands, not Nobara ones.

mount | grep -E ' / | /home '
What a healthy PC shows
/dev/nvme0n1p3 on / type btrfs (rw,relatime,...)
/dev/nvme0n1p3 on /home type btrfs (rw,relatime,...)

Also confirm your home folder lets you write, with no popups involved:

touch ~/test-write && echo "write OK" && rm ~/test-write
What a healthy PC shows
write OK

Read the Log From the Evening It Happened

Linux keeps a log of every boot. This pulls the errors from the boot before the current one, which is the session where the popups appeared.

journalctl -b -1 -p err --no-pager | grep -iE 'btrfs|nvme|ata|I/O error|read-only' | tail -40

Test the Drive, the Filesystem and the RAM

Ask Btrfs How Many Errors It Has Counted

sudo btrfs device stats /
What a healthy PC shows
[/dev/nvme0n1p3].write_io_errs 0
[/dev/nvme0n1p3].read_io_errs 0
[/dev/nvme0n1p3].flush_io_errs 0
[/dev/nvme0n1p3].corruption_errs 0
[/dev/nvme0n1p3].generation_errs 0

Run a Scrub to Check Every Block

sudo btrfs scrub start /
sudo btrfs scrub status /

Check the Drive’s Own Health Report

sudo dnf install smartmontools
sudo smartctl -a /dev/nvme0 | grep -iE 'critical|media|percentage|available spare'
What a healthy PC shows
Critical Warning: 0x00
Available Spare: 100%
Percentage Used: 3%
Media and Data Integrity Errors: 0

Check Free Space

sudo btrfs filesystem usage / | head -12

Test the RAM If the Drive Passes

What to Do While the Drive Is Read-Only

systemctl reboot

What the Results Tell You to Do Next

What you foundMost likely causeWhat to do
Device stats all zero, scrub clean, SMART clean, memtest cleanA one-off during the update, or a kernel bugKeep using it. Run btrfs device stats / once a week for a month. If it stays at zero, move on.
Media errors in SMART, or scrub finds read errorsThe drive is failingBack up today. Replace the drive. Reinstall Nobara or restore from backup.
Corruption errors in Btrfs but SMART cleanRAM or a cableReseat the drive cable or NVMe stick, then run memtest for a full pass.
Free space under 10 GBDisk filled during the updateClear space: sudo dnf clean all, delete old Steam shader caches, empty the trash. Then rerun the update.
Log shows errors only right after the kernel updateNew kernel and your drive disagreeAt the GRUB menu, boot the previous kernel. If the errors stop, report it on the Nobara forum with your log.

Keep It From Coming Back

Exit mobile version