Mount encrypted disk on other Linux maschine

Questions about SNMP, Power, System, Logs, disk, & RAID.
mdt390
New here
Posts: 3
Joined: Mon Oct 01, 2018 4:27 pm

Re: Mount encrypted disk on other Linux maschine

Post by mdt390 »

dolbyman wrote:with new firmwares and lvm probably futile
:(
aqueenan

Re: Mount encrypted disk on other Linux maschine

Post by aqueenan »

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!
QNAP encrypt the password and use the encrypted value as the password for cryptsetup.

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
and enter the password to create the key file.

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
The output is

Code: Select all

ENCK=$1$YCCaQNAP$encryptedpassword
Run

Code: Select all

echo -n '$1$YCCaQNAP$encryptedpassword' > qnap.key
to create the key file.

These instructions are based on http://www.baseline-security.de/downloa ... 9-3200.txt.
Post Reply

Return to “System & Disk Volume Management”