LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-03-2008, 06:33 AM   #1
trivet.es
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Rep: Reputation: 0
MDADM problem: partition lost because of mkfs.ext3


hi

i have a RAID 1 system with 2 drives: /dev/sdb1 and /dev/sdc1. I use MDADM to create the raid 1 named /dev/md0. I have lot of data there. The problem is that i was re-installing system and from the live cd i executed a:
mkfs.ext3 /dev/sdb1
mkfs.ext3 /dev/sdc1

then installed Ubuntu again wihtout formating those drives because my system is installed in /dev/sda

the problem is that when i try to re-create the raid and mount it, it does not contain any file. i did this more time before and always worked BUT never used the mkfs.ext3 (that was a mistake). anyhow knows how to recover data or fix the problem?

thanks in advance
trivet
 
Old 11-03-2008, 03:43 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
You shouldn't do the mkfs.ext3 on the individual components (/dev/sdb and /dev/sdc) but rather on the RAID device itself, /dev/md0.

You likely lost your data because you overwrote superblock information.

POSSIBLY (haven't tried it) you might be able to recover your data by running "e2fsck -f /dev/md0". This assumes /dev/md0 was a filesystem before. TRY IT AT YOUR OWN RISK!!!

I doubt the issue here was whether you were using ext3 as opposed to any other filesystem but rather that you wrote on a component instead of on the raid device as a whole.
 
Old 11-05-2008, 07:51 AM   #3
trivet.es
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Original Poster
Rep: Reputation: 0
hi

i tried but no luck
no idea what else try

i can create the RAID and also to mount it but i only see the lost+found directory

what is excatly what i lost?? inode? superblock? what is mkfs.ext3 modifying in the partition when i execute mkfs.ext3 /dev/sdb1? is there a way recover old partition because i think problem here is that i overwrite RAID /dev/sdb1 partition with a new one when executing mkfs.ext3.

regards

Last edited by trivet.es; 11-05-2008 at 09:15 AM.
 
  


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
problem with mkfs.ext3 guillermo Linux - Server 3 07-17-2008 10:28 AM
I deleted lost+found folder on ext3 partition - any issues? slacky Linux - General 4 05-01-2008 10:09 AM
ext3 super block get modified after mkfs.ext3 amitpardesi Programming 1 04-25-2008 10:42 AM
HELP: QTparted says There was a problem with mkfs.ext3 dhruba.bandopadhyay Linux - General 2 06-14-2006 10:27 AM

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

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