linux 下的repair filesystem 问题

我在一台机子的硬盘上安装了好几个操作系统,当时我的硬盘显示为hda,我用这个硬盘安装在另外一台机子上时显示为hdc,我用grub的命令行手动启动硬盘上其他的linux系统都没有问题,而启动 位于hdc5 上的Fedora Core3 ,系统启动时出现repair filesystem 问题,用了fsck /dev/hdc5也不管用,具体显示界面如下

checking root file system
fsck.ext3/dev/hda5
The super block 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 somthing else),then the superblock is corrupt,and you might try runnin e2fsck with an alternate superblock;
    e2fsck -b 8193 ,device>
:no suck    file or directory while trying to open /dev/hda5
*** An error occurred during the filesystem check
*** Droping you to a shell
*** waring --SELinux is active
*** disabing security enforcement for system recovery
*** Run 'setenforce 1'to reenable.
Give root passward for mainteance
(or type control-D to continue

我前几天在摆渡的贴吧里贴出来,后来自己把硬盘的ide插槽换了一个地方,在linux下它显示为hdax,就可以启动了,再也没有出现上述问题,如果有同样问题的朋友不妨试一试,也许会管用。

折腾了几天上面的问题,在网上也搜索了一下。遇到上述问题可以使用笨办法,我采用如下办法:进入repair system模式,然后进入运行级别1(init 1),再回到运行级别3(init 3)就可以了,不过我是在fedora5,和redhat恩enterprise上试验的,进入系统后可能处于只读状态,可以通过mount -n -o remount,rw / 来变为可读写状态。我的方法很笨,欢迎有对SELINUX有研究的朋友传授一些经验。

  也可以登录为root用户,然后执行 e2fsck    /dev/hdaX  (hda和X等)等来检查硬盘,然后重启,一般情况下都可以恢复的。
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值