LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 01-14-2006, 10:47 PM   #1
Lazy Foo'
Member
 
Registered: Dec 2005
Location: LA
Distribution: SuSE 9.3 Pro
Posts: 32

Rep: Reputation: 15
So I accentally formatted my external harddrive


When I installed linux I wasn't watching what I was doing and my FAT32 external USB drive got formatted.

This there any utility to recover the files?
 
Old 01-14-2006, 10:49 PM   #2
tauhshi
Member
 
Registered: Dec 2005
Distribution: Ubuntu "edgy", looking for something else
Posts: 77

Rep: Reputation: 15
I dont believe so, formatting a drive completly eraces everything on the disk, sorry...
 
Old 01-15-2006, 03:44 AM   #3
JunctaJuvant
Member
 
Registered: May 2003
Location: Wageningen, the Netherlands
Distribution: OS X & Linux Mint
Posts: 488

Rep: Reputation: 31
I once formatted my external ntfs drive to reiserfs, and was nonetheless able to recover every single file with minimal dataloss (some dataloss or corruption is possible, unfortunately). I've never tried it with fat32, but you could try looking up some data recovery programs in google and trying them. Good luck with it.
 
Old 01-15-2006, 05:02 AM   #4
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
First off, haha it serves you right! Pay attention to what you're doing next time!

Second, your average format won't erase any real data, it just erases the part that knows where all the files are on disk so it looks empty. It will be possible to recover your files, if the partition was using the entire device then just create a new partition with fdisk that uses all the available space on the drive and try to mount that. If that dosn't work then you're up shits creek but don't worry about that unless you need to.
 
Old 01-15-2006, 06:25 AM   #5
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 364

Rep: Reputation: 33
SpinRite might be able to recover the data, not sure ...
 
Old 01-15-2006, 11:24 AM   #6
tauhshi
Member
 
Registered: Dec 2005
Distribution: Ubuntu "edgy", looking for something else
Posts: 77

Rep: Reputation: 15
Strange, I never knew that you could recover lost data...
 
Old 01-15-2006, 12:53 PM   #7
JunctaJuvant
Member
 
Registered: May 2003
Location: Wageningen, the Netherlands
Distribution: OS X & Linux Mint
Posts: 488

Rep: Reputation: 31
If you mean after formatting: yes, because the data is not lost. It's just a bit harder to access.
If you mean as an idea : lossless compression (zip, flac, etc) leads to dataloss that is 100% recoverable. ;-)
 
Old 01-15-2006, 05:12 PM   #8
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Quote:
Originally Posted by tauhshi
Strange, I never knew that you could recover lost data...
Technically you can't. The catch is most times when you "format" a drive you aren't deleting any of the data, you're just deleting the partition table which outlines the partition boundaries on the disk etc. Once you've done that, all your data is still there, just you can't see it and therefore it's recoverable.

If you do something like this to format the drive:
Code:
cat /dev/urandom > /dev/hda
then the data isn't coming back, that stuff is gone forever.
 
Old 01-16-2006, 08:55 AM   #9
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
Quote:
Originally Posted by tauhshi
Strange, I never knew that you could recover lost data...
For a given value of "lost"
 
Old 01-16-2006, 12:24 PM   #10
mrGee
Member
 
Registered: Dec 2001
Location: Netherlands
Distribution: redhat suse mandrake freebsd
Posts: 344

Rep: Reputation: 30
Hi

You can easily get the data back, considering it is not overwritten
check gpart and testdisk, i've had several times succes with them.

http://www.tldp.org/HOWTO/Partition-...07.html#AEN110

http://www.cgsecurity.org/index.html?testdisk.html

use some live distro like knoppix and if you really want your data to be
gone for ever; use shred to do it for you

Regards
 
  


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
External Harddrive cerealdaemon Linux - General 4 07-12-2005 08:33 PM
External drive will not backup when formatted to VFAT32 linuxmarine Linux - Hardware 1 03-25-2005 04:50 AM
mount external firewire drive udf formatted tgreen Linux - Hardware 3 02-03-2005 10:02 AM
Is it possible to mount an external mac formatted firewire drive? BrianK Linux - General 1 06-03-2004 07:08 PM
external harddrive scorpion777 Slackware 4 05-05-2004 02:22 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

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