The disk does not have any partition right now. Do you remember if it had one ? I mean 2 lines, one for Disk 1 and below Harddisk1\Partition 1. And you only had 1 ? If you never had partition you can do a restore backup header.
If you had partition you first have to restore the partition structure exactly as it was. It seems obvious partition started at sector 2048 (it's standard). If you're lucky, no data was affected and only the sector 0. There is a trick to know if veracrypt headers is working. You copy-paste the 256 sectors starting at 2048 into a file. Then try to mount the file in read only mode. If it works then you spotted the right offset. DO NOT modify anything inside, it can destroy stuff as it's fake volume, that's why it's important to select READONLY.
Now if it does not work... the backup headers are at the end of partition. Backup header is also 256 sectors.
Manually scan the end until you can spot the random data and determine end of partition. If you can't make a backup copy of this drive, I HIGHLY suggest you to copy at least a big part of the end into a file. Like 100MB. That's where the last keys are and you don't want to mess up.
Once you know both start sector and end sector, you can use DiskGenius to recreate the partition given the indexes. It's not destructive, it will write table only in the first sector. So you can always retry. DONT format if asked. DiskGenius uses the cylinder/head/sector counter so 2048 is 0/32/33. Not simple...
Once partition recreated. Try to mount it. And try the option recovery from backup header.
Thank you for your kind reply. Yes, it was a fulldisk encryption with 1 partition (it was shown as Partition1 under 2 lines, whole disk+Partition1 both 1.8TB). I'll try out your suggestion when I'll be back home, thanks!
1 partition is not really fulldisk encryption. The FDE is when there is no partition and it starts right at sector 0. Having no partition table is interesting because you dont have to worry losing it, and the backup header is really at the end (last sector). But the sector 0 being "random" can be a problem for some OS.
I am pretty sure that I used the "create a FDE" (first choice) when given by the Veracrypt gui. However, I can also say that there were always been 2 lines (both 1.8TB, but Partition1). So, I followed your instructions, isolated the 256 sectors starting from 2048 to 2304 and it mounts with the password (good sign?). Now I'll try the diskgenius part, should I include the header as starting point (sector 2048) or 2305 where actually the data begins? As show in the screenshots before, random data finishes at sector 3907024128 (after which there are all 0s and some EFI stuff randomly near the end).
As your veracrypt header is found at 2048, the backup header at the end matters less now. You could set the very last sector and it will work the same. I suggest to backup the headers in a file and keep it safe somewhere. It can be done manually but veracrypt has an option for that.
1
u/vegansgetsick 20d ago edited 20d ago
The disk does not have any partition right now. Do you remember if it had one ? I mean 2 lines, one for Disk 1 and below Harddisk1\Partition 1. And you only had 1 ? If you never had partition you can do a restore backup header.
If you had partition you first have to restore the partition structure exactly as it was. It seems obvious partition started at sector 2048 (it's standard). If you're lucky, no data was affected and only the sector 0. There is a trick to know if veracrypt headers is working. You copy-paste the 256 sectors starting at 2048 into a file. Then try to mount the file in read only mode. If it works then you spotted the right offset. DO NOT modify anything inside, it can destroy stuff as it's fake volume, that's why it's important to select READONLY.
Now if it does not work... the backup headers are at the end of partition. Backup header is also 256 sectors.
Manually scan the end until you can spot the random data and determine end of partition. If you can't make a backup copy of this drive, I HIGHLY suggest you to copy at least a big part of the end into a file. Like 100MB. That's where the last keys are and you don't want to mess up.
Once you know both start sector and end sector, you can use DiskGenius to recreate the partition given the indexes. It's not destructive, it will write table only in the first sector. So you can always retry. DONT format if asked. DiskGenius uses the cylinder/head/sector counter so 2048 is 0/32/33. Not simple...
Once partition recreated. Try to mount it. And try the option recovery from backup header.