Use it when the symptom is “Read-only Filesystem”: work through the layers in order and stop at the first one that fails.
Read-only Filesystem
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.
1. Kernel remounts read-only after filesystem or I/O errors.
2. Find the error first.
3. Check device health and space.
4. Repair offline.
5. Remount rw only after fixing.
errors → remount ro → fix → remount rw
Context & applicabilityCommon mistakes · platform/version boundaries
A read-only mount shows writes are blocked at the filesystem boundary; it does not distinguish intentional policy from protective remount or lower-layer failure.
Suspicious evidence includes unexpected remount-ro events, journal/metadata errors, medium errors, path resets or repeated return to read-only after remount.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
Application write → filesystem mount state → filesystem integrity policy → block device → path/controller → media/backend → remount decision → write/read-back
Healthy evidence shows intended rw mount state, no correlated filesystem/block errors and successful application write/read-back.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 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.
findmnt -o TARGET,OPTIONS | grep -w ro— read-only mountsdmesg | grep -i -e remount -e 'error'— whylsblk -o NAME,RO— block device read-only
ReferenceImportant terms & boundaries3 sections · depth on demand
Scope and what the checks show
A read-only mount shows writes are blocked at the filesystem boundary; it does not distinguish intentional policy from protective remount or lower-layer failure.
In depth
Read-only is usually a protection, not the fault
A file system that becomes read-only at runtime normally did so on purpose after an error. For ext4 the behaviour is set by errors= (mount option or superblock default set with tune2fs -e):
errors= | Documented behaviour |
|---|---|
continue | Keep running after a file system error |
remount-ro | Remount read-only |
panic | Panic and halt the machine |
Find the first error
# findmnt -o TARGET,SOURCE,FSTYPE,OPTIONS /srv
TARGET SOURCE FSTYPE OPTIONS
/srv /dev/sdb1 ext4 ro,relatime
# journalctl -k -b | grep -iE 'EXT4-fs error|I/O error|Remounting filesystem read-only|blk_update_request'
EXT4-fs error (device sdb1): ext4_journal_check_start: Detected aborted journal
EXT4-fs (sdb1): Remounting filesystem read-only
The first error line tells you the class of problem.
| First message | Meaning | Next step |
|---|---|---|
Block-layer I/O error before the EXT4 error | Disk, controller, SAN path | smartctl -a, multipath, array logs |
aborted journal without I/O errors | Metadata inconsistency | Unmount and run e2fsck |
XFS Corruption detected/shutdown | XFS forced shutdown | Unmount and run xfs_repair |
Mounted ro at boot | /etc/fstab option or failed fsck | Check fstab and boot log |
Do not just remount rw
mount -o remount,rw on a file system that was forced read-only either fails or hides the problem. The safe sequence is: stop writers, fix the device fault, unmount, check the file system, mount again.
Not a file system error
Read-only can also come from the device: a write-protected LUN, a snapshot exported read-only, or a VM disk marked read-only. Check lsblk -o NAME,RO and blockdev --getro /dev/sdb.
*The mount flags and aborted ext4 journal message illustrate protective remount behavior, not an observed disk incident.*
Method
A filesystem that suddenly becomes read-only was usually remounted by the kernel after an error, to protect the data:
dmesg -T | grep -iE 'remount|read-only|I/O error|EXT4-fs error|XFS.*shutdown'
findmnt -o TARGET,OPTIONS /data
| Cause | Next step |
|---|---|
| Disk/path I/O errors | Fix storage (paths, disk), then check filesystem |
ext4 metadata error with errors=remount-ro | Unmount, e2fsck -f |
| XFS forced shutdown | Unmount, mount to replay log, xfs_repair if needed |
| LUN/snapshot presented read-only | Array mapping or replication target settings |
| Thin pool or VM datastore full | Free/extend space |
Remounting read-write without fixing the cause risks further damage.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Storage Troubleshooting → Read-only Filesystem. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/block/index.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Storage Troubleshooting → Read-only Filesystem proof map
Fast scope, dependency, failure-boundary and acceptance checks for Storage Troubleshooting → Read-only Filesystem.
| 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 |