There's a new problem in 18.04 and later. I just discovered that the way I've always used fsck at the root access in recovery mode no longer works.
It used to be fsck -f /
, but now it tells me that the disk is mounted r/w, and it won't run. Sure enough the disk IS mounted r/w. This is new behavior. Trying to remount the disk as ro with mount -o remount,ro /
doesn't work either. And, running fsck from the recovery mode menus doesn't work either.
This is my root partition so I can't umount
it or fsck
it without data loss. I really need to run fsck
manually because I get a message that there might be errors (UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY
or You are in emergency mode
).
How can I fsck my root partition on 18.04 and later?