Read-only file system

来源:互联网 发布:海马玩 for mac 编辑:程序博客网 时间:2024/05/22 18:06

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

0 0
原创粉丝点击