9

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?

Daniel T
  • 5,339
heynnema
  • 73,649

1 Answers1

10

For 18.04 or newer... you MUST do it this way...

  • boot to a Ubuntu Live DVD/USB
  • open a terminal window by pressing Ctrl+Alt+T
  • type sudo fdisk -l
  • identify the /dev/sdXX device name for your "Linux Filesystem"
  • type sudo fsck -f /dev/sdXX, replacing sdXX with the number you found earlier
  • repeat the fsck command if there were errors
  • type reboot
heynnema
  • 73,649