系统出现只读
实例一
报错 : server sshd restart
touch:createing '/var/lock/subsys/sshd ':Read-only file system
查询系统文件损坏
dmesg |grep error
hdb: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdb: packet command error: error=0x54
修复系统文件
fsck /var -y
给全目录添加权限: 读写
mount -o remount rw /
转载于:https://blog.51cto.com/6850242/1539240