今天出现个怪现象,ubuntu开机后无法进入图形界面,远程登录后发现系统成了只读文件系统。mount命令之后出现如下信息
mount: warning: /etc/mtab is not writable (e.g. read-only filesystem).
It's possible that information reported by mount(8) is not
up to date. For actual information about system mount points
check the /proc/mounts file.
查看/etc/fstab文件时发现
UUID=xxxx / ext4 errors=remount-ro 0 1
这个说明ubuntu文件系统成了只读文件系统。
解决办法:
用ubuntu光盘引导系统,进入命令行终端,输入如下命令修复磁盘信息
sudo fsck /dev/sdxy #sdxy为系统dev/sdxy is your ubuntu root partition 或者为出现问题的分区。
一路yes fix之后,重启电脑,至此ubuntu工作正常!