免费注册 查看新帖 |

Chinaunix

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

请教关于无法显示LOGIN:的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-04-07 15:37 |只看该作者 |倒序浏览
我的机器启动时显示:
setting hostname note//(note 是我的主机名)
checking root filesystem
/contains a file system with errors,check forced
/:
unattached inod 213131


/:UNEXPECTED INCONSISTENCY,RUN fsck MANUALLY
                       (i.e.,without -a or -p options)
***An error occurred during the file system check
***Dropping you to a shell;the system will reboot
***When you leave the shell.
   Give root password for maintenance
       (or type control-D for normal startup):
我输入ROOT密码后进入系统,可以使用常用的命令,可以REBOOT,HALT。无法编辑/etc/hosts等文件,提示为只读文件,无法编辑。使用GCC编译文件,提示无法找到命令。请教有什么办法解决。谢谢。

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
2 [报告]
发表于 2004-04-07 15:42 |只看该作者

请教关于无法显示LOGIN:的问题

fsck之后exit应该就可以正常启动了。

论坛徽章:
0
3 [报告]
发表于 2004-04-07 15:53 |只看该作者

请教关于无法显示LOGIN:的问题

输入fsck后回车显示:
fsck  1.25 (20-Sep-2001)

No deviced specified to be checked!
然后输入exit后重启。

ALT+F1----F6无法切换用户。

论坛徽章:
0
4 [报告]
发表于 2004-04-07 16:11 |只看该作者

请教关于无法显示LOGIN:的问题

处在修复状态是不允许编辑文件的,分区处于只读状态
用df看看有哪些分区被挂载
fsck /dev/hdaX(X为数字),修复每个分区,reboot

论坛徽章:
0
5 [报告]
发表于 2004-04-07 16:25 |只看该作者

请教关于无法显示LOGIN:的问题

原帖由 "qiqistation" 发表:
输入fsck后回车显示:
fsck  1.25 (20-Sep-2001)

No deviced specified to be checked!
然后输入exit后重启。

ALT+F1----F6无法切换用户。
fsck -y

论坛徽章:
0
6 [报告]
发表于 2004-04-07 16:38 |只看该作者

请教关于无法显示LOGIN:的问题

敲入df显示:
Filesystem     1k-blocks       used     Available     Use%   Mounted  on
/dev/hda8      7684844   1231588  6062880      17%       /  
/dev/hda7      7684844   1231588  6062880      17%       /boot
none              7684844   1231588  6062880      17%       /dev/pts

敲入fsck /dev/hda5(其它数字也一样)显示:
fsck 1.25(20-Sep-2001)
e2fsck 1.25(20-Sep-2001)
Couldn't find ext2 superblock,trying backup blocks...
fsck.ext2:Bad magic number in super-block while trying to open  /dev/hda5


the superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem(and not swap or ufs or something else),then the superblock is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193<device>;

论坛徽章:
0
7 [报告]
发表于 2004-04-07 16:41 |只看该作者

请教关于无法显示LOGIN:的问题

敲入fsck -y或fsck -Y同样显示:

fsck 1.25 (20-Sep-2001)

No deviced specified to be checked!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP