Technical Anshu
Tutorials Blog

Reports on Ask Ubuntu and Reddit r/linuxquestions describe the same moment: the root filesystem suddenly goes read-only, often after a power cut, a forced shutdown, or on a disk that has been in service for years. This is not a permissions setting you toggled. When the ext4 driver detects errors it cannot safely continue with, the kernel aborts the journal and remounts the filesystem read-only to stop further damage. That protective move is why you must not simply force the drive back to read-write and carry on - you would be writing new data onto a filesystem already known to be damaged. The correct order is: read the kernel log, protect your files, then check the unmounted filesystem with fsck from recovery mode or a Live USB. And read the honesty note carefully: if fsck keeps finding errors or the disk health check fails, the fix is backup and a replacement disk, not another round of fsck. The ext4 steps are the same on Ubuntu and Debian, Fedora and Arch.

Terminal  .  dmesg and a failed save on a read-only system
The system went read-only by itself. That is the kernel protecting your data.

touch: cannot touch 'file': Read-only file system

EXT4-fs error (device sda1)

Aborting journal on device sda1-8

EXT4-fs (sda1): Remounting filesystem read-only

X Files cannot be saved or created anywhere on the system drive, in any app

X The failure started suddenly during normal use, or right after a power loss or forced shutdown

X dmesg shows EXT4-fs error lines and the remounting read-only message above

READ-ONLY  The filesystem was remounted read-only because errors were detected - check the filesystem and the disk health, do not just force it writable.

The fingerprint of this problem: writes fail everywhere at once, and dmesg shows the EXT4-fs error and journal abort that triggered the read-only remount.

1

Check dmesg for the Cause and Back Up First

Start by confirming why the kernel went read-only, and protect your data before any repair attempt. If the disk is failing physically, the time you spend backing up first is the time that saves your files.

  1. Run dmesg | grep -i "ext4-fs error" and read what it returns. EXT4-fs error lines together with Aborting journal and Remounting filesystem read-only confirm the kernel protected the drive after detecting filesystem errors - note the device name shown, such as sda1.
  2. Save any work that is still open in your apps right now. The running system can still read files even though it cannot write them, so this is your window.
  3. If dmesg also shows I/O errors for the disk alongside the filesystem errors, back up your important files to another drive or external storage first, before rebooting or running any check. A disk reporting I/O errors can get worse with every extra hour of use.
  4. Do not remount the filesystem read-write and continue working as the fix. That ignores the errors the kernel just found and risks writing fresh data into a damaged filesystem.
2

Run fsck on the Unmounted Partition from Recovery or a Live USB ⭐

This is the real repair. A filesystem check must run while the partition is not mounted and in use, which is why it is done from recovery mode or a Live USB - never on the live root filesystem that is currently running your system.

  1. Work out your root partition name first with lsblk - in the examples here it is /dev/sda1, but use the partition your own system and dmesg output actually show. Running fsck on the wrong partition helps nothing.
  2. Reboot into recovery mode, or boot a Live USB of your distro, so the installed root partition stays unmounted.
  3. Run the check with sudo fsck -y /dev/sda1, replacing /dev/sda1 with your root partition. The -y option answers yes to the repair prompts so the check can complete in one pass. Let it run to the end without interrupting it.
  4. When fsck finishes, reboot into the installed system normally and test: save a file, open your usual apps, and check dmesg | grep -i "ext4-fs error" again. No new error lines and normal saving means the filesystem check did its job.
3

Use a Read-Write Remount Only to Copy Data Off

There is exactly one legitimate use for forcing the drive writable in this situation: a short window to copy data somewhere safe. It is a rescue step, not a repair, and treating it as the fix is how damaged filesystems get worse.

  1. Only if you still have files to rescue and no backup yet, you can temporarily remount with mount -o remount,rw / purely to copy data off to another drive.
  2. Copy the important data immediately and do nothing else in that window - do not install updates, do not keep working for hours, and do not treat normal saving returning as proof the problem is gone.
  3. As soon as the copy is done, go back to Fix 2 and run the proper fsck from recovery or a Live USB on the unmounted partition.
  4. If the filesystem drops back to read-only again quickly, stop remounting it. Repeated read-only remounts are the kernel telling you the errors are continuing, which points at Fix 4.
4

Check Disk Health Honestly - A Failing Disk Gets Replaced

Sometimes fsck repairs logical errors left by a power cut and the drive then runs for years. Sometimes the errors keep coming back because the disk hardware itself is failing. Telling those two apart is the most important judgement in this whole guide.

  1. After an fsck pass, watch the pattern: if the read-only problem returns, or the next fsck reports many errors again, run a disk health check with sudo smartctl -a /dev/sda - the smartctl tool is in the smartmontools package - using your disk device from lsblk, without the partition number.
  2. Read the overall health result and the error information in that output. A disk that reports failing health, or one where fsck keeps finding fresh errors on every check, is not a filesystem problem any more - it is a dying disk.
  3. In that case the honest fix is: back up everything you can read right now, while reads still work, and replace the disk. Then install or restore onto the new disk. No number of fsck runs repairs failing hardware.
  4. Do not keep a failing disk in daily service hoping the checks hold. Each remount and each new error is lost ground, and disks in this state typically go from readable-with-errors to unreadable without much warning.
5

Software Needed

Almost everything is already installed: dmesg and lsblk for diagnosis, fsck for the filesystem check, and a recovery mode or Live USB of your distro so the root partition can stay unmounted during the check. The one extra package is smartmontools, which provides smartctl for the disk health check in Fix 4 - install it while the system is healthy if you want it ready, or run it from the Live USB session. An external drive or second disk for the backup is the other thing worth having before you start.

Power loss vs failing disk: a single read-only event right after a power cut or forced shutdown is commonly just journal damage, and one clean fsck from recovery often ends the story. The warning pattern is repetition - read-only returns, fsck finds many new errors, or dmesg shows I/O errors from the device itself. Repetition means check SMART health in Fix 4 and plan around the disk, not around the filesystem.
What NOT to do: do not run fsck on the mounted, running root filesystem, do not use mount -o remount,rw / as the permanent fix and keep working for days, and do not loop fsck again and again on a disk whose health is failing. If fsck keeps finding errors or smartctl reports failing health, back up immediately and replace the disk - endless fsck on dying hardware risks the data you still have.

More PC Fixes on Technical Anshu

Every week: Windows problems, hidden tools and full setup guides, explained step by step.

Subscribe on YouTube

Frequently Asked Questions

Why did my Linux filesystem suddenly go read-only?

The kernel detected ext4 filesystem errors - commonly after a power loss or forced shutdown, or on a disk starting to fail - aborted the journal, and remounted the filesystem read-only to prevent further damage. You will see EXT4-fs error and Remounting filesystem read-only lines in dmesg. It is a protective action, not a setting you changed.

Can I just remount the filesystem read-write and continue?

Only as a temporary rescue to copy data off: mount -o remount,rw / gives you a short window to save files elsewhere. It is not a fix. The errors that triggered the read-only remount are still there, and writing new data into a damaged filesystem can make things worse. Run fsck from recovery or a Live USB afterwards.

How do I run fsck correctly for this problem?

Boot into recovery mode or a Live USB so the root partition is unmounted, confirm the partition name with lsblk, then run sudo fsck -y followed by that partition, for example sudo fsck -y /dev/sda1. Never run fsck on the root filesystem while it is mounted and running your live system.

How do I know if the disk itself is failing?

Check the pattern and the health data. If the read-only problem keeps returning, fsck keeps finding many errors, or dmesg shows I/O errors, run sudo smartctl -a /dev/sda from the smartmontools package and read the health result. Failing SMART health plus repeated filesystem errors means the hardware is failing.

What if fsck keeps finding errors every time?

Then stop repairing and start replacing. Back up everything you can still read immediately, while the disk still responds, and replace the disk. Fsck repairs logical filesystem errors; it cannot repair failing disk hardware, and endless fsck on a dying disk risks losing data that is still readable today.

Guide by Technical Anshu · Problem collected from real user reports on Ask Ubuntu and Reddit r/linuxquestions (root filesystem suddenly read-only, remount-ro errors) and verified against the ext4 recovery workflow - dmesg diagnosis, fsck on the unmounted partition from recovery or a Live USB, and smartmontools SMART health checks for failing disks. No video exists yet for this topic on the channel, so this topic is saved as a fresh video topic. No Shorts are linked in this blog.