现象:
团委平台无法启动clc/cc/nc
手动启动clc,提示对log文件没有写权限,只有只读权限
sudo vim 编辑log文件,提示只读,没有写权限,查看文件权限为rw-rw-rw
发现执行所有sudo命令,提示sudo: unable to open /var/lib/sudo/username/1:read-only-file system
网上查找原因,
http://askubuntu.com/questions/197459/read-only-file-system
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/992424
说磁盘操作有问题,系统将磁盘设为只读
执行dmesg |less ,ext4错误
ext4-fs error(device sda1):ext4_mb_generate_buddy:739:group 9167,13317 clusters in bitmap,13332 in gd
borting journal on device sda1-8
EXT4-FS(sda1):remounting file system
ext4-fs(sda1):1024pages error30
TODO:
找出具体出错原因
解决方法:
1.网上说sudo mount -o remount / (但是该系统无法使用sudo,且无法切换root用户,没有设置root用户)
2.重启服务器,提示disk有问题,press F:FIX the problem ,s :skip mount ...
选择f,让系统自动修复disk,重启后进入系统正常