Recovering deleted files from Raid1 array
Hi - have a Synology Diskstation with 3TB of pictures & movies on it. After carefully organizing all of it, I used a utility to prune empty directories...which deleted everything. I'd really like to recover the files w/ their original names (& hopefully directories) intact.
I've pulled one of the drives from the NAS and have it attached to my ubuntu 14.04 machine. The device shows up under the list of Disk Drives with a partition type of Linux RAID. I know that it was formatted with ext4 So far I've tried r-studio and was able to get files, but no names. I'm currently trying to use debugfs, but running into some issues. When I type in: Code:
sudo debug fs -c /dev/sdb5 Code:
no talloc stackframe at ../source3/param/loadparm.c:4864, leaking memory debugfs 1.42.9 (4-Feb-2014) |
Quote:
|
From the extundelete website:
Quote:
I used mdadm to start the device - since it's raid1 I chose to start with 1 of the 2 devices, to be safe: Code:
sudo mdadm --stop /dev/md0 I tried to unmount /dev/md0 - but the system told me it was not mounted. I then ran extundelete Code:
sudo extundelete /dev/md0 --restore-all Code:
extundelete: failed to read-only open device "/dev/md0": Error code 2133571347 Code:
Error code 2133571347 is "EXT2_ET_BAD_MAGIC" On a whim I tried ext4magic - it gave me the following error: Code:
Error 13 while opening filesystem |
That you can not find the ext-superblock on the raid, can be several possible reasons.
# Superblock destroyed ----------unlikely # Raid is partitioned ----------unlikely # Raid redesigned and disregard the mdadm versions -------possible. # On the RAID is LVM --------- likely But I think, however you will not be successful with extundelete or ext4magic. 2 reasons: # Use as a NAS and a huge numbers of files? the default journal size of 128M is too small to contain unerased inode copies after deleting all the files. # Very possible: (often/always ?) Synology uses the 64-bit flag for all ext4 file systems. This is not the ext4 default setting for files systems <16TB. extundelete and ext4magic have no support for file restore from journal inode data if "64-bit" is set in the ext4 file system. see some old posts: http://sourceforge.net/p/extundelete...sage/32213239/ http://sourceforge.net/p/extundelete...sage/29988846/ robi1 |
Quote:
|
All times are GMT -5. The time now is 01:32 AM. |