LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 714|回复: 2

麻烦大了,如何重构分区的超级块?(已解决)

[复制链接]
发表于 2006-3-29 12:30:57 | 显示全部楼层 |阅读模式
我的一块硬盘现在mount不上来了
硬盘情况

  1. Disk /dev/hdc: 41.1 GB, 41174138880 bytes
  2. 16 heads, 63 sectors/track, 79780 cylinders
  3. Units = cylinders of 1008 * 512 = 516096 bytes

  4.    Device Boot      Start         End      Blocks   Id  System
  5. /dev/hdc1               1       79780    40209088+  83  Linux
复制代码


mount /dev/hdc1 /mnt/hdc1时报错
mount: wrong fs type, bad option, bad superblock on /dev/hdc1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

fsck.ext3 /dev/hdc1

  1. ~ # fsck.ext3 /dev/hdc1
  2. e2fsck 1.38 (30-Jun-2005)
  3. Group descriptors look bad... trying backup blocks...
  4. fsck.ext3: Bad magic number in super-block while trying to open /dev/hdc1

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

e2fsck -b 8193 /dev/hdc1还是同样错误
我用dd将hdc1的前3个块读出来dd if=/dev/hdc1 of=hdc1 count=3,用二进制编辑器打开发现原来应该是00的全都编成20了。
现在要怎样修复?重要数据在里面啊。。。。哭死了。
 楼主| 发表于 2006-3-29 12:35:46 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-29 12:41:02 | 显示全部楼层
备份先。。。。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表