LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-23-2008, 06:07 PM   #1
MargJT
LQ Newbie
 
Registered: Feb 2008
Location: Wellington, New Zealand
Posts: 5

Rep: Reputation: 0
Question Newby that needs to recover data from failed NAS drive (xfs formatted)


I have never knowingly used linux and am a bit lost so please forgive my lack of techinical expertise / lingo.

I have been operating a FNS-1000 NAS with a single hard drive installed on my home network - all PCs run Windows. Last week, I was suddenly unable to see the disk installed or access any of my files.
These are the actions I have taken so far:

- I attached it to a windows PC and the drive can be seen but obviously no files and I have declined requests to format it :-)

- I have installed the disk in question into a windows PC as a 2nd hard drive and booted up using both Ubanto and Knoppix. Both could see the drive but could not mount it (Can't read superblock error)

- I have used a System Rescue CD (http://www.sysresccd.org)and am just completely muddled as to how to use it - I found a graphical interface that had "GParted" and could see the disk and it's partitions with information about how much had been used on it but I really didn't know what to do with it after that.
There was an option to repair the file system which I tried but again it gave me an error - I had the option to save the details but had not idea where to save them too - pathetic I know !!

- I can recover data off the disk using "Recover my Files" software in Windows but it is just thousands and thousands and thousands of files without original names -eg "recovered file 01" through to 400000 !!

I am hoping there is someway I can use linux to see the file structure of my drive and copy files across - is anyone able to help me with instructions to do this or does the fact that the drive won't mount mean I am stuffed ?????

Where are my backups you say ???? I will tell you that story another day once my shame has worn off

Any help appreciated
Margaret
 
Old 02-23-2008, 07:46 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,578

Rep: Reputation: 186Reputation: 186
Quote:
Originally Posted by MargJT View Post
- I have installed the disk in question into a windows PC as a 2nd hard drive and booted up using both Ubanto and Knoppix. Both could see the drive but could not mount it (Can't read superblock error)

- I have used a System Rescue CD (http://www.sysresccd.org)and am just completely muddled as to how to use it - I found a graphical interface that had "GParted" and could see the disk and it's partitions with information about how much had been used on it but I really didn't know what to do with it after that.
There was an option to repair the file system which I tried but again it gave me an error - I had the option to save the details but had not idea where to save them too - pathetic I know !!

I am hoping there is someway I can use linux to see the file structure of my drive and copy files across - is anyone able to help me with instructions to do this or does the fact that the drive won't mount mean I am stuffed ?????
The first question to answer is what file system is the hard drive using? If the file system is one of those supported by SystemRescueCD then you can use SystemRescueCD to examine the HD and pull files off. The web page you linked to says:

Quote:

The kernel supports most of the important file systems (ext2/ext3, reiserfs, reiser4, xfs, jfs, vfat, ntfs, iso9660), as well as network filesystems (samba and nfs).
Does the documentation which came with the FNS-1000 NAS describe what file system it uses?

Quote:
Originally Posted by MargJT View Post

- I can recover data off the disk using "Recover my Files" software in Windows but it is just thousands and thousands and thousands of files without original names -eg "recovered file 01" through to 400000 !!
When you tried the Windows recovery did Windows tell you what file system type it thought was on the HD?

Quote:
Originally Posted by MargJT View Post

- I have installed the disk in question into a windows PC as a 2nd hard drive and booted up using both Ubanto and Knoppix.
Is this an IDE drive, a SCSI drive, SATA drive or what? It makes a difference as to what address the Linux kernel will address the drive by.

-------------------------
Steve Stites

Last edited by jailbait; 02-23-2008 at 07:56 PM.
 
Old 02-23-2008, 09:13 PM   #3
MargJT
LQ Newbie
 
Registered: Feb 2008
Location: Wellington, New Zealand
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks you for your reply and my apologies for not putting that - the drive is formatted wtih xfs and is also an IDE drive.
 
Old 02-24-2008, 12:11 AM   #4
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,578

Rep: Reputation: 186Reputation: 186
Quote:
Originally Posted by MargJT View Post

the drive is formatted wtih xfs and is also an IDE drive.
OK, you said the drive is the second IDE drive. If you have put the drive as the second drive on the first IDE cable then Linux calls it /dev/hdb1. If you put the drive as the master on the second cable then Linux calls it /dev/hdc1. If you put the drive as slave on the second cable then Linux calls it /dev/hdd1. I'll call the drive /dev/hdb1. If that is incorrect you can change the following instructions accordingly.

Sometimes rescue CDs automatically mount every drive they can find as read only. Just in case SystemRescueCD mounted /dev/hdb1 start out by umounting it. And yes Linux misspells unmount as umount. Boot SystemRescueCD and:

umount /dev/hdb1

Then create a directory with a unique name to use as a mount point:

mkdir /kiwi

Then mount the drive on /kiwi:

mount -t xfs /dev/hdb1 /kiwi

If that works OK then you are in business. Try listing what is on the drive with the ls command:

ls -l /kiwi

If you want to know how much data you have on the drive then use the du command:

du -s -h /kiwi

Suppose that ls -l /kiwi shows that you have directories a1, k4, and lmn on /kiwi. Then you can explore lmn with:

ls -l /kiwi/lmn
du -s -h /kiwi/lmn

And so on. See if you can get this far and then we will worry about how to move the files elsewhere.

----------------------
Steve Stites
 
Old 02-24-2008, 02:21 AM   #5
MargJT
LQ Newbie
 
Registered: Feb 2008
Location: Wellington, New Zealand
Posts: 5

Original Poster
Rep: Reputation: 0
thankyou jailbait for the awesome advise - I will try that tomorrow and get back
 
Old 02-24-2008, 03:06 AM   #6
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
There are xfs specific programs that may be able to help. However, I don't know if your disto has the needed package installed . The package is probably called "xfsprogs". If you have it the xfs_repair may be able to correct filesystem errors, such as a corrupt initial superblock.

If the NAS device allows usb inputs you could work with is that way. Also the first step should be checking any status info in the Web based management interface.


---

I just downloaded the manual and there was a list of package licenses for various packages the device uses. The "xfsprogs" package was listed. That made me wonder whether you could check the integrity of the filesystem through the web interface. Also, you might want to check whether the unit has ssh access. If it does, you could do things like run "dmesg" to look at kernel boot messages and see if there was a problem with the filesystem or the drive. You may even be able to run "xfs-info" and "xfs-repair".
 
Old 02-24-2008, 03:13 AM   #7
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
Post script:

I looked at the package list again. Openssh wasn't included but "telnet-server" was. You may be able to telnet into it, however if the telnet daemon isn't running, or if it is firewalled off, you wouldn't be able to use it. I didn't see any reference to telnet in the manual ( I didn't read the dialog pictures because they were overcompressed in the pdf ). It may be something you can activate with the web interface.
Maybe the same username/password is used for telnet as the web-interface.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Recover data on formatted hd; installed linux to 'wrong' disk rmark999 Linux - Newbie 2 07-26-2007 07:19 AM
Accidentally Formatted NTFS Partition... Looking to Recover Data Adam A Flynn Linux - Software 5 08-13-2006 12:59 PM
recover data from formatted hdd sebastiano Linux - General 5 03-27-2006 09:40 AM
How to recover data on a RAISERFS formatted harddisk compghod Linux - General 2 03-19-2005 07:43 AM
formatted my c:, linux boot data lost, how could i recover sas_tvr Linux - General 1 01-18-2005 07:56 AM


All times are GMT -5. The time now is 04:06 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration