NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
HadesCA
Sep 12, 2022Aspirant
Recovering X-Raid2 files using Linux/Ubuntu
I have two ReadyNAS Pro Pioneer 6-bay NAS boxes. I thought buying two would add safety so if one failed the other could be used to recover files. Wrong. Both failed at the exact same time. First ...
StephenB
Sep 12, 2022Guru - Experienced User
HadesCA wrote:
I ran: mdadm --assemble --scan
Now I can open file manager and browse my system and I see "links" to the share names of my shares on the NAS box. But they won't open up. I must be pretty close if I can see my share names.
It says "This link cannot be used because its target "/c/Bluray" doesn't exist.
Your NAS uses lvm, but not mdadm.
Normally you'd enter something like
vgscan
vgchange -a y
mount /dev/c/c /c
or maybe use
mount -o ro /dev/c/c /c
at the end in order to mount the volume as read-only.
mdgm
Sep 18, 2022Virtuoso
All ARM and x86 ReadyNAS use mdadm for the RAID.
RAIDiator-x86 4.2.x and RAIDiator-arm 5.3.x use lvm2 for the data volume(s) and mdadm for the RAID.
So assembling the RAID using mdadm was necessary before using vgscan etc. as you suggest.
However it’s recommended to check disk health and the state of the RAID first rather than simply hoping it is fine and blindly assembling it.
- HadesCASep 20, 2022Aspirant
Actually right now I'm doing this all with test drives just to prove out the process that I "can" load it up and rescue the data this way before I try to recover from my real data disks. But I have little to no linux experience so I was really hoping someone here would have enough experience to let me know what commands to use and how to use them.
That said regarding your comment: "check disk health and the state of the RAID first" - how do I do that? Are those also LVM2/mdadm commands as well?
When I run the assemble I can see the additional disk volume and at its root are what look like shortcuts to the SHARE names I used when I created the shares on ReadyNAS. But the links are broken. It says:
"The link "Bluray" is broken"
This link cannot be used because its target "/c/Bluray/" doesn't exist.
The exact details are in the attached image.
I'm hoping someone can guide me to how to mount it correctly so "/c/Bluray/" works. Hopefully more specific than "use the mount command".
- StephenBSep 21, 2022Guru - Experienced User
As I replied earlier (as corrected by mdgm), you need to first assemble with mdadm.
After that you need to use lvm and mount the c volume
vgscan vgchange -a y mount /dev/c/c /c
You can check disk health for a disk with smartctl -x /dev/sda - using the real disk device instead of sda.
You should be able to see all the mdadm device names (raid groups) after you assemble with ls /dev/md*
The mdadm status for a NAS raid group can be checked with mdadm -D /dev/mdXXX (substituting the appropriate device number for XXX). RAID groups for NAS data volumes (c in your case) are three digits - for example, md127. If you've ever vertically expanded the array, there will be more than one RAID group for the volume.
HadesCA wrote:
"The link "Bluray" is broken"
This link cannot be used because its target "/c/Bluray/" doesn't exist.
The link is broken because the c volume isn't mounted.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!