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
本文介绍如何在服务器启动到救援模式后通过SSH连接并使用命令行工具进行文件系统检查(FSCK)。文章详细说明了确保硬盘未挂载、运行FSCK命令的具体步骤以及完成检查后的重启操作。

2876

被折叠的 条评论
为什么被折叠?



