oem 2.6.27.24 自动fsck人为停止后 启动不了grub 删除,备份恢复后分区异常 请求支持

编译打包和其他
回复
xzby
帖子: 14
注册时间: 2012-01-31 12:43
系统: win7 中标麒麟6,5中标普华5oem
联系:

oem 2.6.27.24 自动fsck人为停止后 启动不了grub 删除,备份恢复后分区异常 请求支持

#1

帖子 xzby » 2012-12-15 13:47

支持服务:
您好!
ubuntu下无法mount /dev/sda12 /sda12系统无法进入 root 但是显示文件系统读不了。

这是我的过程:在任何linux下都是这样的错误。ubuntu也不例外
系统是神舟电脑的oem的中标普华 原来的被别人装win7时删了。返厂又给我装的。但是gparted里面进不去,可能安装时就有问题。 我备份,用ghost4linux g4l软件。
后来把分区都删了,然后装的。但是中标的分区当时给我装的就不是主分区,也能进去。主分区我给改成中标麒麟用的了。9G主分区,普华的得装GCC所以不够,在最后面,之前是swap所以我没办法调分区。
再后来我在前面的硬盘分区装了win7 EM ,win8 RTM 结果linux全都无法启动。 用easybcd软件。找一找结果在一个再之前中标麒麟的启动器里面进入是中标普华的,能进去。中标麒麟和ubuntu都用启动不了。 所以我grub rescue进入ubuntu 后 update-grub ubuntu行了。然后root (hd0,3) setup (hd0,3)中标麒麟也行了 但是我对中标普华安装grub就不行。进入不了启动界面。黑屏。 只能在ubuntu的grub2引导界面进入。
我于是后来装上了。 是因为是用了移动了分区大小。改小了一百兆。
因为我备份恢复都得进行一下调linux分区大小,要么就无法启动。有panic什么的。大概是因为给我装的就没装好,分区时破坏了分区大小。
但是启动进入,就是进不去桌面。在启动最后是提示fsck。我fsck然后说有很多块错误。一个一个按y得一个小时。于是我删了分区再建立再装。
所以我删了中标普华,再备份恢复。
备份恢复但是root (hd0,11) 文件系统能是0x83但是就是不读,不显示是ext2 fs. 我又
[root@localhost img]# mkfs .ext3 /dev/sda12
mke2fs 1.41.10 (10-Feb-2009)
mkfs.ext2: invalid blocks count - /dev/sda12
[root@localhost img]# mkfs.ext3 /dev/sda12
mke2fs 1.41.10 (10-Feb-2009)
文件系统标签=
操作系统:Linux
块大小=4096 (log=2)
分块大小=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
863264 inodes, 3451648 blocks
172582 blocks (5.00%) reserved for the super user
第一个数据块=0
Maximum filesystem blocks=3535798272
106 block groups
32768 blocks per group, 32768 fragments per group
8144 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208

正在写入inode表: 完成
Creating journal (32768 blocks): 完成
Writing superblocks and filesystem accounting information: 完成

This filesystem will be automatically checked every 22 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
在win下解压.gz
然后 dd if=neoshinewithc.img of=/dev/sda12
就恢复了系统。但是启动不了,分区错误。


我在中标麒麟下
#mount /dev/sda12 /mnt
mount: you must specify the filesystem type

#fsck -y /dev/sda12
fsck from util-linux-ng 2.17.2
e2fsck 1.41.10 (10-Feb-2009)
fsck.ext2: 超级块无效, trying backup blocks...
fsck.ext2: Bad magic number in super-block 当尝试打开 /dev/sda12 时

The 超级块 could not be read or does not describe a correct ext2
文件系统. If the 设备 is valid and it really contains an ext2
文件系统 (and not swap or ufs or something else), then the 超级块
is corrupt, and you might try running e2fsck with an alternate 超级块:
e2fsck -b 8193 <设备>

#e2fsck -b 8193 </dev/ada12>
bash: syntax error near unexpected token `newline'
[root@localhost 桌面]# e2fsck -b 8193 /dev/sda12
e2fsck 1.41.10 (10-Feb-2009)
e2fsck: Bad magic number in super-block 当尝试打开 /dev/sda12 时

The 超级块 could not be read or does not describe a correct ext2
文件系统. If the 设备 is valid and it really contains an ext2
文件系统 (and not swap or ufs or something else), then the 超级块
is corrupt, and you might try running e2fsck with an alternate 超级块:
e2fsck -b 8193 <设备>


#mount /dev/sda12 /mnt
无法挂载位置 Error mounting:mount:wrong fs type,bad option,bad superblock on /dev/sda12.



#fdisk /dev/sda12
记得是
You will not be able to write the partition table. Device contains neither a vaild DOS partition table, nor Sun, SGI or OSF disklabel. Building a new DOS disklabel. Changes will remain in memory only. Until you decide to write them. After that, of course, the previous content won't be recoverable.
warning:invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

在ubuntu不小心fdisk后按了c回车 (我以为是p按错键了) 之后到现在就是
#fdisk /dev/sda12

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').

如果fsck都修复不了 被动停止 我想是硬盘已经被我移动ext分区弄坏了 或是 备份的系统 给我装的 本身就坏了 没有分好区(我也遇到过,在中标普华5 没有gparted进入得了。 就会怎么也进不去系统。
现在这个分区是没有分区 未知格式 无法用分区软件调整大小。 我现在把那个分区删掉然后在后面部分建立分区,以给我点磁盘空间。

gcc很难装的 需要很多 还有内核,得改名,改 cpu 为686.

这个问题我在网上搜了 但都是 fsck什么的都能解决。
我当时fsck 然后ctrl +c 停了 结果没有一次fsck完,有问题的块是在最后面多少。 就删了分区 会不会分区损坏了。 还是系统已经不能用了。在这个分区的别的部分新建分区,也不行。在别的分区能行么?我觉得是系统已经不能用了,因为初装时分区异常,没有gparted.
但也都不能确定。所以我想要一些如和对这些的修复。
请求软件支持 部门 给我一些如何继续修复。包括但不限于一些命令。

谢谢您的处理。
回复