The root filesystem on /dev/sda2 requires a manual fsck

Posted on

The root filesystem on /dev/sda2 requires a manual fsck (Linux)

Probably you switched on your computer today and got this error? BusyBox v1.27.2 (Ubuntu 1:1.27.2-2ubuntu3) built-in shell (ash)
Enter 'help' for a list of built-in commands.
(initramfs). The root filesystem on /dev/sda2 requires a manual fsck.
Lets quickly fix it! I am happy to learn how to operate linux, i find it simple to use and its system has a good recovery. This is problem was caused by a consistency error on the partition containing the root file system. It is often triggered by improperly shutting down the machine.

The general fix is:

Replace with that specified in the error (e.g. /dev/sda2).

(initramfs) fsck /dev/sda2 or (initramfs) fsck /dev/sda5 … sda (your number)

Enter Yes(y) to all prompts. Once complete, you will again be presented with the (initramfs) prompt.

Now Reboot the machine.
(initramfs) reboot

You may have an issue with package manager upon reboot. In this case force reboot by holding power button or run command below

$ sudo apt-get update && apt-get clean && apt-get update && apt-get upgrade

The problem will be fixed!

Was this helpful?

Thanks for your feedback!