Storage · Storage Troubleshooting
Read-only Filesystem
Cheat sheet · https://pcornel.dk/topic.php?topic=4388
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 mountsdmesg | grep -i -e remount -e 'error'— whylsblk -o NAME,RO— block device read-only
Commands
smartctl -amount -o remount,rwlsblk -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 boundary | What to verify | Proof limit |
|---|---|---|
| Scope / identity | Exact workload, object/device identity, affected hosts and incident window | Symptom naming alone is not root-cause proof |
| Dependency path | Application write → filesystem mount state → filesystem integrity policy → block device → path/controller → media/backend → remount decision → write/read-back | Healthy adjacent layers do not prove end-to-end health |
| Failure boundary | A 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 |
| Acceptance | Healthy 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