Ubuntu force fsck on boot
Posted by Marius Voila on December 11, 2014 in London, U.K . — 0 comments This post contains 155 wordsThis is a small rant because I deal with this every single day of my sysadmin life :-) .
I guess everyone of you saw this message in the console when they logged in their servers *** /dev/xvda1 should be checked for errors ***
and of course the first fix which comes in ones mind is touch /forcefsck
and reboot. This is great just that once the server boots up you will again be greeted with the same message because on boot fsck did only a dry run so the actual fix did not happened.
To get rid of the not so welcoming message *** /dev/xvda1 should be checked for errors ***
follow the following steps:
and make sure that it looks like this: