项目中遇到问题:Linux文件系统损坏

2013年8月28日 由 Creater 留言 »

原因:由于不正常关机造成
现象:
starting udev: [OK]
setting hostname localhost.localdomain: [OK]
setting up Logical Volume Management: No VolumeGroups found [OK]
checking filesystems
_CentOS-6.0-i386 contains a file system with errors,check forced.
Entry ‘sound-juicer’ in /root/.gconf/apps(27776 has an incorrect filetype(was 2,should be 1).
_CentOS-6.0-i386:UNEXPECTED INCONSISTENCY ;RUN fsick MANUALLY
(i.e.,without -a or -p options) [FAILED]

*** An Error occurred during the file system check
*** Dropping you to a shell ; the system will reboot
*** Warning –SELinux is active
*** Disabling security enforcement for system recovery.
*** Run ‘setenforce 1’ to reenable
Give root password for maintenance
(or type Control-D to continue):
bash:cannot set terminal process group(-1):Inappropriate ioctl for device
bash: no job control in this shell
(Repair filesystem)1#
解决办法:此方法对其他原因造成的文件系统出错也适用
1.输入root账户密码
2.首先用 “fdisl -l” 查看磁盘设备。
3.找到需要修复的设备后,执行命令“fsck -y /dev/sda1”(类似的硬盘分区)
4.修复完成后,会出现提示“FILE SYSTEM WAS MODIFIED”。这时输入命令 “reboot” 命令重启系统。

广告位

发表评论

你必须 登陆 方可发表评论.