DavidXanatos / DiskCryptor

A fork of the DiskCryptor full disk encryption tool
https://www.diskcryptor.org/
440 stars 100 forks source link

Can't decrypt and boot system #46

Open AKmatiAK opened 2 years ago

AKmatiAK commented 2 years ago

I encrypted system drive and after reboot I'm prompted to enter password. I enter it and get 5x "Can't read partition starting at [partitions offset here]" and last message is "password incorrect" but it's correct, at the moment I decrypt drive from new windows installation, so it's problem with bootloader. My drive is 2TB 4Kn, it might matter. Hardware-accelerated AES encryption. GPT/UEFI (tried enabling CSM, still not works) and boot from first password matching partition selected in DC bootloader settings, also I tried boot from MBR boot partition, doesn't work too. System is Windows 10 Ameliorated x64

ghost commented 2 years ago

Maybe I am lucky, but I never got any troubles: Samsung NVMe, Windows 7 x64 GPT / UEFI, ASUS B550

Works like a charm...

DavidXanatos commented 2 years ago

hmm... what Mainboard do you have? I assume its some sort of uefi incompatibility with the boot loader

AKmatiAK commented 2 years ago

Biostar B560GTQ

AKmatiAK commented 2 years ago

IMG_20211121_220209 IMG_20211121_191904 Here are some photos that might be useful.

DavidXanatos commented 2 years ago

hmm... ok it seams this is indeed some issue with the uefi and partition reading, be it as it may, this issue does not happen on any of my systems so I cant really debug it. If its super important to you, you could get a KVM over IP adapter with the ability to mount USB devices and set up remote access for me. than I could debug the issue. or you just try an other mainboard.

I know non of these solutions is satisfying but as saif without having access to a machine with the problem i cant work on that problem

AKmatiAK commented 2 years ago

is there any log file? maybe I attach it too

AKmatiAK commented 2 years ago

Is bootloader taken from VeraCrypt? Also, I found error message, it's at /DcsPkg/Library/DiskCryptorLib/DcsDiskCryptor.c:353 and part of code that might point to reason starts at line 346. I'm not good at programming so I understand what it does only partially. I think the case might be bootloader incompatibility with 4Kn sector size.