LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-21-2006, 07:42 AM   #1
idiot1000
LQ Newbie
 
Registered: May 2006
Posts: 1

Rep: Reputation: 0
Data recovery after refomatting


Hello

Right, I'll take all the flames I deserve for this, as I've done the unimaginable! All right, I'm a coy boy, I know it now.

Instead of reformatting /dev/sda I reformatted /dev/sdb, and lost all the data that means anything to me.

In short, /dev/sdb3 was a 200gb reiserfs partition, and using YASTs partioning tool, I created and formatted /dev/sdb3 as a 50 GB fat partition, and the rest of it (sdb4) as reiserfs.

I'm holding onto a thin hope that I may be able to get the data back? Either on my own if possible, but if I can't, I've heard it can be done commercially..

I am being way too optimistic?
 
Old 05-21-2006, 08:09 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
there are all sorts of guides about for this e.g http://www.unixwiz.net/techtips/recovering-ext2.html .essentially you need to recreate the partition table as you had it, so that the partition boundaries match up. once you have the correct boundaries you can try mounting the partition directly, and in an ideal world this could work. few worlds are ideal though, other tricks to try would involve using a tool like parted to scan your disk for spare superblocks for your partition and mount it using different blcoks if the main one is corrupted. Also i believe that parted is also good for finding probable partition boundaries too, but as nothign is set in stone you need to understand a fair bit about what you are looking at, as parted can only guess and look for typical patterns etc.
 
  


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
Data Recovery dlynch912 Linux - General 16 05-03-2006 09:59 PM
Data Recovery scbops Linux - Security 4 04-24-2006 05:51 AM
data recovery yjiang Linux - General 7 12-30-2004 07:58 PM
data recovery bardinjw General 1 02-12-2004 01:59 AM
data-recovery lobo Linux - General 3 01-24-2002 08:17 AM

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

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