LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-20-2012, 08:12 PM   #1
QuintusDecius
LQ Newbie
 
Registered: Jan 2012
Distribution: Debian
Posts: 2

Rep: Reputation: Disabled
Mounting a NAS Linear array with a desktop drive toaster


Hello guys & gals.
Before I get into my problem I would like to say my Linux experience is limited. I do have a Debian file server and a desktop to play with but both are pretty much left alone and the server was configured by a friend. Mostly I try to do something and have to ask friends or turn to Google. Now on to the meat of the matter:
I had a Hammer MyShare 2TB (2 1.0TB SATA Western Digital) NAS box that stopped showing the drive contents one day. rebooted the box, no luck.
I removed the drives and boxed them up to ship to a friend but never got to shipping them. They have been in the box for ~2 years now, its time to do it my self.
I dock the drives in the dock (Thermaltake BlackX) and hook it up to the usb on my Debian Desktop (GNOME 2.22.3). Installed mdadm and it saw the raid, so I had it assemble the raid (3 parts the OS?, a swap file and the data I want).
At this point I got 3 Raids (md0, md1, md2) md2 is the one I want to mount. After some research I have found out the hammer used the standard ext3 fs. when I try to mount it I get:
Code:
Dbag:/etc/mdadm# mount /dev/md2 /raid2 -t ext3 
mount: wrong fs type, bad option, bad superblock on /dev/md2, 
       missing codepage or helper program, or other error 
       In some cases useful info is found in syslog - try 
       dmesg | tail  or so 

Dbag:/etc/mdadm# dmesg | tail 
[  148.684102] kjournald starting.  Commit interval 5 seconds 
[  148.685130] EXT3 FS on md0, internal journal 
[  148.685170] EXT3-fs: recovery complete. 
[  148.686858] EXT3-fs: mounted filesystem with ordered data mode. 
[ 1630.207043] VFS: Can't find ext3 filesystem on dev md2. 
[ 1698.853777] SGI XFS with ACLs, security attributes, realtime, large block numbers, no debug enabled 
[ 1698.860573] SGI XFS Quota Management subsystem 
[ 1698.871015] XFS: bad magic number 
[ 1698.871020] XFS: SB validate failed 
[ 2693.069931] VFS: Can't find ext3 filesystem on dev md2.
I tried some other fs types with the same result. I can mount md0 with ext3 but it looks like its only OS files for the NAS. md1 is swap.

fdisk -l Results:
Code:
Dbag:/etc/mdadm# fdisk -l /dev/sda 

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 
255 heads, 63 sectors/track, 121601 cylinders 
Units = cylinders of 16065 * 512 = 8225280 bytes 
Disk identifier: 0xe5c08ef3 

   Device Boot      Start         End      Blocks   Id  System 
/dev/sda1               1          13      104422   fd  Linux raid autodetect 
/dev/sda2              14          26      104422+  fd  Linux raid autodetect 
/dev/sda3              27      121601   976551187+  fd  Linux raid autodetect 
Dbag:/etc/mdadm# file -s /dev/sda 
/dev/sda: x86 boot sector; partition 1: ID=0xfd, starthead 0, startsector 1, 208844 sectors; partition 2: ID=0xfd, starthead 0, startsector 208845, 208845 sectors; partition 3: ID=0xfd, starthead 0, startsector 417690, 1953102375 sectors 
Dbag:/etc/mdadm# fdisk -l /dev/sdb 

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes 
255 heads, 63 sectors/track, 121601 cylinders 
Units = cylinders of 16065 * 512 = 8225280 bytes 
Disk identifier: 0xf896469c 

   Device Boot      Start         End      Blocks   Id  System 
/dev/sdb1               1          13      104422   fd  Linux raid autodetect 
/dev/sdb2              14          26      104422+  fd  Linux raid autodetect 
/dev/sdb3              27      121601   976551187+  fd  Linux raid autodetect
mdadm --examine:
Code:
Dbag:/etc/mdadm# mdadm --examine /dev/sda3 
/dev/sda3: 
          Magic : a92b4efc 
        Version : 00.90.00 
           UUID : 9af19b0b:8fac2ff6:6ac7d9a8:9f71d876 
  Creation Time : Sun Apr 12 22:17:53 2009 
     Raid Level : linear 
   Raid Devices : 2 
  Total Devices : 2 
Preferred Minor : 2 

    Update Time : Wed Jan  4 22:29:07 2012 
          State : active 
 Active Devices : 2 
Working Devices : 2 
 Failed Devices : 0 
  Spare Devices : 0 
       Checksum : 76eba2c0 - correct 
         Events : 3 

       Rounding : 64K 

      Number   Major   Minor   RaidDevice State 
this     1       8        3        1      active sync   /dev/sda3 

   0     0       8       19        0      active sync   /dev/sdb3 
   1     1       8        3        1      active sync   /dev/sda3 

Dbag:/etc/mdadm# mdadm --examine /dev/sdb3 
/dev/sdb3: 
          Magic : a92b4efc 
        Version : 00.90.00 
           UUID : 9af19b0b:8fac2ff6:6ac7d9a8:9f71d876 
  Creation Time : Sun Apr 12 22:17:53 2009 
     Raid Level : linear 
   Raid Devices : 2 
  Total Devices : 2 
Preferred Minor : 2 

    Update Time : Wed Jan  4 22:29:07 2012 
          State : active 
 Active Devices : 2 
Working Devices : 2 
 Failed Devices : 0 
  Spare Devices : 0 
       Checksum : 76eba2ce - correct 
         Events : 3 

       Rounding : 64K 

      Number   Major   Minor   RaidDevice State 
this     0       8       19        0      active sync   /dev/sdb3 

   0     0       8       19        0      active sync   /dev/sdb3 
   1     1       8        3        1      active sync   /dev/sda3
and the blkid -L report
Code:
Dbag:/etc/mdadm# blkid -L /dev/sda3 
device     fs_type label    mount point    UUID 
------------------------------------------------------------------------------- 
/dev/sda3  mdraid           (in use)       0b9bf19a-f62f-ac8f-a8d9-c76a76d8719f 
Dbag:/etc/mdadm# blkid -L /dev/sdb3 
device     fs_type label    mount point    UUID 
------------------------------------------------------------------------------- 
/dev/sdb3  mdraid           (in use)       0b9bf19a-f62f-ac8f-a8d9-c76a76d8719f
Not quite sure where to go from here. Would like to get the data back, or at least get a file list to see what is missing (I know its been so long, but none of it is super important). Any other information you need , just let me know.
Thanks in advance for any and all help.
 
Old 01-22-2012, 05:21 AM   #2
troop
Member
 
Registered: Feb 2010
Distribution: gentoo, arch, fedora, freebsd
Posts: 379

Rep: Reputation: 97
http://hackingnasmadeeasy.blogspot.c...k-for-you.html
seems /dev/md2 is lvm
 
Old 01-22-2012, 06:54 AM   #3
QuintusDecius
LQ Newbie
 
Registered: Jan 2012
Distribution: Debian
Posts: 2

Original Poster
Rep: Reputation: Disabled
That looks like the information I need to get going. After I get home from work I'll give it a go.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting a remote NAS drive Seventh Linux - Newbie 1 09-26-2011 12:59 PM
Problems mounting Netgear NAS drive with CIFS, NFS. Cenobite Linux - Networking 1 07-07-2010 01:52 AM
query on mdadm for support of adding a disk to a running linear array anuragccsu Linux - Software 3 02-03-2010 02:50 AM
LXer: Linear Optimization with the GNU Linear Programming Kit LXer Syndicated Linux News 0 08-12-2006 04:21 AM
Mounting linear-raid partition daniel_lidstrom Linux - Software 2 12-29-2004 05:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:46 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration