NSA 325 ZFS-fuse RAID 1 or MSData, ext4 on a ddrescued image

Using TestDisk to repair the filesystem
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
fing
Posts: 1
Joined: 31 Mar 2015, 09:44

NSA 325 ZFS-fuse RAID 1 or MSData, ext4 on a ddrescued image

#1 Post by fing »

Please let me know where to go next.
I had an NSA 325 RAID1 which had a degraded drive.
I added a new raw drive which seems to recover fully.
i.e. Master Drive (sectors self-fixed) + brand new RAID1 mirror.
While it was 95% recovered I started adding more files to the RAID.
Somewhere between that and the next reboot the master showed it
is degraded again. So I bought new identical 3TB Seagate HD to
replace the master.
Trying to get this new one to resync/recover into a RAID1
pair with former RAID1 mirror failed on NSA 325 as recovery
never started as the manual claimed.

Now I am stuck with a ddrescue image of the failed master drive
and the RAID1 mirror drive which seems to not have a superblock.

I am now on Ubuntu with the new 3TB RAID1 mirror HD plugged
on the motherboard via SATA and the image of the failed 3TB
master HD in a USB attached 4TB HD (image = 3TB).

How do I recover my files?
My NSA 325 Zyxel claim the Filesystem is ZFA-fuse but testdisk
Thinks it is MSData ext4.
I am not sure how proceed with testdisk since I am not sure if I
should recover only the partition it thinks is ext4 or should I force
it to change type to FreeBSD ZFS?
What option is partition recovery? Add partition? Change Type?
The menu is confusing.

Below is some output of my attempts.

Let me know if you need more info to help.

--------------------------------new raid1 mirror: supposed to be good---------------------------------

sudo parted /dev/sdb

GNU Parted 2.3
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit B
(parted) print
Model: ATA ST3000DM001-1ER1 (scsi)
Disk /dev/sdb: 3000592982016B
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number Start End Size File system Name Flags
1 1048576B 511705087B 510656512B linux-swap(v1) mitraswap
2 511705088B 3000592498687B 3000080793600B eexxtt44 msftdata

--------------------The image I copied from failed master raid1-------------------------------------

sudo parted saved_raid1.img

GNU Parted 2.3
Using /media/us/Seagate Backup Plus Drive/nas_backup/saved_raid1.img
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit B
(parted) print
Error: The primary GPT table is corrupt, but the backup appears OK, so that will be used.
OK/Cancel? OK
Model: (file)
Disk /media/us/Seagate Backup Plus Drive/nas_backup/saved_raid1.img: 3000592982016B
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 1048576B 511705087B 510656512B ext2 mitraswap
2 511705088B 3000592498687B 3000080793600B eexxtt44 msftdata

(parted)

-------------------------------mdadm examine---------------------------
sudo mdadm --examine /dev/sdb

/dev/sdb:
MBR Magic : aa55
Partition[0] : 4294967295 sectors at 1 (type ee)

-------------------------------------------------------------------------------

I get the same examine output for image and mirror.

-----------------------Trying to assemble I get:------------------------

sudo mdadm --assemble /dev/md0 /dev/sdb

mdadm: Cannot assemble mbr metadata on /dev/sdb
mdadm: /dev/sdb has no superblock - assembly aborted

---------------------------------------------------------------------------------
Please help!

Ad.
....................................

Locked