Skip to content
Contents
GuidesOpenWrt

Is the ext4 root really read-only after x86 OpenWrt boots?

An early ro message can be followed seconds later by a writable mount. Read the mount table after login before taking the disk offline. This guide covers x86/64 systems with ext4 mounted directly at the root.

An early ro message can be followed seconds later by a writable mount. Read the mount table after login before taking the disk offline. This guide covers x86/64 systems with ext4 mounted directly at the root.

Read the fourth field on the / line

Run these read-only commands at the console or over SSH. Save the output on another computer. Older errors may have scrolled out of the kernel log.

cat /proc/cmdline
awk '$2=="/"' /proc/mounts
df -h /
dmesg | grep -Ei 'EXT4-fs|I/O error|read-only|remount' | tail -40
OpenWrt · ext4 · vda2 · ro → r/w
OpenWrt 25.12.6 · x86/64 · QEMU · The lab VM mounts vda2 as ro and remounts it r/w about 8.3 seconds into boot. The current root shows ext4 rw,noatime. vda1 is separate. The message about protecting read-only kernel data is unrelated to root writes.

Choose the next check from the final mount state

  • If / shows rw, inspect the actual directory where saving fails. It may have a separate mount. Run df -h with that path and check the writer’s identity and directory permissions. For an overlay root, inspect the writable layer. A read-only /rom is common.
  • If / shows ro after I/O or ext4 errors, stop writes. On a VM check host capacity and the virtual disk’s read-only setting. Preserve readable data first. Use a separate rescue system to inspect an unmounted copy. Avoid forcing writes or repairing a mounted root.
  • If ro persists without obvious media errors, compare root= in /proc/cmdline, the boot disk and the last working entry. PARTUUID identifies a partition and differs from a filesystem UUID. Identify any attached clones. Check whether startup attempted a remount.

Verify recovery

Keep console access and the original disk. If you changed the boot entry, try the last working one. Once root is rw with no new disk errors, change one reversible nonessential setting during maintenance. Reboot, verify persistence and undo the change. If ro returns, stop cycling power and use a known working copy.

How to identify SquashFS, the writable layer and /rom on OpenWrt

Explore hardware

Comments