Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I logged on to my Ubuntu server and the message of the day contained these wonderful messages:

*** /dev/sda1 will be checked for errors at next reboot ***
*** /dev/sda6 will be checked for errors at next reboot ***   

Now, I loves me some healthy file systems so I reboot after doing my thing, but when I next log in, the same messages appear. Sure enough, dumpe2fs dutifully informs me that the last check is still way way in the past and the next check date, while not being as far, is not in the future.

Now, I made sure the system checked everything with a pair of forcefsck files and that got rid of the messages, but I still don't understand what could cause my server not to run a file system check despite telling me it needs to do one.

share|improve this question

marked as duplicate by Raja, bcbc, Nathan Osman, Seth, Basharat Sialvi Apr 20 '13 at 22:11

This question was marked as an exact duplicate of an existing question.

@geezanansa: A forcefsck file at the root of each drive. /forcefsck and /home/forcefsck. When I say the forcefsck got rid of the message, I mean manually fscking did – 3Doubloons Apr 20 '13 at 13:20
up vote 0 down vote accepted

This is probably because the message is stuck in motd. See the answer on: Repeated "disk will be checked..." messages when logging into CLI server

The solution: remove the file /var/lib/update-notifier/fsck-at-reboot and reboot, or run this command line to remove the file and fully regenerate the message of the day:

sudo bash -c 'rm /var/lib/update-notifier/fsck-at-reboot && for file in /etc/update-motd.d/*; do $file; done > /var/run/motd' && cat /etc/motd
share|improve this answer

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