Read-only file system

Once the server is booted into rescue, you can SSH into it and use the command line and limited tools. Once you have SSH’ed into the server, make sure that your hard drive is not mounted. It should not be mounted by default when in rescue. To double check you can use,

df -h

And make sure you only see the ram and a / mounted on the server. Next this is the command to run for a FSCK:

fsck -y -C /dev/xvda2

It is not usually necessary for the /boot partition which is on /dev/xvda1, but you may want to run it as well. Once the FSCK is complete, please reboot your server, and it should (typically) become available again in the normal operating system environment. You can use,

shutdown -r now

你可能感兴趣的:(Linux)