<div dir="ltr"><div><div><div><div><div>Hi Jonas,<br><br></div>first of all, thanks for adding this option!<br><br></div>I am still encountering some issue, though: prechecks are failing at boot time, because blkid does not recognize neither /dev/sda nor /dev/sda1 as truecrypt disks (those are tcrypt-system disks).<br>
I can "cheat" by adding "precheck=/bin/true", but even when passing those I can't unlock my disk.<br><br></div>I was trying to patch the cryptdisks.functions file to add support for "tcryptsystem", which IMHO/AFAIK is just<br>
<br>209,212d208<br>< tcryptsystem)<br>< USETCRYPT="yes"<br>< TCRYPTPARAMS="$TCRYPTPARAMS --tcrypt-system"<br>< ;;<br><br></div><div>when I came across cryptsetup's man page, which states that keyfiles in truecrypt are different than LUKS keyfiles, and therefore cannot be used in the same way.<br>
</div><div>However, even if I set "none" in crypttab's line, when I invoke cryptdisks_start I get a "Failed to open key file" even if I put the correct password in.<br><br>root@Chuck:/lib/cryptsetup# cryptdisks_start truecrypt<br>
[....] Starting crypto disk...[info] truecrypt (starting)...<br>Unlocking the disk /dev/sda (truecrypt)<br>Enter passphrase: Failed to open key file.<br>Unlocking the disk /dev/sda (truecrypt)<br>Enter passphrase: Failed to open key file.<br>
Unlocking the disk /dev/sda (truecrypt)<br>[FAIL passphrase: truecrypt (failed)...failed.<br><br><br></div><div>Could you please take a look when you have the time?<br></div><div>I should also point out - even if it's probably unrelated - that trying to unlock my disk manually even if the disk is not in use tells me that it is.<br>
</div><div>tcrypt-system disks like mine require you to use the whole disk as a device (i.e. /dev/sda, not a partition like /dev/sdaX) so probably that's why this happens:<br><br>root@Chuck:/home/claudio# cryptsetup open --type=tcrypt --tcrypt-system /dev/sda truecrypt<br>
Enter passphrase: <br>Cannot use device /dev/sda which is in use (already mapped or mounted).<br></div><br></div><div>I can (weirdly) make it work by using cryptsetup 1.7.0-git from a local folder<br>root@Chuck:/home/claudio# ./projects/cryptsetup/src/cryptsetup open --type=tcrypt --tcrypt-system /dev/sda truecrypt<br>
Enter passphrase: <br>root@Chuck:/home/claudio# ls /dev/mapper/truecrypt <br>/dev/mapper/truecrypt<br><br><br></div><div>I don't know if this will have any impact on treucrypt unlocking at boot time, though.<br><br></div>
<div>Thanks!<br><br>Claudio<br></div><div><br>P.S., FYI, I'm not sure, but I think that <br> tcrypthidden)<br> TCRYPTPARAMS="$TCRYPTPARAMS --tcrypt-hidden"<br> ;;<br>
<br></div>is missing USETCRYPT="yes"<br></div>