最近在更换mybooklive 硬盘,想把原盘内的资料移出来,拆下硬盘后,挂到win下无法读取,再挂到Linux下,也无法读取,在QNAP usb 口下挂入,也无法正常加载.
在linux下的命令行中挂载,提示如下:
root@debianMycloud:~# mount -t ext4 /dev/sdc4 /mnt/test -o rw,noatime,nodiratime
mount: wrong fs type, bad option, bad superblock on /dev/sdc4,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
root@debianMycloud:~#
在dmesg中查看到如下:
[17109.984778] EXT4-fs (sdc4): bad block size 65536
网上找了很多办法,都不能解决,有的解释为 superblock 出错引起,修复也不行.
主要估计是mkfs.ext4 -b 65536 -m 0 $diskData 这个格式引起吧,在一篇文章中解释需要64位linux系统来加载估计可以解决,手头没有,只好放弃.
后又搜到一篇文章,介绍如下:
====================================
root@host:~# fsck.ext4 /dev/vg8/lv8
So now that all is fixed (I typed yes to all questions), let's mount it...:
root@host:~# mount -t ext4 /dev/vg8/lv8 /mnt/
mount: wrong fs type, bad option, bad superblock on /dev/mapper/vg8-lv8,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
Oeps... dmesg reports: EXT4-fs (dm-2): bad block size 65536 and google knows that means that we have a disk with a block size larger then 4k. So fuse to the rescue:
root@host:~# fuseext2 -o ro -o sync_read /dev/vg8/lv8 /mnt/
Note the fact that we have mounted the filesystem read-only! Now we can finaly access the files again.
After rescueing the files we need to tear everything down again:
fusermount -u /mnt
lvchange -an /dev/vg8/lv8
mdadm -S /dev/md0
umount /dev/sdb3
udisks --detach /dev/sdb
原文网址:http://pig.made-it.com/RAID.html/
是通过GOOGLE搜到的,百度还搜不出.可以直接打开查看
=========================================
发现使用 fuseext2 -o ro -o sync_read /dev/vg8/lv8 /mnt/
具体用在mybooklive上可以使用:fuseext2 -o ro -o sync_read /dev/sdc4 /mnt/ (/dev/sdc4根据环境修改)
可以解决,真是太好了,立即测试,OK.只是挂载后为只读,不过只读就已不错,能把里面的数据完整的复制出来了.很好.
PS:1)网上还有另外一种办法,测试也可以使用,不过不是很方便.有兴趣的可以打开看看
原址:http://n-dimensional.de/blog/2012/05/01/wd-mybook-live-data-rescue/
使用的命令为:
•Extract the disk from the NAS enclosure and connect it to your PC/laptop.
•Create a new empty directory mkdir /path/to/saved-stuff on the free storage space where you will store the copy of the rescued data.
•Run debugfs /dev/sdg4 (your device name will vary).
•Inside debugfs(8), run the ls command to verify that you can see the shares directory. You can also look into the shares directory with the ls shares command.
•Inside debugfs(8), run the rdump command as follows: rdump shares /path/to/saved-stuff. This will copy all the data from the shares directory on the disk from the NAS to your local free space as /path/to/saved-stuff/shares/.
•Wait until the copying has finished. This will take many many hours if you have a lot of data to transfer, especially if you have the disk connected via USB 2.0.
2)当然,使用Winhex也可以恢复,我测试可以用,不过问题是恢复出来的文件的属性全部变掉了,文件日期全部是当前的日期.当然救急还是可以的.
3)DiskGenius 好像不行,只能查看到分区,都看不到分区内容的. 以上是Mybooklive 的硬盘DATA分区恢复的总结,对于mycloud,测试可以直接挂载,不存在问题.
|
|