求助,非正常掉电后无法挂载镜像~

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
gfpyc
帖子: 3
注册时间: 2012-04-01 20:07

求助,非正常掉电后无法挂载镜像~

#1

帖子 gfpyc » 2012-04-01 20:11

如题,非正常掉电一次,起来后再重新挂在镜像就像下面这样了。。。

代码: 全选

 26$sudo mount -t ext4 -o -loop1 system_73_sg_preroot.img test/
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       missing codepage or helper program, or other error
       系统日志中可能有一些重要的信息,
       试试用 dmesg | tail 之类的命令查看。
头像
lilydjwg
论坛版主
帖子: 4249
注册时间: 2009-04-11 23:46
系统: Arch Linux
联系:

Re: 求助,非正常掉电后无法挂载镜像~

#2

帖子 lilydjwg » 2012-04-01 22:52

fsck 试试吧,如有重要数据注意先备份。

你的 system_73_sg_preroot.img 是在什么分区上,怎么掉电一次就挂了?
gfpyc
帖子: 3
注册时间: 2012-04-01 20:07

Re: 求助,非正常掉电后无法挂载镜像~

#3

帖子 gfpyc » 2012-04-03 12:57

谢谢,我试试看,那个img只是要修改手机system分区的ext4镜像啦,所以就直接扔到~/下了
gfpyc
帖子: 3
注册时间: 2012-04-01 20:07

Re: 求助,非正常掉电后无法挂载镜像~

#4

帖子 gfpyc » 2012-04-03 13:10

fsck提示

代码: 全选

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上的

代码: 全选

~/26$ sudo losetup /dev/loop0 /home/nagi-peng/26/system.img.ws
~/26$ sudo mount /dev/loop0 /home/nagi-peng/26/test/
不过就是比以前麻烦点罢了,小白对linux了解还不算太深,如果有办法能回复到原来一条命令就mount上,还请指教。
头像
lilydjwg
论坛版主
帖子: 4249
注册时间: 2009-04-11 23:46
系统: Arch Linux
联系:

Re: 求助,非正常掉电后无法挂载镜像~

#5

帖子 lilydjwg » 2012-04-03 13:48

哦,你用 -o loop 就可以了。估计是你的 loop1 设备文件有问题。
回复