Submitted by gareth on Mon, 10/12/2018 - 08:28
When I logged into my EC2 instance, I had the warning:
*** /dev/xvda1 should be checked for errors ***
We can't fsck /dev/xvda1 because it is mounted and in use, so I need to check this disk on startup as it is mounted, however there are a couple of things that need to be done first before you can do this on my Ubuntu EC2 instance.
First I need to enable FSCKFIX, which is off by default
sudo nano /etc/default/rcS
find the line:
#FSCKFIX=no
And change it to:
FSCKFIX=yes