This question already has an answer here:

Whenever i switch on Ubuntu I always see this message.

(Initramfs): /dev/sda1 contains a file system with errors, check forced.
  Inodes that were a part of a corrupted orphan linked lost found.
  /dev/sda1 : UNEXPECTED INCONSISTENCY; RUN fsck manually.(I.e .,
  without -a or -p options). fsck exited with status code 4. The root
  filesystem on /dev/sda1 requires a manual fsck

marked as duplicate by karel, Eric Carvalho, Martin Schröder, ravery, user364819 Feb 10 '18 at 14:40

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • This shouldn't occur repeatedly. What do you to shut down Ubuntu? – David Foerster Feb 19 '17 at 17:44
  • Do you dual-boot with Windows? If so, do you have a driver installed in Windows that allows it to read/view Ubuntu EXT4 files/partitions? Please start comments directed at me with @heynnema or I may miss them. – heynnema Feb 19 '17 at 18:20
  • No i did not dual-boot windows @heynnema – Abhishek Barman Feb 19 '17 at 18:26
  • I don't know but the message occurs repeatedly whenever I shutdown and then restart it again. @David Foerster – Abhishek Barman Feb 19 '17 at 18:29
  • @AbhishekBarman: Again, how exactly do you shut down Ubuntu? – David Foerster Feb 19 '17 at 20:01

Lets first check your file system for errors.

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 / or sudo fsck -f /dev/sda1
  • 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
  • open a terminal window
  • type sudo fsck -f /dev/sda1
  • repeat the fsck command if there were errors
  • type reboot
  • 9
    Why not just do the fsck -fy /dev/sda1 directly on the prompt ? – Soren A Feb 19 '17 at 20:07
  • 2
    At the prompt he gets just after the message. I have never seen this message without a following 'minimal grub' prompt. – Soren A Feb 19 '17 at 20:14
  • 3
    Belive me, it works !! – Soren A Feb 19 '17 at 20:33
  • 1
    At the prompt he gets below the error message .. whatever it is. – Soren A Feb 19 '17 at 20:46
  • 1
    ... At the (initramfs) prompt I was able to run fsck directly (no need for sudo). The system fixed a whole bunch of filesystem errors, and I was able to restart Ubuntu normally. Your answer was almost correct. – mathguy Mar 30 '18 at 17:41

From there, you should be able to drop to some maintenance shell (if not already opened), where you may run fsck -yf /dev/sda1.

If there are any errors rerun fsck -yf /dev/sda1

To login as usual simply run exit and proceed normally.

Not the answer you're looking for? Browse other questions tagged or ask your own question.