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

Postby mdt390 » Tue Oct 02, 2018 5:03 pm

dolbyman wrote:with new firmwares and lvm probably futile


:(

aqueenan
New here
Posts: 2
Joined: Thu Jun 06, 2013 10:58 pm

Re: Mount encrypted disk on other Linux maschine

Postby aqueenan » Thu Oct 11, 2018 8:28 pm

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.


Return to “System & Disk Volume Management”

Who is online

Users browsing this forum: No registered users and 6 guests