Solved

Recover quick format Truecrypt partition

Posted on 2014-12-04
6
1,315 Views
Last Modified: 2014-12-08
Well,  I have accidently, not that I think anyone does it on purpose, have quick formatted my data drive which resides on a NTFS Truecrypt partition.

Now, I have'nt dismounted or did anything yet.  I need expert advise first.  There are a lot of tools available but what do I do First and which program do I use?
0
Comment
Question by:Karmile
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 24

Accepted Solution

by:
Eirman earned 250 total points
ID: 40480886
One of the reasons I switched from truecrypt to bestcrypt (years before truecrypt support ceased)
was that it gave a warning if you were about format an apparently unformatted disk.

I've done a bit of reading on your dilemma and I have concluded that tools like Recuva & GetDataBack are no good.
You need an unformating tool. As it was a quick format, all the data should still be there.

The only tool that I know of is ....
http://www.easeus.com/data-recovery/format-recovery-software/free-undo-disk-quick-format.htm

If you don't get any advise to the contrary over the next few days, it's well worth a try.

I'll have a look for more tools

EDIT: You should run testdisk anyway. It's non-destructive when inspecting the disk.
It's only at the final point where you have to select [Y] to recover a partition that it actually changes anything
http://www.cgsecurity.org/wiki/TestDisk

The more I read, the more hopeless your situation seems .... the next section is just a possibility
==================================================================
I came across this but EE does not allow me to give you a link

So first of all, you need an original "truecrypt header" so that you can decrypt the data correctly.
A quick format will wipe out the original but if you are lucky it will leave the backup, at the end of the file, alone.
Truecrypt will let you mount the container using the backup header in the mount options while entering in the password, but it will still not mount the container correctly for any recovery program to do its work.

1. Select device (or file).
2. Volume tools...
3. Restore volume header...
4a. Restore using internal backup... (if you were lucky enough that the format left it there, otherwise...)
4b. Restore using external backup file... (if you were lucky enough to have saved a back up of the header by now)

If both options give a "password wrong" error then all the data is lost because it is forever encrypted.

5. Mount the the container (like normal).
6a. Use a recovery tool like R-Studio to scan the mounted drive for existing filesystems.
6b. Use TestDisk to rebuild the filesystem.
7. Recover files to another disk

At this point, files will be recovered that were not hit by the format. In the case of a quick format, nearly all data should be left untouched.

8. Rebuild the truecrypt drive using the recovered files.

I used 4a and 6a and I was able to recover 100% of my data after my USB drive fully encrypted was quick formatted.
==================================================================
For future reference -- From truecrypt faq:

When I plug in my encrypted USB flash drive, Windows asks me if I want to format it.
Is there a way to prevent that?

Yes, but you will need to remove the drive letter assigned to the device. For information on how to do so,
see the question ....
'I encrypted a non-system partition, but its original drive letter is still visible in the 'My Computer' list.'

to free the drive letter follow these steps:
Right-click the 'Computer' (or 'My Computer') icon on your desktop or in the Start Menu and select Manage. The 'Computer Management' window should appear.

=} From the list on the left, select 'Disk Management' (within the Storage sub-tree).

=} Right-click the encrypted partition/device and select Change Drive Letter and Paths.

=} Click Remove.

=} If Windows prompts you to confirm the action, click Yes.
0
 
LVL 20

Expert Comment

by:marsilies
ID: 40481222
Recuva specifically mentions being able to recover data from Quick Formatted drives:
https://www.piriform.com/recuva/features/recovery-from-damaged-or-formatted-disks
Similarly, when you format a drive (especially if you use the Quick Format option), Windows erases the hidden index but does not overwrite the existing files until you start saving new data to it. Recuva can still scan the drive's contents to find your files.


TestDisk is pretty non-destructive, since it only touches the partition data; it doesn't do any formatting of its own.

PhotoRec may be another option, since that ignores filesystems completely and just looks for files on the disk.



When running a recovery program like Recuva and PhotoRec, be sure to write the recovered files to somewhere other than the drive you're recovering from. In this case, that means recovering to somewhere other than the Truecrypt volume. Once you've recovered all the files, you can move them back onto the Truecrypt volume.
0
 
LVL 24

Expert Comment

by:Eirman
ID: 40481367
Unfortunately, Recuva, PhotoRec GetDataBack etc cannot possibly work as all data is encrypted.
The only thing that just might work is a partition repair tool.

Even more unfortunately, a quick format is quite destructive with a truecrypt volume as it deletes the header information which truecrypt need.
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 20

Assisted Solution

by:marsilies
marsilies earned 250 total points
ID: 40481407
It depends on what was actually formatted. If the actual physical partition or drive is quick formatted, it may not be possible to recover the encrypted volume that was on it.

However, due to the OP's mention of not yet dismounting, it sounds more like the OP quick formatted the mounted volume. In that case, the underlying truecrypt partition is still fine, and it's already mounted and decrypted. It's just that the data inside the partition has been formatted. As long as the truecrypt partition is able to be decrypted and mounted, the data inside should be able to be recovered using standard data recovery tools.
0
 
LVL 55

Expert Comment

by:McKnife
ID: 40481686
Test disk could recover the partition, it does not matter if encrypted or not, he just wants the partition table entries, not the data. But, first thing's first: if the data is really important, there will be a backup...or...? If there's no backup but the data is important, you might prefer to work more securely on a clone of that drive. Clonezilla is a tool to do sector based 1:1 clones. So you could test the clone without fearing to do more harm than good.
0
 

Author Comment

by:Karmile
ID: 40486318
Well, after downloading about 10 different recovery software I found that Active@ Partition Recovery worked the best.  It was able to see the encrypted virtual disk and recovered the MFT with all the files.  Testdisk was not able to retrieve the MFT and a lot of the other software could not see the virtual encrypted disk.  The only other product worth mentioning is R-undelete.  I went with Active@ since it was cheaper than R-undelete and it also ran faster.

The key factor was that I never dismounted the Truecrypt drive, therefore the encryption header was never lost.  

I think if you dismount an encrypted Truecrypt virtual disk, then its all over.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question