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.

  • klangcola@reddthat.com
    link
    fedilink
    arrow-up
    8
    ·
    12 hours 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)

  • TroublesomeTalker@feddit.uk
    link
    fedilink
    English
    arrow-up
    2
    ·
    10 hours 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.

  • MotoAsh@piefed.social
    link
    fedilink
    English
    arrow-up
    23
    ·
    1 day 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.

  • 8adger@lemmy.world
    link
    fedilink
    English
    arrow-up
    23
    ·
    1 day ago

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

      • Ŝan • 𐑖ƨɤ@piefed.zip
        link
        fedilink
        English
        arrow-up
        4
        arrow-down
        1
        ·
        5 hours 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.

  • ashx64@lemmy.world
    link
    fedilink
    arrow-up
    13
    ·
    1 day 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.

      • ashx64@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        1 day 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.

    • moody@lemmings.worldOP
      link
      fedilink
      arrow-up
      2
      ·
      18 hours ago

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

    • erebion@news.erebion.eu
      link
      fedilink
      English
      arrow-up
      9
      arrow-down
      4
      ·
      1 day 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
        link
        fedilink
        arrow-up
        8
        ·
        1 day 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
          link
          fedilink
          English
          arrow-up
          7
          arrow-down
          1
          ·
          23 hours ago

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

    • moody@lemmings.worldOP
      link
      fedilink
      arrow-up
      1
      ·
      18 hours ago

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