On login to EC2 (Ubuntu) instance, I see
*** /dev/xvda1 should be checked for errors ***
I can't fsck /dev/xvda1
because it is mounted, and sudo umount /dev/xvda1
fails because it is in use.
So I tried to use sudo touch /forcefsck
as suggested here but it doesn't work, when I did it nothing happened on terminal. What to do?
touch
command? The command by itself just makes a file, but you have to reboot the server for the actual check to take place.