Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Read-only Filesystem

Direct 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.

When to use this

Use it when the symptom is “Read-only Filesystem”: work through the layers in order and stop at the first one that fails.

First 30 seconds

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.

Operational verification

errors → remount ro → fix → remount rw

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Failure and recovery traps

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.

Platform / version applicability
Storage architecture and operations
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformStorage architecture and operations
Scope / prerequisiteUse it when the symptom is “Read-only Filesystem”: work through the layers in order and stop at the first one that fail…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key 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
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
continueKeep running after a file system error
remount-roRemount read-only
panicPanic 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 messageMeaningNext step
Block-layer I/O error before the EXT4 errorDisk, controller, SAN pathsmartctl -a, multipath, array logs
aborted journal without I/O errorsMetadata inconsistencyUnmount and run e2fsck
XFS Corruption detected/shutdownXFS forced shutdownUnmount and run xfs_repair
Mounted ro at boot/etc/fstab option or failed fsckCheck 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.*

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
CauseNext step
Disk/path I/O errorsFix storage (paths, disk), then check filesystem
ext4 metadata error with errors=remount-roUnmount, e2fsck -f
XFS forced shutdownUnmount, mount to replay log, xfs_repair if needed
LUN/snapshot presented read-onlyArray mapping or replication target settings
Thin pool or VM datastore fullFree/extend space

Remounting read-write without fixing the cause risks further damage.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docStorage architecture and operations current

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%
Terminology layer

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.

Aliases that resolve here
read-only filesystemfilesystem remounted read onlyro filesystemcannot write filesystem
Embedded reference data

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 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
Confirmation

Confirm action

Continue?