dolbyman wrote:with new firmwares and lvm probably futile
Mount encrypted disk on other Linux maschine
-
- New here
- Posts: 3
- Joined: Mon Oct 01, 2018 4:27 pm
Re: Mount encrypted disk on other Linux maschine
Re: Mount encrypted disk on other Linux maschine
QNAP encrypt the password and use the encrypted value as the password for cryptsetup.mdt390 wrote:Hello everyone, which command did you use:
cryptsetup luksOpen /dev/sdc3 encdis
or
cryptsetup luksOpen /dev/sdc3 encdisk --key-file=/tmp/mykey.key
?
In my case I have no key, just the password.
Thank you!
First thing is to convert the password to a key file you can use with vanilla crypto setup. Run
Code: Select all
echo -n $(openssl passwd -1 -salt 'YCCaQNAP') > qnap.key
In case anyone's wondering how to do it without the password or key file, but with the QNAP still functioning, there is a way.
First, on the QNAP, check which drive has six partitions, that's probably the one the QNAP is using. In my case, that's sdb6. Run
Code: Select all
strings /dev/sdb6 | grep ENCK
Code: Select all
ENCK=$1$YCCaQNAP$encryptedpassword
Code: Select all
echo -n '$1$YCCaQNAP$encryptedpassword' > qnap.key
These instructions are based on http://www.baseline-security.de/downloa ... 9-3200.txt.