41
submitted 6 days ago by moody@lemmings.world to c/linux@lemmy.ml

I'm running Bazzite, which is immutable, so the root filesystem is read-only, but I've been having an issue pop occasionally where the rest of my filesystem, including my home folder, becomes non-writable. I can't do much, and constantly get popups about folders being non-writable until I reboot, and then everything goes back to normal.

Does anyone know what can cause this to happen? And is there a way to deal with this without rebooting when it does happen? I don't know when I'll be able to try anything out since it's not a frequent issue, but it has happened to me several times in the past.

top 19 comments
sorted by: hot top controversial new old
[-] Impromptu2599@lemmy.world 29 points 6 days ago

Your drive may be going bad. When errors are detected it will remount the drive as read only.

[-] moody@lemmings.world 3 points 5 days ago

If the drive is in use, how does it remount?

[-] Eggymatrix@sh.itjust.works 10 points 5 days ago

The kernel tells any process using it to fuck off and remounts

[-] Sxan@piefed.zip 1 points 5 days ago

It's just something Linux allows you to do. You can do it manually with

sudo mount -o remount,ro /

In your case, most likely some monitor noticed write errors and, to prevent continued damage and corruption, automatically did this step.

You can often do þe opposite: force remount rw:

sudo mount -o remount,rw /

however, keep in mind þat þis happened because someþing in your system is fucked, and you really should boot from a rescue USB and figure out what it is. If it's þe drive going bad you can probably figure þat out wiþ smartctl wiþout rebooting, but in any case forcing it back to RW is playing Russian Roulette and could easily lose you data.

[-] MotoAsh@piefed.social 23 points 6 days ago

I had this happen with a few drives. The cause was bad cables to the HDDs causing random errors. Had to try a bunch of different cables until the errors stopped happening.

If the problem is showing up out of the blue with no HW changes or anything, definitely back up any data you want to protect from the computer before you get too far down the road, because the HDD might be legitimately failing.

[-] moody@lemmings.world 4 points 5 days ago

It's an NVME drive, so there are no cables involved.

[-] MotoAsh@piefed.social 1 points 4 days ago

I have a few on m.2 to u.2 cables.

[-] klangcola@reddthat.com 12 points 5 days ago

I had the same happen on the root folder on a SATA SSD. The SSD was dying (don't remember if there was SMART errors, but the dmesg log showed write-errors. I cloned old SSD to a new SSD and haven't seen the problem since. That was years ago.

When there are multiple consecutive write errors, Linux will re-moumt the partition as read-only to protect the data. (There usually a statement along the lines of "on-error:remount-ro" for the partition in the /etc/fstab file)

[-] ashleythorne@lemmy.world 14 points 6 days ago

Check dmesg logs and SMART check the drive.

I had two crucial drives that would go read only, some sort of firmware bug I guess.

[-] wabasso@lemmy.ca 3 points 6 days ago
[-] ashleythorne@lemmy.world 5 points 6 days ago

Nope, just stopped using it as my main drive. It becomes read-only far less often when only used as additional storage and less strenuous reading/writing.

I assume it is a firmware bug because both my original and replacement drive had the same issue.

[-] just_another_person@lemmy.world 11 points 6 days ago
[-] erebion@news.erebion.eu 5 points 6 days ago

Yes, but just because SMART does not complain does not mean the drive has issues. If it does, it means there are issues. That should be kept in mind.

[-] just_another_person@lemmy.world 8 points 6 days ago

Literally explained in the link.

Unless there is an above average drive controller on board, it wouldn't be getting out into read-only and still accessible without triggering an error in online drive checks.

[-] erebion@news.erebion.eu 5 points 5 days ago

Just because the linked site does mention it does not mean it is not worth pointing out.

[-] moody@lemmings.world 2 points 5 days ago

I'm not getting any SMART errors, the reports look good. I'll have to check dmesg if it happens again.

[-] TroublesomeTalker@feddit.uk 3 points 5 days ago

I ran into something similar recently on a Debian NAS. It was something to do with the power management settings on the drive. Tweaked a couple of settings and the problem so far hasn't arisen again 2+ months later.

[-] tilvisun@sh.itjust.works 3 points 5 days ago

It's a common occurence if the drive has NTFS filesystem. If that's the case: ntfsfix

[-] moody@lemmings.world 1 points 5 days ago

It doesn't have an NTFS partition on it. It's the default Bazzite install which is FAT, Ext4, and BTRFS

this post was submitted on 13 Dec 2025
41 points (97.7% liked)

Linux

57274 readers
466 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS