文件系统损坏后 GNOME 会话无法启动

文件系统损坏后 GNOME 会话无法启动

我正在运行 Ubuntu 9.10 桌面版。今天突然 /home 损坏了,系统提示我手动运行fsck。我运行fsck -y /home并重新启动了系统。系统启动了,但没有 GUI 界面(GNOME 会话),而是黑屏,带有用户提示。有什么技巧可以正常启动我的系统吗?非常感谢任何帮助。

编辑:1

错误类似于以下内容(可能有一些错误,因为我必须手动输入):

machine1 登录:root

密码:

于 2011 年 1 月 16 日星期日 15:30:46 IST 登录到 tty1

EXT3-fs 错误(设备 sda1):ext3_lookup:删除了引用的 inode

中止设备 sda1 上的日志

以只读方式重新挂载文件系统

root@machine1:~# startx
ktemp: failed to create file via template `/tmp/serverauth.xxxxxxxxxxx: Read-only file
/usr/bin/startx: line 157: cannot create temp file for here-document: Read-only file
xauth: error in locking authority file /root/.Xauthority
/usr/bin/startx: line 173: cannnot create temp file for here-document: Read-only file
xauth: error in locking authority file /root/.Xauthority
/usr/bin/startx: line 173: cannnot create temp file for here-document: Read-only file
X: cannot stat /tmp/.x11-unix (No such file or directory), aborting giving up.
xinit: No such file or directory (errno 2): unable to connect to xserver
xinit: No such process (errno 3): Server error
xauth: error in locking authority file /root/.Xauthority

答案1

登录并尝试startx

你的 /home 是否位于单独的分区上?

答案2

只需运行fsck -y /fsck -y /dev/sda1即可解决问题,系统会照常启动 gnome。运行 fsck 的最佳方法是从 live cd 或 usb 启动系统。但在运行 fsck 之前,备份必要的数据也是必须的。

相关内容