LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-18-2009, 04:24 AM   #1
johnxcitizen
LQ Newbie
 
Registered: Aug 2009
Posts: 13

Rep: Reputation: 0
Recovering data from WDMyBook 1 of 2 spanned HDDs using SystemRescueCD


I have a dead Western Digital MyBook World Edition (1TB) that contained two 500GB WD HDDs, arranged as a "large, spanned single volume" (from manual). I think that this is a different configuration than RAID0.

As far as I can tell, the MyBook was a linux NAS device running software RAID.

The set was only 10-20% full, and -- to make a long story short -- I formatted the second disk NTFS for use in another system. But before I did, I had a look at the drives and it looked a lot like all the data was on the first disk and none on the second.

I have plugged those two disks into two of my motherboard's SATA ports.

There are several partitions on the first disk (ext2, swap, etc.) which are small (and contain the MyBook linux OS) and the 4th one is large, and it's the one I want.

I've tried mounting it as ext2(?) and could see the root directory, but when I cd'd into a directory I made containing many of my files, I got I/O errors (but the only thing I have done is reformat the second disk, there never was any indication that the disks were failing). I think that RAID0 splits the data across the two disks and the failure of one disk would be fatal, but at least the root directory of the filesystem is ok, and before I formatted, it appeared as if all the data was on the first disk.

I think mdadm is the tool I need to use to mount this and get the data off of it, but I don't know how to do it. I'm running a very recent download of SystemRescueCD but mdadm complains that it is missing a config file. If I need to create one, is any part of the SystemRescueCD filesystem writable, and what is the format that mdadm expects?

I still have the second disk, but it is now formatted NTFS and has important data on it.

Can anyone tell me how to make mdraid (or any other tool, if someone has a better idea) mount that partition (without needing the other disk) so I can get the data off of it?

Thankyou in advance.
 
Old 08-19-2009, 02:45 AM   #2
johnxcitizen
LQ Newbie
 
Registered: Aug 2009
Posts: 13

Original Poster
Rep: Reputation: 0
More information

I have some more information:



This is the mdadm conf that was on the first partition of the first disk (md1) in /etc/mdadm.conf:
DEVICE partitions
ARRAY /dev/md1 level=raid1 num-devices=2 UUID=100744ac:8daed8d8:e33c8903:2a1dd289
ARRAY /dev/md2 level=raid1 num-devices=2 UUID=3ba0da27:8c1dbe15:d50ede47:9da0719e
ARRAY /dev/md3 level=raid1 num-devices=2 UUID=6033e7ea:335bedb8:a0355b94:c2da9ea1
ARRAY /dev/md4 level=linear num-devices=2 UUID=5111b311:ed5b8b90:fe2517fd:e0600c7b







I figured out enough to run:
mdadm -A /dev/md4 -v -v -s -R

and I got a log, with this at the end:
mdadm: /dev/sdb4 is identified as a member of /dev/md4, slot 0.
mdadm: no uptodate device for slot 1 of /dev/md4
mdadm: added /dev/sdb4 to /dev/md4 as 0
mdadm: failed to RUN_ARRAY /dev/md4: Invalid argument
mdadm: Not enough devices to start the array.



running again will produce:
mdadm: device /dev/md4 already active - cannot assemble it



trying to mount: mount /dev/md4 /mnt/data
mount: you must specify the filesystem type

trying to mount as ext2: mount /dev/md4 /mnt/data -t ext2
mount: wrong fs type, bad option, bad superblock on /dev/md4

file -s /dev/md4:
empty (or something like that)



so how do I convince mdadm to mount a linear array of 2 disks when the second disk is missing/has been overwritten?

Thankyou.
 
Old 08-19-2009, 03:42 AM   #3
chuckie
LQ Newbie
 
Registered: Jul 2009
Location: Blm. IL. USA
Distribution: slackware
Posts: 13

Rep: Reputation: 0
This command might provide some info about fs type

blkid

I googled and found a dmesg from this type of device and it seemed to be using ext3 and raid 1. I have never used raid so I can not comment further.
 
Old 08-21-2009, 09:51 PM   #4
johnxcitizen
LQ Newbie
 
Registered: Aug 2009
Posts: 13

Original Poster
Rep: Reputation: 0
I ran blkid and the output looked as expected, and copied to a file, but it seems I copied the blkid executable to my flashkey and not its output, so I can't post the output right now, will do so as soon as I can.

However, I did get a copy of /proc/mdstat:


Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md4 : inactive sdb4[0](S)
484327552 blocks

md3 : active raid1 sdb3[0]
987904 blocks [2/1] [U_]

md2 : active raid1 sdb2[0]
104320 blocks [2/1] [U_]

md1 : active raid1 sdb1[0]
2939776 blocks [2/1] [U_]

unused devices: <none>




Note that the [linear] personality is not loaded. So when I'm next on the PC with the disk in question, I will try:

modprobe linear

and see how far I get.


I've also tried LinuxRecovery, explore2fs, and RLinux with no success (it shows a lot of tiny files) -- but loading the linear personality for md seems to be the best bet.


Thankyou. I'll let you and posterity know how this goes.
 
Old 08-22-2009, 09:20 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Moved to Software per OP request
 
Old 08-28-2009, 02:48 AM   #6
johnxcitizen
LQ Newbie
 
Registered: Aug 2009
Posts: 13

Original Poster
Rep: Reputation: 0
Results of blkid

Here are the results of /sbin/blkid:

/dev/sda1: UUID="E474D66A74D63F4C" TYPE="ntfs"
/dev/sda2: UUID="54CCF410CCF3E9DE" LABEL="Data" TYPE="ntfs"
/dev/sdb1: UUID="ac440710-d8d8-ae8d-0389-3ce389d21d2a" TYPE="mdraid"
/dev/sdb2: UUID="27daa03b-15be-1d8c-47de-0ed59e71a09d" TYPE="mdraid"
/dev/sdb3: UUID="eae73360-b8ed-5b33-945b-35a0a19edac2" TYPE="mdraid"
/dev/sdb4: UUID="11b31151-908b-5bed-fd17-25fe7b0c60e0" TYPE="mdraid"
/dev/sdc1: LABEL="LASER" UUID="C894-9940" TYPE="vfat"
/dev/md1: UUID="98c6827d-fcb9-48ec-9d1b-2fe80f357df1" TYPE="ext3"
/dev/md2: TYPE="swap"
/dev/md3: UUID="0e5863b6-c25c-4ee4-9ad0-ae7993b20bf7" SEC_TYPE="ext2" TYPE="ext3"
 
  


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
recovering data yusufs Linux - Newbie 4 10-06-2008 11:58 PM
data recovering ??? Dmitry Bandurin Linux - General 2 07-25-2006 06:03 PM
recovering data pirozzi Linux - General 5 11-30-2004 02:08 AM
recovering data... marsques Linux - General 18 09-01-2004 02:36 PM
Recovering data CatSC Linux - Newbie 3 12-31-2003 11:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:15 AM.

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