LinuxQuestions.org
Help answer threads with 0 replies.
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 05-08-2005, 03:28 PM   #31
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90

The way I'm using it in my script (the image is a PARTITION, not a HD), I shouldn't have to say -o, cause that works for virtual DISKS.

http://www.clarkson.edu/projects/itl...ddtutorial.txt

Don't you agree?
 
Old 05-10-2005, 09:04 AM   #32
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
Update:

Well, It's been a long time.

I have made some advances... though not the way I wanted. I wanted to let linux do the hard work for me (bring the raid to life itself), but haven't been able to do that. So what I DID do was make a program that rebuilt the binary content of the drive that the raid logically contains.

I made a program that takes the separate images and calculates the layout of the resulting drive. I make an Image and then I follow this tutorial to mount its content: http://www.clarkson.edu/projects/itl...ddtutorial.txt

It takes like two hours to generate the image (72 GB aprox). I made a run using Left Asymmetrich, but failed. I could ls the root directory and see some of the entries in there, but that was about it. So I'm running symmetrich right now. Let's see If I make it.

Last edited by eantoranz; 05-10-2005 at 09:06 AM.
 
Old 05-10-2005, 04:25 PM   #33
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Quote:
Originally posted by eantoranz
The way I'm using it in my script (the image is a PARTITION, not a HD), I shouldn't have to say -o, cause that works for virtual DISKS.

http://www.clarkson.edu/projects/itl...ddtutorial.txt

Don't you agree?
Yes, you do have to use -o when using image disks. As I say this again, the partition starts some where. If you are using 16 heads, 63 sectors per track, and 512 bytes per sector, the partition table information starts at 32256. If you are not using this geometry, you will have to calculate yourself. I suggest using 516096c or 516096 bytes per cylinder for the bs option for dd instead of 1M. This makes it easy to calculate the location where the patition table starts at.
 
Old 05-10-2005, 08:22 PM   #34
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
But Electro.... the problem is that in the images that make up a raid, there's no Partition Table. Am I wrong? The only parttition table in those images would have to be in the logical content (the virtual content) of the raid, right?
 
Old 05-10-2005, 08:26 PM   #35
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
Well.... thinking about it a little better, what you mean is that I should actually use a partition created inside the image.... not the image itself. Something like using /dev/hda1 instead of /dev/hda, right? I'll have to give it a try.
 
Old 05-11-2005, 09:16 AM   #36
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
It's been a rather long journey.... but I finally got it!

Just like a told you. It wasn't solved the way I expected to... but I certainly solved it.

Using the program I made (and told you about) I used ther four images to rebuild the logical content of the raid in a single file (I and some coworkers had to check each image to see how they were ordered in the array and the algorithm used by the contoller). Then I used that file as the image of a HD. Checked its Partition Table, and mounted accordingly (using losetup).

I want to thank all you, guys, that helped me with this task. I wouldn't have been able to get it accomplished without your help!

What I recovered: 60 GBs of data.
 
Old 08-09-2005, 11:20 AM   #37
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
Guys, I made a request to make an article based on this experience... and it has already been published by the Free Software Magazine. I hope you enjoy it! Thank you very much, guys!

http://www.freesoftwaremagazine.com/...recovery_raid/
 
  


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
Raid Problem Fedora Core 3, RAID LOST DISKS ALWAYS icatalan Linux - Hardware 1 09-17-2005 03:14 AM
Perc3Di SCSI RAID + Adaptec 2810SA RAID = Fatal Grub Error? LinuxOnTheEdge Linux - General 2 03-19-2005 02:35 PM
does linux support the sata raid and ide raid in k7n2 delta ilsr? spyghost Linux - Hardware 10 04-16-2004 05:27 AM
storage simulators in linux ramu_ak Linux - General 1 03-10-2004 12:41 PM
moving system from ide software raid to new box with scsi raid ftumsh Linux - General 0 10-28-2003 09:34 AM

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

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