LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 12-15-2012, 12:25 PM   #1
Cyrolancer
Member
 
Registered: Jan 2012
Distribution: Debian
Posts: 52

Rep: Reputation: Disabled
mounting a partition in raid 0 array


Hello,

I am having a real problem. It suddenly occured and I couldn't do anything to recover.

The problem is, I have a Sony laptop with 60 GB 1.8 inch RAID 0 configured disks. I think one of the disks was failed and somehow Windows restarted. Now, Windows only boots in the recovery partition, not the main one.

The thing is, I have managed to retrieve backups of the disks using ddrescue. I have also managed to mount them into my main Ubuntu machine as loop0 and loop1. I searched the internet about what I can do to rebuild raid array using these loopback devices. I found mdadm.

What can I do further?

Edit: I have found the solution, the commands I have written were incorrect. I have read the man pages deeply again and again and then found the correct parameters.

Last edited by Cyrolancer; 12-15-2012 at 02:20 PM. Reason: Incorrect commands, deleted them because they are not good examples and one should not take them as reference.
 
Old 12-15-2012, 04:57 PM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Well done for solving the problem - could you post the exact (correct) commands you used? This way future users with the same problem can benefit from your solution.

Thanks,
 
Old 12-15-2012, 05:24 PM   #3
Cyrolancer
Member
 
Registered: Jan 2012
Distribution: Debian
Posts: 52

Original Poster
Rep: Reputation: Disabled
First, I used the exact commands in the related Ubuntu Wiki: https://help.ubuntu.com/community/DataRecovery . I installed gddrescue and followed the instructions.

After that, I have used the commands in a post of Anandtech forums: http://forums.anandtech.com/showpost...02&postcount=7

However, mdadm command didn't work in my case. I got the "superblock problem". Then, I used

Code:
mdadm --build --level=0 --raid-devices=2 --chunk=64 /dev/md0 /dev/loop0 /dev/loop1
I have RAID0 (level=0) and 2 hard drives -therefore 2 hdd images- (raid-devices=2). You need to specify the chunk size (chunk=64), or you cannot mount the partitions under RAID0. I have used the RAID BIOS to determine chunk size (it was written on the screen when I entered the RAID utility, using CTRL+I).

/dev/md0 is the block device defines the RAID array. You must use an unused md device to build the RAID array.
/dev/loop0 is the image of the first hdd
/dev/loop1 is the image of the second hdd

In your case, you may destroy your image or your RAID array completely but I was desperate and I needed to do something to rescue only 1 file, then acted bravely. I also took backups of the image files to some other storage media, because taking the images from the broken disks lasted 5 hours.

Also, you can use dmraid but I couldn't manage to define the loopback devices as an input to dmraid. Automatic find didn't work in my case.

It is a bit complex and as I said you may destroy your data. Please do not take this explanation as the ultimate solution, try the solutions on Ubuntu Wiki and Anandtech forums at first, then look at the man pages of mdadm and try the above solution as your final move.

The info about the mdadm package I used:

Code:
# aptitude show mdadm
Package: mdadm                           
State: installed
Automatically installed: no
Version: 3.2.5-1ubuntu3
Note: I have Googled a lot, tried a lot and found that the info described in the links are much more better than the others. I didn't want to credit everything to me and I gave the links. If this is against the rules, I am sorry.

Last edited by Cyrolancer; 12-17-2012 at 01:09 AM. Reason: some typo mistakes
 
1 members found this post helpful.
Old 12-16-2012, 03:04 AM   #4
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Quote:
Originally Posted by Cyrolancer View Post
I have Googled a lot, tried a lot and found that the info described in the links are much more better than the others. I didn't want to credit everything to me and I gave the links. If this is against the rules, I am sorry.
Ahaha! The rules on this forum are generally rather sensible, you can find them here. I'm not sure exactly what rule you thought you might be breaking... It's true people can get a little annoyed if the only content in your post is a link to LMGTFTY or similar, but posting the links where you got the information from is definitely a good idea: that way people can read more on the topic if they're interested, and see where you got the information from.

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] mounting a raid array at startup djspits Linux - Newbie 2 10-31-2009 04:33 AM
need help with mounting raid array zogthegreat Linux - Hardware 9 06-24-2009 07:13 PM
NTFS Partition Problems on HW Raid 5 Array Absolute Zero Linux - Hardware 5 05-17-2009 10:10 PM
Help!! Mounting a raid array Cannedsoup Linux - Hardware 1 07-07-2003 06:26 PM
mkfs and mounting large (1.4TB) hardware raid array. Frustin Linux - General 1 05-20-2002 06:04 AM

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

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