LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-21-2008, 05:21 PM   #1
Peter_Karlsen
LQ Newbie
 
Registered: Nov 2008
Posts: 9

Rep: Reputation: 0
recover data from raid 0 drives....


Hi

Until a week ago I had a Maxtor sharedstorage with two 500GB discs in raid 0. The controller board with the embedded linux (I guess) is fried, but the two disk are still working fine.
The problem is the data located on the discs. I really like it back.

I have bought a SATA controller card and put the two discs in a pc running fedora core 9.
I know the two discs from the sharedstorage were running a software raid 0.

Is it possible to mount the two raid 0 partitions on the discs and recover my data?

How would I do it? I have some experience with linux but none what so ever with raid systems.

Can someone help me?

Best regards
Peter Karlsen
 
Old 11-22-2008, 02:06 AM   #2
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
There are data carvers that look for headers and footers of files regardless of the format structure as they don't read the file system, they just go from sector to sector looking for the file extensions you specify in the configuration of the applicable software.
These are photorec which is part of the testdisk package, and foremost. Both of which are usually included in forensics live CDs like the Helix Live CD. You may also install them in another running Linux installation and run them against those drives installed as slave or from an external hard drive enclosure.
Just make sure you have lots of space on a drive other than the one you are recovering from as they can pull out tons of data.
To use photorec, just run the command: photorec from within the directory you want the utility to store the recovered data and go through settings before it starts carving.
Photorec can also be paused to give you time to go through the recovered data and delete what you don't want to make room for more data recovery.
 
Old 11-22-2008, 02:48 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
The only way I can think of is put them back in RAID0, if that doesn't work then there is no hope, sorry. I don't even think data carvers will help much in this case because the data is completely split between the drives.
 
Old 11-22-2008, 06:01 AM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Agree, I doubt photorec/testdisk or foremost can handle the striping of RAID 0; correct me if I'm wrong, please.

Since you think the fried controller is/was running an embedded Linux, your best bet is (IMO) to mount the 2 drives as a Linux s/w RAID 0 array. If you're lucky, your only problem will be learning Linux s/w RAID.

There are some lessons here:
  • It's even more important to back up a RAID 0 array than any other data -- there are n+1 ways to have a catastrophe: n drives, plus the controller itself.
  • H/W RAID, even "real" h/w RAID, is at the mercy of its controller. At the very least, users of such need a back-up/recovery plan in place before it dies or wears out.
  • Know what RAID format a RAID controller is using before putting it into service. Even RAID 5 is useless while its controller is down. This is one of the big reasons why Linux s/w RAID advocates love Linux s/w RAID. -- The "h/w controller" is is just another IDE/SATA controller; if it fails, replace it & keep on trucking.
 
Old 11-22-2008, 06:58 AM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Indeed, if you value your data do not put it on RAID0/AID0 (it is not Redundant). Think of it as doubling the chance of you loosing all your data without the possibility of recovery (except maybe by very expensive option done by experts). In your case there may be hope in that hopefully the data has not been corrupted and you can still put the drives back in RAID0 and get your data off.
 
1 members found this post helpful.
Old 11-22-2008, 09:01 AM   #6
Peter_Karlsen
LQ Newbie
 
Registered: Nov 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks a lot for the fast and helpful replies.

I'm completely new to setting up raid.
Can you point me in a direction of where to start?
Is there e good how-to somewhere?

While installing fedora core 9 I had the option to mount the partitions as raid0. At /mnt/md0 I think. The partitions are called /dev/sdd6 and /dev/sde6.

Beside the /mnt/md0 partition it said that it would be formatted so I removed the raid0 setting again in fear of loosing my data completely.

Could I have mounted the partitions in raid0 and kept my data? I can mount all kinds of other old linux partitions during installation while keeping the contents of the partition.
 
Old 11-22-2008, 09:51 AM   #7
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by Peter_Karlsen View Post
While installing fedora core 9 I had the option to mount the partitions as raid0. At /mnt/md0 I think. The partitions are called /dev/sdd6 and /dev/sde6.

Beside the /mnt/md0 partition it said that it would be formatted so I removed the raid0 setting again in fear of loosing my data completely.

Could I have mounted the partitions in raid0 and kept my data? I can mount all kinds of other old linux partitions during installation while keeping the contents of the partition.
yes, you could have, now you didn't format them did you ? if so, the data is gone forever...

for a how-to, here's a good one:
http://tldp.org/HOWTO/Software-RAID-HOWTO.html
 
1 members found this post helpful.
Old 12-02-2008, 10:25 AM   #8
Peter_Karlsen
LQ Newbie
 
Registered: Nov 2008
Posts: 9

Original Poster
Rep: Reputation: 0
I found a solution to my problem.

mdadm --create /mnt/md0 --level=0 --raid-devices=2 /dev/sdd6 /dev/sde6

Output said that the partitions were linear raid.
I aborted and changed the command to:

mdadm --create /mnt/md0 --level=linear --raid-devices=2 /dev/sdd6 /dev/sde6
mount /mnt/md0 /data/

Taadaaaaa.. And my data was available to me again.

A big thanks to H_TeXMeX_H for pointing me in the right direction.

What have I learned from all this?
RAID0 and linear RAID sucks.
Maxtor Sharedstorage cannot be recommended to anyone. Twice the embedded controller has broken. Sure Maxtor will send a new one, but your data will be lost unless you break the warranty seal.

Once again thanks a lot for the advice and support.
 
Old 12-02-2008, 01:12 PM   #9
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Glad to be of help. Really RAID0 doesn't suck performance-wise where it does offer some benefits, but if you value your data do NOT use RAID0 it should be called AID0 because it is not redundant and thus does not make your data more stable but instead more volatile.
 
1 members found this post helpful.
  


Reply



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
Last Try: RAID 6 with 7 drives lost 2 drives without hardware errors. Recovery? auroraglacialis Linux - Server 1 12-12-2007 07:35 AM
howto recover LVM on RAID-6 data? Tahir Saleh Linux - Newbie 0 11-19-2007 06:19 AM
Restore RAID 0 and Recover data troskin Linux - Newbie 2 10-12-2007 03:50 PM
Software to acess and recover data on Fat32 data NeoSpawn Linux - Software 2 09-04-2005 11:37 AM
Software RAID to recover data from HW RAID ocschwar Linux - Hardware 5 02-25-2005 10:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:01 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