找回密码
 注册
首页 ≡≡桌面技术≡≡ PC操作系统 ubuntu启动时出现An automatic file system check(fsck) ...

linux ubuntu启动时出现An automatic file system check(fsck)of the root filesystem faile

灰儿 2011-1-27 09:28:59
本帖最后由 灰儿 于 2011-1-27 09:59 编辑

不知道上次突然断电关机时出了什么问题,这次开机就检查到43%时就不再继续了,跳出以下的提示字符:

checking drive /dev/sda4: 43% (stage 1/5,29/47)nually.linked list found

an automatic file system check (fsck) of the root filesystem failed.
a manual fsck must be performed, then the system restarted.
the fsck should be performed in maintenance mode with the
root filesystem mounted in read-only mode.

The root filesystem is currently mounted in read-only mode.
A maintenance shell will now be started.
After performing system maintenance press CONTROL-D
to terminate the maintenance shell and restar the system
bash:no job control in this shell

解决办法:
该提示信息的意思是说根文件系统下的一个自动运行的文件项check失败,具体错误我也不不知道了,解决方法为在当前界面的命令符下运行fsck /dev/sda4 试试,再接下来提示的yes,no选项中,一直按“Y”键即可,最后再重启电脑一般都能正常启动。

附网上另外一些解决方法:
用恢复模式启动试试,启动的时候有几个启动项,用recovery mode,一般是第二个启动选项。然后运行 fsck /dev/sda4 试试

主要是根系统处于只读状态,进入后输入 mount -o rw,remount /dev/sda4 /使能读写,然后再修复系统  

还有一个解决办法如下:
一、同时按下Ctrl+ATL+DEL键,进入用户界面。现在更该会话模式:进入安全模式终端。

# sudo -i

# 输入密码

# df  //查询“/”文件所在,我的是 sda3  。

#  fsck  /dev/sda3  //  sda3 为“/”文件所在

# mount -a

重启就OK


二、这时候重启机子,把ubuntu livecd放入光驱,启动后进入试用模式,在进入图形桌面以后启动一终端程序,依次输入

ubuntu@ubuntu:~$ sudo -i

root@ubuntu:~# fsck /dev/sda3

root@ubuntu:~# mount -a


注:/dev/sda3是我的ubuntu linux 安装时候的根文件系统存放盘符。完成之后重启进入你的ubuntu linux就可以了。现在截取我在操作时的部分消息如下:


ubuntu@ubuntu:~$ sudo -i

root@ubuntu:~# fsck /dev/sda3

fsck 1.40.8 (13-Mar-2008)

e2fsck 1.40.8 (13-Mar-2008)

/dev/sda3 has been mounted 20 times without being checked, check forced.

Pass 1: Checking inodes, blocks, and sizes

Pass 2: Checking directory structure

Pass 3: Checking directory connectivity

Pass 4: Checking reference counts

Pass 5: Checking group summary information

/dev/sda3: 277429/5124480 files (2.2% non-contiguous), 2078549/5120710 blocks

root@ubuntu:~# mount -a

重启就OK


您需要登录后才可以回帖 登录 | 注册
学习中心
站长自定义文字内容,利用碎片时间,随时随地获取优质内容。
Q设计语言 了解更多
Q Design 提供商家设计所需的指导与资源,帮商家快速完成产品设计、降低生产成本。
学习中心
站长自定义文字内容,利用碎片时间,随时随地获取优质内容。
Q设计语言 了解更多
Q Design 提供商家设计所需的指导与资源,帮商家快速完成产品设计、降低生产成本。