Pcornel
Storage · Storage Troubleshooting

Read-only Filesystem

Cheat sheet · https://pcornel.dk/topic.php?topic=4388

Back to the Topic

Answer

A filesystem can be mounted read-only by configuration or remounted read-only after critical errors. Separate mount flags from authorization and from lower-layer write failures.

Remember

  • Read-only filesystem ≠ file permission denied.
  • Mount option ro ≠ automatic evidence of corruption.
  • Remount-rw success ≠ underlying I/O problem resolved.
  • Writable block device ≠ filesystem safe to remount read-write after integrity errors.

First checks

  • findmnt -o TARGET,OPTIONS | grep -w ro — read-only mounts
  • dmesg | grep -i -e remount -e 'error' — why
  • lsblk -o NAME,RO — block device read-only

Commands

smartctl -a
mount -o remount,rw
lsblk -o NAME,RO

Verify in this order

errors → remount ro → fix → remount rw

Where it usually breaks

First mismatch in media/provider → controller/pool → logical object → path/protocol → filesystem/share/object namespace → consumer workload; preserve identity/pre-state before mutation.

Storage Troubleshooting → Read-only Filesystem proof map

Troubleshooting boundaryWhat to verifyProof limit
Scope / identityExact workload, object/device identity, affected hosts and incident windowSymptom naming alone is not root-cause proof
Dependency pathApplication write → filesystem mount state → filesystem integrity policy → block device → path/controller → media/backend → remount decision → write/read-backHealthy adjacent layers do not prove end-to-end health
Failure boundaryA read-only mount proves writes are blocked at the filesystem boundary; it does not distinguish intentional policy from protective remount or lower-layer failure.Correlate evidence for the same operation and timestamps
AcceptanceHealthy evidence shows intended rw mount state, no correlated filesystem/block errors and successful application write/read-back.Close only after the original workload/recovery test and regression check

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4388

Confirmation

Confirm action

Continue?