免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3611 | 回复: 6
打印 上一主题 下一主题

系统不能启动了,哥们们帮忙看看 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-02-02 10:27 |只看该作者 |倒序浏览
开机的信息是:
checking filesystems
/: resize inode no valid
/: unexpected inconsistency;run fsck manualiy
      (i.e.,without -a or -p options )
*** an error occurred during the file system check
*** dropping oyou to a shell;the system will reboot
***when you leave the shell
*** warning -- SELinux is active
*** disabling security enforcement for system recovery
*** run' setenforce ; to reenable
         Give root password for maintenace
             (or type control-D to continue)
金口袋 该用户已被删除
2 [报告]
发表于 2008-02-05 10:00 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
3 [报告]
发表于 2008-02-05 10:56 |只看该作者
文件系统坏了,又或者严重的话,硬盘有问题。不过,一般来说,都是文件系统坏了,突然掉电就很容易导致这种情况,不用担心,安照提示的,进入shell,然后运行 fsck 检查文件系统所在分区即可。我试过的。

论坛徽章:
0
4 [报告]
发表于 2008-02-05 11:09 |只看该作者
checking filesystems
/: resize inode no valid       调整inode值无效
/: unexpected inconsistency;run fsck manualiy    以外的错误:  运行fsck 检测你的文件系统
      (i.e.,without -a or -p options )
*** an error occurred during the file system check      错误发生在文件系统检测
*** dropping oyou to a shell;the system will reboot  跳过shell系统将会reboot
***when you leave the shell    你将离开的你shell
*** warning -- SELinux is active    警告selinux 活动状态
*** disabling security enforcement for system recovery    请先关闭selinux,之后恢复文件系统
*** run' setenforce ; to reenable    运行setenforce命令关闭你的selinux,然后继续恢检测你的文件系统
         Give root password for maintenace    输入密码。。。。 进入 single  mode
             (or type control-D to continue)

# man   fsck     

NAME
       fsck - check and repair a Linux file system



The  exit  code  returned by fsck is the sum of the following
       conditions:
            0    - No errors
            1    - File system errors corrected
            2    - System should be rebooted
            4    - File system errors left uncorrected
            8    - Operational error
            16   - Usage or syntax error
            32   - Fsck canceled by user request
            128  - Shared library error
       The exit code returned when multiple file systems are checked
       is  the  bit-wise  OR  of the exit codes for each file system
       that is checked.


OPTIONS
       -s     Serialize fsck operations.  This is a good idea if you
              are checking multiple filesystems and the checkers are
              in  an  interactive mode.  (Note: e2fsck( runs in an
              interactive mode by default.  To make e2fsck( run in
              a non-interactive mode, you must either specify the -p
              or -a option, if you wish for errors to  be  corrected
              automatically, or the -n option if you do not.)



#   fsck    -s    根据错误提示看看问题出在哪里!!

论坛徽章:
0
5 [报告]
发表于 2008-02-05 11:44 |只看该作者
正常情况,rc.sysinit 中会执行 fsck ,如果发现有问题无法修复,就会进入该模式

         0    - No errors
            1    - File system errors corrected
            2    - System should be rebooted
            4    - File system errors left uncorrected
            8    - Operational error
            16   - Usage or syntax error
            32   - Fsck canceled by user request
            128  - Shared library error


  1.         # A return of 4 or higher means there were serious problems.
  2.         if [ $rc -gt 1 ]; then
  3.                 if [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --ping ; then
  4.                     chvt 1
  5.                 fi

  6.                 failure "$STRING"
  7.                 echo
  8.                 echo
  9.                 echo $"*** An error occurred during the file system check."
  10.                 echo $"*** Dropping you to a shell; the system will reboot"
  11.                 echo $"*** when you leave the shell."

  12.                 str=$"(Repair filesystem)"
  13.                 PS1="$str \# # "; export PS1
  14.                 [ "$SELINUX" = "1" ] && disable_selinux
  15.                 sulogin

  16.                 echo $"Unmounting file systems"
  17.                 umount -a
  18.                 mount -n -o remount,ro /
  19.                 echo $"Automatic reboot in progress."
  20.                 reboot -f
复制代码


所以上面是让你手工修复错误

论坛徽章:
0
6 [报告]
发表于 2008-02-05 11:50 |只看该作者
原来如此!!


努力学习,,,,,

论坛徽章:
0
7 [报告]
发表于 2008-02-05 11:59 |只看该作者
# mount -n -o remount,ro /


-n     Mount without writing in /etc/mtab.  This is necessary
              for example when /etc is on a read-only file system.  (这个选项是必须的)


-o     Options  are  specified  with  a -o flag followed by a
              comma separated string  of  options.   Some  of  these
              options  are  only  useful  when  they  appear  in the
              /etc/fstab file.  The following options apply  to  any
              file  system that is being mounted (but not every file
              system actually honors them - e.g.,  the  sync  option
              today  has  effect  only for ext2, ext3, fat, vfat and
              ufs):
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP