Recover Data

Post Reply
taba93
Posts: 2
Joined: Sun May 13, 2012 2:50 pm

Recover Data

Post by taba93 » Sun May 13, 2012 2:55 pm

Hi all,
I have a big problem with my NAS. Actually it doesn't turn on, probably because it is broken.
The NAS was configured in RAID0 and I wont to safe the data that are in the disks.
They seem to work when I link them to the PC but I don't know how to read them. Is there any kind of SW for Windows that lets me read XFS disks? If there isn't I can also use Ubuntu but I don't know how to mount them.

Is there anybody that can help me?
Thank you very much and sorry for my English ;)

byee

Mijzelf
Posts: 6207
Joined: Mon Jun 16, 2008 10:45 am

Re: Recover Data

Post by Mijzelf » Mon May 14, 2012 12:07 pm

Maybe there are Windows tools to read XFS filesystems (UFS explorer can), but I don't think they can handle raid0.
So I'd suggest to use Ubuntu. Ubuntu doesn't support raid either, out-of-the-box, but it's easy to install. Open a terminal, and type (internet access needed)

Code: Select all

sudo apt-get update
sudo apt-get install mdadm
AFAIK it will automagically assemble the raid array, and create a mount icon on the desktop.

taba93
Posts: 2
Joined: Sun May 13, 2012 2:50 pm

Re: Recover Data

Post by taba93 » Sun Jun 03, 2012 8:54 am

Thanks for the help!
I m trying to make it work but I have some problems

sudo mdadm --assemble /dev/md1 /dev/sda2 /dev/sdb2
and here is everything fine. I create a mount folder

mkdir /mnt/md1

than I mount the raid system
mount /dev/md0 /mnt/md1/ -o ro

but it tells me to specify the filesystem type. So I tried the following code

mount /dev/md0 /mnt/md1/ -o ro -t xfs

but I receive an errore message

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


How can I solve this?
Thanks for precious help!

Mijzelf
Posts: 6207
Joined: Mon Jun 16, 2008 10:45 am

Re: Recover Data

Post by Mijzelf » Sun Jun 03, 2012 1:51 pm

Is this a typo?
sudo mdadm --assemble /dev/md1 /dev/sda2 /dev/sdb2
...
mount /dev/md0 /mnt/md1/ -o ro
When your assembled device cannot be mounted, it doesn't have a filesystem (swap?), the filesystem is damaged, or the filesystem isn't supported.

You can check if you've got the right partitions by executing

Code: Select all

cat /proc/partitions
/dev/md1 should have the right size. You can check if the filesystem is supported by

Code: Select all

cat /proc/filesystems
Maybe

Code: Select all

blkid /dev/md1
can tell something about the filesystem on /dev/md1.

When everythink is allright here, apparently the filesystem is damaged. You could try to install xfsprogs, and then run

Code: Select all

xfs_repair /dev/md1
But this could cause further damage, so I recommend to first try to get your data back using a recovery tool like PhotoReq (is also in the Ubuntu repository. Despite it's name it can recover *much more* than only pictures) Run PhotoRec on /dev/md1 (or whatever devicenode you used to assemble the array).
PhotoRec won't change the contents of the array.

Post Reply