今天用着用着,Ubuntu 9.10系统突然提示无法写入文件。
一开始我以为是权限问题,想着可能是自己不小心复制粘贴了什么命令把权限改错了。于是进家目录,依旧无法touch,查看权限,明明是可写。sudo也无法写入。
运行mount,发现 / 被挂载为只读了。于是试着重启。
重启之后发现无法进入图形界面,提示DMA错误啥的,只能打开诊断SHELL。
再次运行mount,发现 / 依然被挂载为只读。修改/etc/fstab,提示只读文件系统,:w!也失败。
运行:
mount /dev/sda1 / -o rw,remount
终于可以写了,修改了/etc/fstab,把挂载 / 的行里的 -error=remount-ro 修改为rw,重启。
重启后,图形界面依然无法启动,文件系统依然只读。
这时候,脑子开了个小差,输入了exit,然后出现了一堆错误提示。其中有一个fsck的错误。我想着再次执行一次fsck吧,看看错误能不能重演。于是:
fsck /
很快提示了很多个inode错误。选择y修复了。最后提示重启。于是:
reboot
系统成功起来。然后我又把/etc/fstab的内容改回原来的样子,一切回归正常。
然后,发现原来也有人出现过同样的错误,不过是01年的老帖了。。。Orz
Hi,I’m pretty new at linux-stuff, but I have to install Debian for a school-project. Problem is, after installing, configuring some stuff like xwindows, sendmail, /etc/fstab, hosts.allow\deny, /etc/services.. I get a serious error. For some reason, the comp boots up and mounts root (/dev/hda1) as a read-only filesystem.
This means I can’t do anything.
I have tried booting in single-user mode, booting from rescue and boot-disks. It always boots in this annoying read-only-mode.
I changed the line in /etc/fstab /dev/hda1 – it had option error=remount-ro.. so I changed that to remount-rw.. it still boots in read-only mode..
Anyone got any clues?
Please. Thanx for any suggestions.
Dar