LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-02-2011, 12:53 AM   #1
leosgb
Member
 
Registered: Nov 2004
Location: Brazil
Distribution: Gentoo
Posts: 363

Rep: Reputation: 31
Recovering data from MD array (using Knoppix)


Hi all,

I have been searching the forums w/o success for some help on this old problem I have. I had a major OS crash (Gentoo) maybe 2 months ago and completely neglected my system. Now I want to recover all my mirror raid data back so that I can restore the system.

My plan is this:
1) copy all data so that I can have a backup
2) rebuild system with some HW upgrades

First step is to get the data out. I managed to boot with Knoppix and I have full access to my ext2 partitions. My mistake was to create the mirror partitions and these are not working now.

I copied my /etc/mdadm.conf into /etc/mdadm/mdadm.conf in Knoppix and then tried to start the services. This is what I got:

knoppix@Microknoppix:~$ /etc/init.d/mdadm start
knoppix@Microknoppix:~$ /etc/init.d/mdadm-raid start
Assembling MD arrays...failed (failed to load MD subsystem).

I can see the partitions:
knoppix@Microknoppix:~$ fdisk -l

Disk /dev/sda: 300.0 GB, 300069052416 bytes
255 heads, 63 sectors/track, 36481 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0004a60f

Device Boot Start End Blocks Id System
/dev/sda1 1 12450 100004593+ 83 Linux
/dev/sda2 * 12451 12459 72292+ 83 Linux
/dev/sda3 17432 29881 100004625 83 Linux
/dev/sda4 12460 12584 1004062+ 82 Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/sdb: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdb1 1 31125 250011531 fd Linux raid autodetect
/dev/sdb2 31126 41086 80011732+ fd Linux raid autodetect
/dev/sdb3 41087 48641 60685537+ fd Linux raid autodetect
knoppix@Microknoppix:~$ sudo mount /dev/sdb1 /mnt/sdb/
mount: unknown filesystem type 'mdraid'

These are my current ideas:

1) Can I change the filesystem type from mdraid to ext2 or ext3 safely?

2) How can I mount these raid filesystems so that I can copy my data?

Thanks for any help!
 
Old 06-02-2011, 01:15 AM   #2
leosgb
Member
 
Registered: Nov 2004
Location: Brazil
Distribution: Gentoo
Posts: 363

Original Poster
Rep: Reputation: 31
I got it. Now I am copying it by hand. This is how I mounted the partitions:

knoppix@Microknoppix:~$ sudo mount -o ro /dev/sdb2 /mnt/sdb2 -t ext3
knoppix@Microknoppix:~$ sudo mount -o ro /dev/sdb3 /mnt/sdb3 -t ext3
 
1 members found this post helpful.
Old 06-02-2011, 01:16 AM   #3
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
As simple as that...tnx for this solution!

Luck with the rebuild!

Thor
 
  


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
Any ideas for recovering my software RAID5 array? garydale Linux - Server 2 11-01-2010 11:56 PM
Recovering a Raid 5 array, mdadm mess-up somebox Linux - Server 4 10-17-2007 06:57 PM
Recovering Data Using Foremost and Knoppix Nuvious Linux - Security 1 05-17-2006 04:36 PM
recovering from a dead raid 5 array aaronj Linux - Software 2 06-03-2005 04:13 AM
Recovering RAID-5 array after OS crash IMNOboist Linux - Hardware 0 12-14-2004 12:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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