Which NAS Filesystems and RAID Modes Do We Support?
We recover data from Btrfs, EXT4, XFS, and ZFS filesystems across Synology SHR and SHR-2, standard RAID 0, 1, 5, 6, and 10, and QNAP QuTS hero ZFS pools. Each filesystem requires different metadata parsing; Btrfs uses chunk tree reconstruction while ZFS uses Uberblock rollback to restore pool access.
We recover data from Btrfs, EXT4, XFS, and ZFS filesystems across Synology SHR/SHR-2, standard RAID 0/1/5/6/10, and QNAP QuTS hero ZFS pools. Each filesystem requires different metadata parsing and reconstruction techniques.
- Synology SHR / SHR-2
- Synology Hybrid RAID uses mdadm with variable-size partitions to mix drive capacities. SHR-2 adds dual parity equivalent to RAID 6. We parse the custom partition layout and mdadm superblocks from each member image.
- Btrfs on NAS
- Synology DSM 7+ defaults to Btrfs for data integrity features (checksums, snapshots). Btrfs stores metadata in a tree structure across members. We reconstruct the chunk tree and device tree from imaged copies to locate and extract files.
- ZFS (QNAP QuTS hero)
- QNAP's QuTS hero uses ZFS with 128-bit checksums and copy-on-write. ZFS pool metadata is distributed across all vdevs. We clone the members and attempt a read-only pool import. If the internal metadata tree is severely damaged, engineers manually parse the array's Uberblocks and roll back Transaction Groups (TXGs) using specialized forensic software to restore pool access. See our ZFS pool recovery guide. QuTS hero units running native ZFS rather than the QTS md and LVM stack are handled under QNAP QuTS hero ZFS pool recovery.
- EXT4
- The default filesystem on older Synology DSM and many Buffalo/Netgear NAS devices. EXT4 journal recovery and inode reconstruction from degraded arrays is a standard part of our workflow.
- XFS
- Used on some NAS configurations for large-file workloads (video editing, surveillance). XFS allocation group headers and B+ tree metadata are reconstructed from member images during recovery.
- Encrypted Volumes
- Synology and QNAP both offer volume-level encryption. Recovery of encrypted volumes requires the original encryption key or passphrase. Without it, the data cannot be decrypted regardless of array condition.
Advanced Offline Reconstruction Mechanics
Once each member is imaged and the RAID layer is virtually reassembled from clones, filesystem-level damage determines the reconstruction approach. Each filesystem stores metadata differently, and the wrong repair command on the wrong filesystem type will overwrite the structures needed for recovery. EXT4 journal replay, Btrfs chunk tree reconstruction, and ZFS Uberblock rollback are each handled from cloned images.
Once each member is imaged and the RAID layer is virtually reassembled from clones, the filesystem-level damage determines the reconstruction approach. Each filesystem stores metadata differently, and the wrong repair command on the wrong filesystem type will overwrite the structures needed for recovery.
- EXT4 journal replay: When an EXT4-based NAS (common on older Synology DSM and WD My Cloud devices) crashes mid-write, the JBD2 journal contains uncommitted transactions. We parse the journal structures from the cloned array image, replay committed transactions to restore inode consistency, and reconstruct orphaned directory entries without running destructive
fsck commands that would discard unlinked files. - Btrfs chunk tree and subvolume reconstruction: Synology Btrfs stores a chunk tree that maps logical addresses to physical offsets within the underlying LVM logical volume. In a degraded or crashed state, the ROOT_TREE may reference missing devices or corrupted B-tree nodes. We scan the raw hex of cloned member images for B-tree node headers, rebuild the chunk mapping manually, and relink orphaned subvolumes (including snapshots) back to the root namespace. This process recovers shared folders even when DSM reports the volume as unrecoverable.
- ZFS Uberblock rollback: On QNAP QuTS hero devices, ZFS maintains a ring buffer of Uberblocks, each pointing to a different Transaction Group (TXG). When the active Uberblock references a damaged TXG (causing pool import I/O errors), we extract the metadata from cloned images, locate older intact Uberblocks in the ring, and force a read-only pool import targeting the last clean TXG. This rolls the filesystem state back to before the corruption event.
iSCSI LUN and Virtual Machine Recovery on NAS Storage
Enterprise Synology and QNAP deployments host iSCSI targets for VMware ESXi, Proxmox, and Hyper-V. When the NAS fails, iSCSI LUNs are raw block devices containing their own internal filesystems (such as VMFS or NTFS), not partitions of the NAS filesystem. Recovery is two-stage: reconstruct the NAS filesystem from clones, then mount the raw LUN images in UFS Explorer or R-Studio.
Enterprise Synology and QNAP deployments frequently host iSCSI targets for VMware ESXi, Proxmox, and Hyper-V hypervisors. When the NAS fails, iSCSI LUNs are not visible as standard shared folders. They exist as raw block devices stored as sparse files within the @iSCSI directory on QNAP or managed through Synology's LUN layer. Recovery requires a two-stage logical extraction.
- Reconstruct the underlying NAS filesystem (Btrfs, EXT4, or ZFS) from cloned member images to locate the sparse files representing each LUN.
- Mount those raw LUN images using UFS Explorer Professional or R-Studio to parse the internal virtual filesystem: VMFS for ESXi, NTFS or ReFS for Hyper-V, or raw disk images for Proxmox QEMU. We extract
.vmdk, .vhdx, and flat image files directly from the reconstructed block layer without relying on the NAS operating system to mount damaged LUNs.
For NAS arrays where an iSCSI LUN was accidentally deleted, we scan unallocated space on the member images for orphaned file headers. For virtual machine recovery from server environments, the same LUN extraction workflow applies whether the host was a dedicated server or a NAS acting as a SAN target.
mdadm, LVM, and ZFS Configuration Recovery Parameters
NAS arrays store their geometry in on-disk metadata that must be parsed before any filesystem can be mounted. We detect these parameters from cloned images rather than trusting the NAS operating system, which protects against cases where the vendor configuration database has desynced from the actual array state, including mdadm superblock versions, LVM physical volume headers, and ZFS vdev labels.
NAS arrays store their geometry in on-disk metadata that must be parsed before any filesystem can be mounted. We detect these parameters from cloned images rather than trusting the NAS operating system, which protects against cases where the vendor configuration database has desynced from the actual array state.
mdadm Superblock Versions and Safe Commands
Linux mdadm stores RAID parameters in superblocks at four possible offsets. Version 0.90 uses a 64 KB-aligned block near the end of the disk. Version 1.0 sits between 8 KB and 12 KB from the end of the device, aligned to a 4 KB boundary.
Version 1.1 writes at absolute offset 0. Version 1.2, the most common modern default, sits 4 KB from the beginning. Each superblock contains the chunk size, RAID level, disk role, array UUID, and data offset.
When superblocks are intact, we read them with mdadm --examine /dev/sdX without writing to the device. Virtual assembly uses mdadm --assemble --readonly to activate the array safely. We never use mdadm --create on a recovery target because it rewrites superblocks and destroys the original array context. When superblocks are missing, we scan for filesystem magic bytes to determine the data offset and reconstruct the geometry virtually.
LVM Physical Volume, Volume Group, and Thin Pool Metadata
QNAP QTS and Synology SHR both layer LVM above mdadm. The Physical Volume header sits at the start of each md device and contains the UUID, extent size, and metadata area location. The Volume Group header maps logical extents to physical extents across all PVs. When LVM metadata corrupts during partial array degradation or DOM flash failure on QNAP, we parse the raw PV headers in hex to rebuild the VG layout.
QNAP QTS uses thin provisioning on top of LVM. The thin pool stores a metadata map that translates logical blocks to physical extents. If the thin pool metadata desyncs from the actual data during an enclosure failure or firmware crash, the QTS interface may report an empty pool while user data remains intact on partition 3.
When /etc/lvm/archive survives on the cloned members, we use vgcfgrestore to recover the volume group metadata without touching the original drives. We then activate the logical volumes read-only and mount the upper filesystem.
ZFS Vdev Labels, Uberblocks, and DDT RAM Requirements
ZFS stores two copies of the vdev label at the beginning of each disk (offset 0 and 256 KB) and two at the end (offset 256 KB from the end and at the absolute end). Each label contains the pool GUID, vdev topology, and ASHIFT value.
The Uberblock ring lives inside each vdev label and records the last 128 Transaction Groups. We read the vdev labels directly from cloned members to reconstruct the pool topology, then scan the Uberblock ring for the highest-generation intact TXG to target for read-only import.
ZFS deduplication creates a Deduplication Table, and holding it in ARC takes roughly 1 to 5 GB of RAM per 1 TB of deduplicated data. The DDT is stored on disk and read on demand, so a pool whose DDT does not fit in RAM still imports, but iXsystems documents that loading the table on demand can take days after an import or reboot. This is not platter failure; it is a RAM-sizing problem, and the DDT is not needed to read existing data.
Recovery runs on a workstation with RAM sized for the table, or uses zdb -lu /dev/sdX to enumerate Uberblocks against each member's block device directly, followed by a forced read-only import against an earlier intact transaction group with zpool import -F -T [txg]. A failed SLOG device after sudden power loss permanently destroys in-flight synchronous writes; this loss is independent of the pool structure and cannot be recovered from the main vdevs.
The step-by-step read-only import sequence for a pool that will not mount is set out in TrueNAS zpool import recovery.
How We Handle Hardware and Software Encrypted NAS Arrays
Synology DSM uses ecryptfs or LUKS-based encryption; QNAP QTS and QuTS hero use AES-256 volume-level encryption. For standard Synology and QNAP volume encryption, encryption is handled in software and the NAS has no dedicated drive-level encryption chip; enterprise units fitted with OPAL 2.0 self-encrypting drives are the exception. We clone every member through write-blocked hardware, reconstruct the RAID and LVM layers offline, then decrypt using the client-provided key. If the key is lost, the data cannot be recovered.
Synology DSM uses ecryptfs or LUKS-based encryption managed through its Key Manager. QNAP QTS/QuTS hero uses AES-256 volume-level encryption with a password or key file. In both cases encryption is handled in software: eCryptfs sits above the filesystem, while LUKS and QNAP volume encryption operate below the filesystem at the block level.
For standard volume encryption the NAS hardware does not contain a dedicated encryption chip that locks sectors at the drive level; the exception is an enterprise unit fitted with OPAL 2.0 self-encrypting drives, covered below.
- Clone every member drive through write-blocked hardware. Our recovery process for encrypted NAS volumes follows the same imaging-first workflow.
- Reconstruct the RAID and LVM layers offline from the cloned images and assemble the encrypted volume.
- Decrypt using the client-provided encryption key, passphrase, or exported
.key file. If the key is lost, the data remains AES-256 encrypted and cannot be recovered by any lab, including ours.
Some NAS devices (particularly enterprise QNAP models) support hardware self-encrypting drives (SEDs) with OPAL 2.0. These drives lock at the controller level and require the NAS chassis or its stored authentication key to unlock. If you have an SED-based NAS, ship the chassis along with the drives so we can attempt authentication before imaging.