LinuxQuestions.org
Visit Jeremy's Blog.
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 08-01-2013, 05:19 PM   #1
mmoryto
LQ Newbie
 
Registered: Aug 2013
Posts: 1

Rep: Reputation: Disabled
raid 0 recovery after disk failure


Hi all,

In my windows PC I used raid 0 built from 2x 500 GB WD hdds. It was created in SATA bios as mainboard has ICH10R controller. Unfortunately one hdd failed.

I decided to recover it using my 3TB network drive.

I run fedora with liveCD and mounted network drive (sshfs) to make a copy:

# mkdir /mnt/wdlive
# sshfs user at network_drive:/shares/ /mnt/wdlive
# dd if=/dev/sda of=/mnt/wdlive/hdd1.img bs=64M

I replace electronics from working hdd to the corrupted one and repeated these steps.

I suppose that first disk has the MBR.
RAID 0 had stripe size of 128KB.

Now I have my network drive mounted and it contains files hdd1.img and hdd2.img.

Does anyone know how to rebuild raid 0 using for example mdadm?
 
Old 08-01-2013, 05:29 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,225

Rep: Reputation: Disabled
Since you imaged the entire drive, the start of the .img files will contain a partition table. What does fdisk -l hdd1.img say?

Edit: mdadm is capable of parsing Intel software RAID metadata including, supposedly, the latest versions where the array is a "container" with one or more logical drives that may use different RAID levels. I've never tried using mdadm on image files, though.

You could always write the image files back to a set of functioning drives and recover the data using the original motherboard/PC.

Last edited by Ser Olmy; 08-01-2013 at 05:40 PM.
 
  


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
RAID5 disk failure during recovery gives weird result dbrazeau Linux - General 2 08-13-2010 12:16 PM
Fedora 11 RAID 1, Disk failure - How to boot from the single working disk NothingSpecial Linux - Hardware 2 10-18-2009 07:20 PM
[SOLVED] Software RAID (mdadm) - RAID 0 returns incorrect status for disk failure/disk removed Marjonel Montejo Linux - General 4 10-04-2009 07:15 PM
RAID 6 failure - 3 disks failed but 2 are ok, recovery possible? auroraglacialis Linux - Server 4 11-10-2007 12:25 PM
Hard disk recovery method after controller failure somedude Other *NIX 2 08-17-2006 09:05 AM


All times are GMT -5. The time now is 07:55 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration