LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-18-2005, 04:43 AM   #1
d_t_baker
Member
 
Registered: Oct 2003
Location: AU
Distribution: Ubuntu
Posts: 57

Rep: Reputation: 15
Thumbs up Recover software raid partitions knoppix


Hello all,

I have searched high and low and everywehre in between for a very simple howto that can tell me the steps involved in mounting a software raid array via recovery cd (be it knoppix or anything else with md support).

I think i am almost there:

Here are the partition tables:

root@0[knoppix]# fdisk -l /dev/hde
Disk /dev/hde: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hde1 * 1 6 48163+ fd Linux raid autodetect
/dev/hde2 7 5105 40957717+ fd Linux raid autodetect
/dev/hde3 5106 7017 15358140 fd Linux raid autodetect
/dev/hde4 7018 9729 21784140 f Win95 Ext'd (LBA)
/dev/hde5 7018 7336 2562336 fd Linux raid autodetect
/dev/hde6 7337 7540 1638598+ fd Linux raid autodetect
/dev/hde7 7541 7667 1020096 82 Linux swap
/dev/hde8 7668 9729 16562983+ fd Linux raid autodetect
root@0[knoppix]#

root@0[knoppix]# fdisk -l /dev/hdg
Disk /dev/hdg: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdg1 * 1 6 48163+ fd Linux raid autodetect
/dev/hdg2 7 5105 40957717+ fd Linux raid autodetect
/dev/hdg3 5106 7017 15358140 fd Linux raid autodetect
/dev/hdg4 7018 9729 21784140 f Win95 Ext'd (LBA)
/dev/hdg5 7018 7336 2562336 fd Linux raid autodetect
/dev/hdg6 7337 7540 1638598+ fd Linux raid autodetect
/dev/hdg7 7541 7667 1020096 82 Linux swap
/dev/hdg8 7668 9729 16562983+ fd Linux raid autodetect
root@0[knoppix]#

I want to create
/dev/md0 to be the raid level 1 between /dev/hde1 and /dev/hdg1
/dev/md1 to be the raid level 1 between /dev/hde2 and /dev/hdg2
etc.....

I found a tute that explained how to recover from one disk failing in a multi-disk array. This was kinda helpful but assumed the user was running the system off the other disks in the array.

Another tute told me to use the mdadm tool.

i tried creating devices:

root@0[knoppix]# mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/hd[eg]1
mdadm: /dev/hde1 is too small: 0K
mdadm: /dev/hdg1 is too small: 0K
mdadm: create aborted
root@0[knoppix]#

I tried assembling:

root@0[knoppix]# mdadm --assemble /dev/md0 /dev/hd[eg]1
mdadm: no RAID superblock on /dev/hde1
mdadm: /dev/hde1 has no superblock - assembly aborted
root@0[knoppix]#

I really need to get to the data on these drives. Does anybody know any way (besides purchasing recovery software) that I can mount these partitions?

I cannot boot from them due to a corrupt library that was mirrord across both drives, long story =)

Any help at all would be greatly appreciated.

Are there some knoppix specific boot parameters I can use to tell it abou the raid array?

Thankyou

David.
 
Old 07-09-2005, 07:19 AM   #2
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
Please put your CLI output in "code" blocks, especially from fdisk -- this preserves the columnar farmatting. The way you have it now is too hard to read, at least to my eyes.

Just a suggestion that may make it easier for someone to help you.
 
  


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
Software RAID to recover data from HW RAID ocschwar Linux - Hardware 5 02-25-2005 10:05 PM
recover VFAT partitions masand Linux - Software 1 01-07-2005 11:09 AM
Software RAID - how to recover fclifton Linux - Software 4 08-12-2004 12:26 AM
Create software RAID partitions first, then create filesystem partitions on top of th stefanlasiewski Linux - Software 1 04-28-2004 04:12 PM
Creating multiple partitions in a software RAID heiseltc Linux - Hardware 1 05-31-2003 08:52 PM

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

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