Solved

Extract data from QNAP drive

Posted on 2012-04-05
8
949 Views
Last Modified: 2012-04-26
I have a QNAP TS-419P with two drives in RAID 1 configuration.  The QNAP became unresponsive and was restarted and I ended up getting network error messages along with a host of other configuration messages.  Basically the QNAP configuration is hosed up, but I believe the data on the drives should still be there intact.  

Does anyone know how I can connect one of these drives to another computer as a slave to pull the data off it?  I believe the QNAP is a Linux based system so I will most likely have to boot to linux on the other computer, but not sure how to go about it all.  Any help here would be greatly appreciated!
0
Comment
Question by:CMHTech
  • 4
  • 4
8 Comments
 
LVL 88

Expert Comment

by:rindi
ID: 37815501
I think your best option would be to get a replacement NAS of the same type, put your disks in there and then see if you can access the data.

Otherwise try booting your PC using the PartedMagic LiveCD with the QNAP drive attached. Depending on the file-system that was used you may be able to mount the partitions of the drive and access it to copy the files off (the Partition Editor tool on the CD could show you the file-system type). There are also tools included on the CD, Testdisk and Photorec, with those you can scan drives and extract data:

http://partedmagic.com
0
 

Author Comment

by:CMHTech
ID: 37815944
Great tool!  I hadn't ever used that before, looks useful.  

I have it booted and can see both of the hard drives.  The local one is mounted, but the one from the QNAP won't.  That drive shows up as 4 different mountable partitions /media/sdb1, /media/sdb2, 3 and 4 etc.  A couple are 517mb, one is 486mb, and the other is 930gb and thats obviously the one I would like to get into.  The first 517mb partition is the only one that will mount (when I mount that one it also mounts the cd-rom).  Any ideas on how to get into the 930 gb partition?  I believe the file system is ext3 which the parted magic should be able to handle.  

Thanks for the tip so far!
0
 
LVL 88

Accepted Solution

by:
rindi earned 500 total points
ID: 37816199
If the mounting tool can't mount it automatically it is possible that HD is bad or the file-system corrupt. Also, the smaller partitions probably hold the OS and maybe the swap partition.

What I would start off with is to test the HD's using the diagnostic utility of the manufacturer. Some of them can repair some errors if they aren't too many, and it should also give you an idea whether the disk is OK or not.

You'll find those tools on another useful CD, the UBCD:

http://ultimatebootcd.com

Once you've done and you can try the PartedMagic LiveCD again, open the Partition Editor, then right click on the partition you want to mount. You should have a "check" option (or something similar). with that you run the Linux version of chkdsk which will try to fix file-system errors. Once that is done you could try mounting the partition (or you could also run the check on the other partitions, if the errors are fixed chances are that when you return the disks to the NAS it'll start normally...).
0
 

Author Comment

by:CMHTech
ID: 37824484
I don't think that the original problem was the hard drives themselves, but the configuration of the QNAP storage unit.  It was giving me DNS configuration errors (even though it had worked with that setup up until that point, and was configured exactly like another one I have onsite here), and it wouldn't allow me to make any changes or backup to external drive.  I put the drives into my other QNAP to see if I could access the data off them, but instead of seeing the folders I had on the drives I saw the folders of the other QNAP which of course weren't accessible, like it had kept the configuration of the original drives.  

I still haven't been able to mount the drives when booting up to Parted Magic, but it is showing the drives as a Linux RAID configuration.  If I boot into Windows 7 on the computer with the drive hooked up as a slave it shows the drive as 930GB capacity with 930GB (100%) free.  Is it possible it just doesn't recognize the ext3 file system of Linux and thats why it shows 100% free? The drives should have 1GB of data on them (medical records no less, so very important).  

Any more help is appriciated!
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 88

Expert Comment

by:rindi
ID: 37824932
As far as I know the OS of the QNas is stored on the HD's (I don't really have QNas experience, but with synology and some Thecus NAS, and there the OS is stored on the disks. That means that if you change the disks to another NAS you'll take the OS with you, and if it is a disk problem you'll also take the problem with you.

I think you need to run the repairs I mentioned earlier to get access. If the file-systems have errors on them you won't be able to mount them.

The other option is to use testdisk and if you can't recover the data via that, also try photorec (both of these tools are included with PartedMagic).

Maybe, if the HD test went without errors, you could also try a QNas firmware upgrade, but that I'd try only if nothing else helps.

If there really is no good backup of the NAS, and the data is worth the recovery cost, then consult a recovery agency in your area.
0
 

Author Comment

by:CMHTech
ID: 37832905
Well, so far I have found one application in that mix that gets me to the files.  On the UBCD I can go into HDD Partition Management / Partition Saving / Explore a Partition and then to the disk that's my 1TB, open the 3rd partition and I can see the folder structure on the disk.  In there I can see the folder that contains all the files I want.  On the bottom of that screen is a menu of options and the 6th one is copy.  It won't let me copy the whole folder at once, I am not sure why or how to get that done.  But I can expand the folder and copy individual files to a USB drive successfully.  

When it copies the files it gives a warning that 'Source driver uses long names when destination driver does not use them. This can lead to shortened names without their corresponsding long name...' and has a Yes or No button.  Clicking yes will copy the file with a short name ending with ~, which I would have to go through and rename back to the original.  This whole process is possible, and is much better than where I was before with the prospect of losing the files, but a way to copy the whole folder would be much better.  Any ideas on this?  There are maybe 1000 files.
0
 
LVL 88

Expert Comment

by:rindi
ID: 37833666
That tool probably uses some sort of DOS which can't access long file-names. But I don't really know it so I can't tell you more about it.
0
 

Author Closing Comment

by:CMHTech
ID: 37896788
The partition tool on UBCD was the key to getting the data. I was able to copy entire folders at a time and have all my data back now (whew). The PartedMagic cd was also a good suggestion and will come in handy in the future too. Thanks for your help!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we have discussed the manual scenarios to recover data from Windows 10 through some backup and recovery tools which are offered by it.
In 2017, ransomware will become so virulent and widespread that if you aren’t a victim yourself, you will know someone who is.
In this Micro Tutorial viewers will learn how to restore single file or folder from Bare Metal backup image of their system. Tutorial shows how to restore files and folders from system backup. Often it is not needed to restore entire system when onl…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now