Issue with fsck on Ubuntu 20.04.2 LTS

Solution 1:

From the comments...

Do sudo swapoff and/or unmount any swap partitions. You have to fsck a partition, not a disk. Use the correct sudo fsck -f /dev/nvme0n1p1. Use sudo fdisk -l to determine what ext4 partitions you have, and fsck those also.

boot to a Ubuntu Live DVD/USB in “Try Ubuntu” mode

  • 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/nvme0n1p1, replacing sdXX with the number you found earlier
  • repeat the fsck command if there were errors
  • type reboot