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.
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.
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.
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.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.
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.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.dmesg | grep -i "ext4-fs error" again. No new error lines and normal saving means the filesystem check did its job.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.
mount -o remount,rw / purely to copy data off to another drive.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.
sudo smartctl -a /dev/sda - the smartctl tool is in the smartmontools package - using your disk device from lsblk, without the partition number.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.
Every week: Windows problems, hidden tools and full setup guides, explained step by step.
Subscribe on YouTubeThe 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.
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.
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.
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.
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.