TrueCrypt - Recovering a hidden partition Topic is solved

Using TestDisk to repair the filesystem
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Message
Author
teddke
Posts: 9
Joined: 23 Aug 2023, 08:39

TrueCrypt - Recovering a hidden partition

#1 Post by teddke »

Please forgive me for my poor knowledge on this topic, even though I've been trying to learn this for the last hard week. This forum is the last place for my desperation for data recovery. I've been using TrueCrypt for many years and everything was fine until a sudden power outage when my laptop was without a battery inside.

I had two partitions, a normal partition and a hidden partition, with keyfiles installed for each partition. Since I was working with a hidden partition that day, I had the following problem. Now this partition mounted successfully with the keyfile, but the contents of the partition became - raw format. I have not tried to format it as windows suggests.

I've read information here about the possibility of a rebuild :https://www.cgsecurity.org/wiki/Recover ... ypt_Volume

Code: Select all

Corrupted Hidden Volume file system
If too much data has been stored in the standard volume or if you have tried to defragment the standard volume without protecting the hidden volume (truecrypt --protect-hidden), the hidden volume file system may be partially overwritten. TestDisk Advanced menu can be used to rebuild the missing FAT or NTFS boot sector.
I'm trying to use the testdisk program to repair this corrupted partition, but it writes: "No partition available."

Dear Experts. As I understand it, this is the final and there is absolutely no possibility of recovery?

Image

Image

Image

Image


23.8.2023 13:49 CET recuperation: replaced Russian text in header by translation

recuperation
Posts: 2737
Joined: 04 Jan 2019, 09:48
Location: Hannover, Deutschland (Germany, Allemagne)

Re: TrueCrypt - Recovering a hidden partition

#2 Post by recuperation »

Could you please upload your pictures to this site using the attachments tab on the bottom of the page?
Thank you.

teddke
Posts: 9
Joined: 23 Aug 2023, 08:39

Re: TrueCrypt - Recovering a hidden partition

#3 Post by teddke »

Yeah, sorry, I didn't see that option.
Attachments
4.png
4.png (26.46 KiB) Viewed 162350 times
3.png
3.png (36.2 KiB) Viewed 162350 times
2.png
2.png (37.06 KiB) Viewed 162350 times

recuperation
Posts: 2737
Joined: 04 Jan 2019, 09:48
Location: Hannover, Deutschland (Germany, Allemagne)

Re: TrueCrypt - Recovering a hidden partition

#4 Post by recuperation »

1_small.png
1_small.png (82.51 KiB) Viewed 162332 times
2_small.png
2_small.png (43.88 KiB) Viewed 162332 times
3_small.png
3_small.png (36.66 KiB) Viewed 162332 times
4_small.png
4_small.png (29.37 KiB) Viewed 162332 times

teddke wrote: 23 Aug 2023, 09:16 I'm trying to use the testdisk program to repair this corrupted partition, but it writes: "No partition available."

Dear Experts. As I understand it, this is the final and there is absolutely no possibility of recovery?
That is wrong but there is no guarantee for a success in recovery either. Your assumption typically applies to certain cases with encryption, lost keys or having keys but facing destruction of certain disk areas without having full recovery information (that is more than just the key).

Congratulations for reading and quoting the wiki. You belong to the filthy few who dare to read! :mrgreen:

There is some key information slightly above your quote on that page in the Testdisk manual:
Corrupted Standard Volume file system

Sometimes both Standard Volume header and filesystem boot sector are partially overwritten. After recovering the volume header using a backup, the volume can be accessed but the filesystem is still corrupted.
Recovery under Windows

Run TestDisk, select the drive letter corresponding to the damaged volume, choose None for partition type, Advanced. TestDisk can repair the FAT/NTFS boot sector, ext2/ext3 superblock.
You are not examining a disk. Truecrypt provided you with an acess to a volume (or partition) presenting you "Drive 0". This is not a disk. It is a partition. It does not have a partition table. The partition table is at the beginning of your disk. The partition does not contain another partition table. You should have selected "None" for partition type.

Use the advanced function to copy the decrypted but still broken volume/partition to a file on a secure place before modifying your partition using Testdisk.

Having a decrypted file of your partition simplifies the use other recovery software like commercial stuff or Photorec, the recovery software of last resort.

teddke
Posts: 9
Joined: 23 Aug 2023, 08:39

Re: TrueCrypt - Recovering a hidden partition

#5 Post by teddke »

Thanks for the details on clarifying these points! As you said, I made a copy of the disk image.dd
Next, I choose "None", but the next step prompts me to choose a partition type. I'm not sure I remember exactly what the partition type is for it. Should I try FAT32 first, then try NTFS, then ext2/ext3 superblock ?
8.png
8.png (77.28 KiB) Viewed 162320 times

recuperation
Posts: 2737
Joined: 04 Jan 2019, 09:48
Location: Hannover, Deutschland (Germany, Allemagne)

Re: TrueCrypt - Recovering a hidden partition

#6 Post by recuperation »

What's the name of your operating system you used when you created a standard and a hidden partition?
Is there a file bigger then 4 GB contained in your hidden partition?

teddke
Posts: 9
Joined: 23 Aug 2023, 08:39

Re: TrueCrypt - Recovering a hidden partition

#7 Post by teddke »

At the time I created these partitions I was running Windows Server 2012. Now I looked at the main partition (not hidden) it is mounted as NTFS, so most likely the file system was similar. But then, when selecting "NTFS", it gives the following:
9.png
9.png (35.46 KiB) Viewed 162142 times
then I select "Rebuild BS" and then I get the following:
10.png
10.png (35.52 KiB) Viewed 162142 times
11.png
11.png (57.86 KiB) Viewed 162142 times

teddke
Posts: 9
Joined: 23 Aug 2023, 08:39

Re: TrueCrypt - Recovering a hidden partition

#8 Post by teddke »

I also tried FAT32
12.png
12.png (57.01 KiB) Viewed 162140 times
FAT16
13.png
13.png (35.25 KiB) Viewed 162140 times
exFAT
14.png
14.png (32.34 KiB) Viewed 162140 times
I'm not sure if I should try rebild in these cases..

recuperation
Posts: 2737
Joined: 04 Jan 2019, 09:48
Location: Hannover, Deutschland (Germany, Allemagne)

Re: TrueCrypt - Recovering a hidden partition

#9 Post by recuperation »

On which physical drive is the hidden partition located?

teddke
Posts: 9
Joined: 23 Aug 2023, 08:39

Re: TrueCrypt - Recovering a hidden partition

#10 Post by teddke »

I originally put the partition on a Samsung T5 portable ssd (#1), but when the crash happened, I copied everything to the internal ssd (#2) for backup. So now I do all my manipulations with the internal ssd (#2)
1.png
1.png (91.94 KiB) Viewed 162096 times

Locked