3

In a recent reboot of Ubuntu, which failed, I get the message to run fsck manually. How do I do so. I may have a bad HD sector, and it may be easier to reinstall Ubuntu. I'm a newbie, so bear with me.

2 Answers2

4

Note: For 18.04 and newer, see my new instructions.

To check the file system on your Ubuntu partition...

  • boot to the GRUB menu
  • choose Advanced Options
  • choose Recovery mode
  • choose Root access
  • at the # prompt, type sudo fsck -f /
  • repeat the fsck command if there were errors
  • type reboot

If for some reason you can't do the above...

  • boot to a Ubuntu Live DVD/USB
  • start gparted and determine which /dev/sdaX is your Ubuntu EXT4 partition
  • quit gparted
  • open a terminal window
  • type sudo fsck -f /dev/sdaX # replacing X with the number you found earlier
  • repeat the fsck command if there were errors
  • type reboot
Daniel T
  • 5,339
heynnema
  • 73,649
0

I'm a little late, but if anyone else reaches this thread, here's what worked for me: The error screen said something about an orphaned linked list at dev/mmcblk0p2 and that I had to run fsck manually. The simple solution is to do exactly what it says: run fsck on the corrupted filesystem.

fsck /dev/mmcblk0p2

This will prompt you through the fixing of the filesystem easily and smoothly.

Pilot6
  • 92,041