Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 17th April 2012, 12:01 AM
Dan's Avatar
Dan Offline
Administrator
 
Join Date: Jun 2006
Location: Paris, TX
Posts: 22,309
linuxfirefox
Unhappy Yikes! Oopsy!

I don't really want to talk about how it happened ... but ...

the 411:

A backup drive with a MINT10 install being used for back-up file storage
An unguarded moment with gparted, and the wrong drive selected.
All partitions deleted

I haven't written anything to it since. (I figured out the screw-up when the wrong drive noise came out of the box.)

Question: (to which, I'm afraid I already have the answer.)

Is there any reasonable way to restore the partitions, and therefore the data?
__________________
Signature Links | New Posts | Who's on the forums (right now) |

© ® ™ № ¿
Reply With Quote
  #2  
Old 17th April 2012, 12:04 AM
glennzo's Avatar
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,924
linuxfirefox
Re: Yikes! Oopsy!

Somewhat of a senior moment Dan? Seriously, wish I could tell you what you want to hear, but ... I can barely turn these danged things on.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #3  
Old 17th April 2012, 12:09 AM
Dan's Avatar
Dan Offline
Administrator
 
Join Date: Jun 2006
Location: Paris, TX
Posts: 22,309
linuxfirefox
Re: Yikes! Oopsy!

Uhm ... Yeah. 500 gigs of photo archives just went into the great galactic bit-bucket. <....>
__________________
Signature Links | New Posts | Who's on the forums (right now) |

© ® ™ № ¿
Reply With Quote
  #4  
Old 17th April 2012, 12:21 AM
dd_wizard's Avatar
dd_wizard Offline
Registered User
 
Join Date: Sep 2009
Posts: 1,409
linuxfirefox
Re: Yikes! Oopsy!

I've never had to do it, but I think I've read that partitions can be restored. If not, the bits are still there, unless you did a low level format. Considering my lack of experience, I'd say google is your friend. I'm sure there's a good thread by Anduic? perhaps on recovering data from dying drives.

Good luck,
dd_wizard
Reply With Quote
  #5  
Old 17th April 2012, 12:22 AM
glennzo's Avatar
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,924
linuxfirefox
Re: Yikes! Oopsy!

That really s*cks. Any of it on old forgotten and decomissioned hard disks?
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #6  
Old 17th April 2012, 12:23 AM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,092
linuxfirefox
Re: Yikes! Oopsy!

Do you happen to know what the partition table entries were?

Mostly you just need to know the size of each partition, then recreate the list (mind, in the same order).

Once the partitions are re-established, everything should just suddenly reappear.

The only things lost should be boot blocks, and if you had LVM volumes on there (might be tricky).

I've done that - once with a "blank" new disk from the vendor (it had no partition table). I then, out of curiosity, ran a fsck on it before creating a filesystem... and poof - there was a valid filesystem. The only file in that filesystem turned out to be a slightly modified source to the date command.
Reply With Quote
  #7  
Old 17th April 2012, 12:23 AM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 4,976
linuxchrome
Re: Yikes! Oopsy!

https://www.linux.com/news/enterpris...our-hard-drive

Untested by me. I did once try test disk after a drive containing part of an LVM died, and the files were there, just almost impossible to find.
Reply With Quote
  #8  
Old 17th April 2012, 12:27 AM
Evil_Bert's Avatar
Evil_Bert Offline
Retired Again - Administrator
 
Join Date: Nov 2007
Location: Reality
Posts: 3,034
linuxchrome
Re: Yikes! Oopsy!

I feel your pain.

Quote:
Originally Posted by Dan View Post
Is there any reasonable way to restore the partitions, and therefore the data?
Reasonable, no. But maybe possible.

I've not heard of any other way, but I've recovered some data (at work) before via a forensic service - data was extracted byte by byte, but what you really want to know is whether the partition/file tables can be recovered. I'd contact a professional forensic service and ask what they can do.

I use alternating backup disks and keep them locked away for this very reason ... not that that's much consolation now.
__________________
.
Marching to the beat of his own conundrum.
Reply With Quote
  #9  
Old 17th April 2012, 12:35 AM
dd_wizard's Avatar
dd_wizard Offline
Registered User
 
Join Date: Sep 2009
Posts: 1,409
linuxfirefox
Re: Yikes! Oopsy!

Here's the thread I was thinking of, Dan. I almost spelled the author's name right, it's Adunaic.

dd_wizard
Reply With Quote
  #10  
Old 17th April 2012, 12:41 AM
Fenrin Offline
Registered User
 
Join Date: Apr 2010
Location: Earth
Posts: 857
linuxopera
Re: Yikes! Oopsy!

Autopsy Forensic/sleuthkit is a tool which can maybe help. I installed it once, but it seemed to be pretty complicated to use.

If you want to restore data, it's (probably) important that you don't create a new filesystem on the disk.

Quote:
Since sleuthkit is a filesystem parser, if you overwrite your filesystem with a new filesystem, it can not really help you.[...]
from the sleuthkit mailinglist: http://sourceforge.net/mailarchive/f...leuthkit-users

Ah just looked if it also supports ext4 as filesystem and found this user report: http://www.linuxjournal.com/content/...forensics-ext4
so unfortunately this tool will be probably not of much use. It supports only: NTFS, FAT, UFS1/2, Ext2/3
But you can read the above report and comments on it nevertheless. Maybe something helps.

open source forensic tools:
http://www2.opensourceforensics.org/tools/volume-system
http://www.digital-forensic.org

Last edited by Fenrin; 17th April 2012 at 12:50 AM.
Reply With Quote
  #11  
Old 17th April 2012, 01:00 AM
tox
Guest
 
Posts: n/a
windows_7chrome
Re: Yikes! Oopsy!

times like this you need leigh around . goodluck Dan
Reply With Quote
  #12  
Old 17th April 2012, 01:13 AM
AndrewSerk Offline
Registered User
 
Join Date: Oct 2010
Posts: 876
linuxfirefox
Re: Yikes! Oopsy!

What about testdisk/photorecord?
Reply With Quote
  #13  
Old 17th April 2012, 01:13 AM
sonoran's Avatar
sonoran Offline
Registered User
 
Join Date: May 2005
Location: Sonoran Desert
Posts: 2,099
linuxfirefox
Re: Yikes! Oopsy!

What about gparted's Device/Attempt Data Rescue menu entry?
Looking at the gparted docs, they recommend using testdisk to recover partition tables:
http://gparted.sourceforge.net/displ...artition-table
Reply With Quote
  #14  
Old 17th April 2012, 01:31 AM
zuchov Offline
Registered User
 
Join Date: Feb 2010
Posts: 16
linuxopera
Re: Yikes! Oopsy!

Bad, really bad man.. whatever You do: Do NOT create a new file system if You are going for the data at the disk. Sorry to hear about it man. I myself ALWAYS disconnect every other drives than root+home during system install. Good Luck man.
Reply With Quote
  #15  
Old 17th April 2012, 01:39 AM
Gareth Jones Offline
Official Gnome 3 Sales Rep. (and Adminstrator)
 
Join Date: Jul 2011
Location: Leamington Spa, UK
Age: 30
Posts: 1,689
linuxfirefox
Re: Yikes! Oopsy!

Was it only the partition tables that were changed? If so, searching for ext4 super-blocks should find the start blocks of the old partitions if you don't remember the details. I'm not sure how to do that off-hand, but I guess there should be magic numbers and header structures that can be searched for, or maybe the software others have mentioned can do it.

If you've modified the partition contents (e.g. formatting them), ext4 creates back-up super-blocks at regular intervals, so unless your new partitions match the old ones exactly, there should be old ones still present. After finding them, it's presumably a case of using fsck (with the -b option) to retrieve whatever hasn't been overwritten. It'd be a tedious process but I expect the bulk of your data (and file-system structure) should be intact as long as it wasn't physically overwritten.

---------- Post added at 01:39 AM ---------- Previous post was at 01:39 AM ----------

Oh, and insert the usual stuff about working with images rather than the original drive if that's feasible. I assume some of the software mentioned by others does this stuff for you, the main point is that most of the data should be recoverable with the right software, or professional data-recovery services.

Last edited by Gareth Jones; 17th April 2012 at 01:56 AM. Reason: Made post a bit more cautious, I'm speaking theoretically rather than from practical experience I'm afraid.
Reply With Quote
Reply

Tags
oopsy, yikes

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Oopsy! Sorry 'bout that! Dan Wibble 9 25th February 2009 06:20 AM
Yikes! Lost NetworkManager riffin-rich Servers & Networking 3 7th July 2007 11:00 PM
oopsy mrwkdwizard Using Fedora 13 12th July 2006 09:00 PM
Fedora Installation - yikes Sickly Installation and Live Media 4 8th August 2004 02:52 AM


Current GMT-time: 07:12 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat