With No Active Root Entry in fstab, systemd Leaves the Root Filesystem Read-Only on Every Boot

In progress Linux

Debian boots with ro on the kernel command line: the kernel mounts / read-only so it can be checked safely. Later, systemd-remount-fs.service reads the / entry in /etc/fstab and remounts the root with those options, normally read-write. If the / line is missing or commented out, there is nothing to apply: the service exits successfully and / stays read-only, on every boot.

How It Differs from a Failing Disk

Signal ext4 errors or a dying disk No active fstab entry for /
When After a crash, then sometimes again Every boot, even after a clean shutdown
fsck Finds and repairs errors Reports clean
SMART Reallocated/uncorrectable sectors, wear Healthy
Kernel log EXT4-fs error, I/O error Only mounted filesystem ... ro
mount -o remount,rw / May fail (disk refuses writes) Works, until the next reboot
systemctl status systemd-remount-fs — Exit status 0
findmnt -no OPTIONS /            # ro,... right after boot
cat /proc/cmdline                # "ro" here is normal
grep -v '^#' /etc/fstab          # no line for "/" = the cause

A side effect makes it harder to see: with / read-only, the persistent journal can't be written, so journalctl -b -1 shows a boot from months ago.

Fix

Remount read-write, uncomment the root line, check, reboot:

sudo mount -o remount,rw /
sudo sed -i -E 's|^# (UUID=[^ ]+\s+/\s.*)$|\1|' /etc/fstab     # GNU sed: \s = whitespace
sudo systemctl daemon-reload && sudo findmnt --verify
sudo reboot

Look at other mount points too: the same edit can hit /boot/efi, which then isn't mounted, and bootloader updates land in an empty directory on the root disk instead of the EFI partition.

References

Review cards

Flashcard Debian mounts / read-only at boot. What normally makes it read-write, and why does a missing fstab entry break that?

systemd-remount-fs applies the fstab options of the / entry. With no active / line it has nothing to apply, exits successfully, and / stays read-only.

Flashcard / is read-only after every boot, but fsck says clean and SMART is healthy. What do you check first?

Whether /etc/fstab still has an active (uncommented) line for /: grep -v '^#' /etc/fstab.

Quiz Which signal points to a missing fstab root entry rather than a failing disk?
  • EXT4-fs error lines in the kernel log
  • mount -o remount,rw / fails
  • The remount works, but / is read-only again after the next reboot
  • SMART shows reallocated sectors

A disk or filesystem fault leaves traces (errors, failed remounts, SMART). A config problem repeats cleanly on every boot.