I have an Ubuntu micro instance running on amazon EC2.
Recently after logging in I was alerted:
*** /dev/xvda1 will be checked for errors at next reboot ***
I've rebooted a couple times using init 6, however when I log on I am still getting the same notice, so apparently fsck is not running at startup.
I read this blog post which mentions that if the /etc/fstab <pass> column is set to 0 then a disk check will be skipped during reboot. Here is my fstab file:
<file system> <mount point><type><options><dump><pass>
LABEL=cloudimg-rootfs / ext4 defaults 0 0
/dev/xvdh /vol xfs noatime 0 0
This is the default configuration for an ec2 image fromubuntu.
- Is it normal for
<pass> to be set to0here? - Why would it be set to
0? - What is the best way to run
fsck- should I change this value or only run it manually when alerted?