重新获得服务器访问权限后,由于文件系统只读,我的服务无法启动……
我尝试了其他文章中的一些步骤,但没有成功,具体来说
sudo fsck -Af -M
,mount -o remount /
并多次重启,但它仍然处于只读状态。
其他文章建议在 fstab 中查找并修改 RO,但似乎不存在
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/disk/by-uuid/1abb791b-2288-4a86-a9a0-0b0dd184717d none swap sw 0 0
# / was on /dev/sda4 during curtin installation
/dev/disk/by-uuid/80a44c67-b3be-402c-9ce5-ea6f862e2fbf / ext4 defaults 0 0
# /boot was on /dev/sda2 during curtin installation
/dev/disk/by-uuid/50c99f9c-4bcb-459b-a2ca-488ae606356e /boot ext4 defaults 0 0
/swap.img none swap sw 0 0
还有其他技巧可以拯救这个服务器吗?我担心这里有一个国家敏感的应用程序。
答案1
最终用正确的方法解决了它fsck
fsck -f /dev/sda4
经过修正并提示重新启动后,系统开始运行