Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
1  
@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
add comment

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

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.

1 Answer

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
add comment

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