标题: 请教关于无法显示LOGIN:的问题 [打印本页] 作者: qiqistation 时间: 2004-04-07 15:37 标题: 请教关于无法显示LOGIN:的问题 我的机器启动时显示:
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编译文件,提示无法找到命令。请教有什么办法解决。谢谢。作者: 天外闲云 时间: 2004-04-07 15:42 标题: 请教关于无法显示LOGIN:的问题 fsck之后exit应该就可以正常启动了。作者: qiqistation 时间: 2004-04-07 15:53 标题: 请教关于无法显示LOGIN:的问题 输入fsck后回车显示:
fsck 1.25 (20-Sep-2001)
敲入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>;作者: qiqistation 时间: 2004-04-07 16:41 标题: 请教关于无法显示LOGIN:的问题 敲入fsck -y或fsck -Y同样显示: