Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I was attempting to create a bootable usb thumbdrive from the ubuntu install cd using UNetBootin. Unfortunately, I accidental wrote the live cd to my 500gb usb external drive (which was almost completely filled with important files). I noticed I had made this mistake almost as soon as it happened. I quickly unplugged the usb hard drive. Ubuntu is no longer able to mount the harddrive. I believe the disk was originally formated ntfs or ext3, but I forget.

I want to recover my data.

  1. How can I determine the file-system type(ntfs or ext3) without mounting the disk?
  2. Has anyone done this and recovered all or some of there data? How?
  3. What /suggestions does server-fault have?
  4. Can I recover in-place? That is do I need to find a >500GB harddrive onto which I can recover too?
  5. Is there anyway to just recover the file system.
  6. Can I see what files are intact?
  7. Any favourite/best tools for recovery?

Thanks, and feel free to tell me that keeping backups is important (A backup NAS is in the main).

Note:

  • I'm looking for free solutions
  • I have read this earlier question 'how-do-you-repair-a-damaged-or-corrupt-partition', but I'm unsure if it applies completely to my case. As in my case I likely overwrote a fairly small amount of contiguous data at the beginning of the disk.
  • As I was following verbatim the ubuntu directions on building a bootable usb drive, I'm assuming people have done exactly what I've done in the past, and I am interested in hearing how they solved it. Furthermore it is a case people are likely to run into in the future, so a set of clear directions on how to solve it would be extremely helpful for the community.
share|improve this question

4 Answers 4

up vote 4 down vote accepted

you can use this tool http://www.cgsecurity.org/wiki/TestDisk

share|improve this answer
    
I once used TestDisk to recover from accidental partition deletion on my USB drive. Not sure if it can help with accidental formatting but it may be worth a look. At the time I used it the documentation was slightly cryptic in places, but not too terrible. –  ThatGraemeGuy Jun 18 '09 at 19:31

When you recover a drive, it is always better to make a copy in an image file (with dd for example). I understand that in your case, 500GB can be difficult. But it avoids that you irreversibly damage your data using any tool you find on the internet, particularly if you have never used it and if you don't know if you can trust it.

Then, have a look at PhotoRec to recover files removed accidentally:

http://www.cgsecurity.org/wiki/PhotoRec

It is distributed under the GPL and supports NTFS as well as EXT2/EXT3 filesystems.

A last remark: "Keeping backups is important" :)

share|improve this answer
    
Looks like some great software! I've never heard of this before, thanks. –  Kamil Kisiel Jun 18 '09 at 22:50

Can I recover in-place? That is do I need to find a >500GB harddrive onto which I can recover too?

The first thing you should do is make a complete image copy of your drive, and work on that. Don't run the risk that you do something stupid to the good 499GB of your drive.

share|improve this answer

Zero Assumption Recovery (not free)

http://www.z-a-recovery.com/

share|improve this answer
    
Thanks, I updated the question to specify free solutions, but I appreciate the help. –  Ethan Heilman Jun 18 '09 at 18:59

protected by Michael Hampton Jul 19 at 8:29

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.