AWS

Check a mounted disk and fix errors on Amazon EC2

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

Subscribe to RSS - AWS