You are not logged in.

#1 2021-03-06 18:46:19

wandored
Member
Registered: 2017-04-11
Posts: 2

[SOLVED] cryptsetup - how to open luks drive

I see this issue:  https://bbs.archlinux.org/viewtopic.php?id=264274

i seem to have a similar issue, but i don't know how to resolve. 

I am using LUKS 1
I updated to 5.11 yesterday
I have a usb with 4.17.3 and i still cannot unlock my luks drive. 
I cannot figure out how to unlock the drive if it won't accept my key.

root@archiso # cryptsetup open --debug --type-luks /dev/sda2 /mnt
# cryptsetup 2.0.3 processing "cryptsetup open --debug --type=luks /dev/sda2 mnt"
# Running command open.
# Locking memory.
# Installing SIGINT SIGTERM handler. 
# Unblocking interruption on signal. 
# Allocating context for crypt device /dev/sda2.
# Trying to open and read device /dev/sda2 with direct-io. 
# Initializing device-mapper backend library.
# Trying to load any crypt type from device /dev/sda2.
# Crypto backend (gcrypt 1.8.3) initialized in cryptsetup library version 2.0.3. 
# Detected kernel Linux 4.17.3-1-ARCH x86 64.
# PBKDF pbkdf2, hash sha256, time_ms 2000 (iterations 0), max_menory_kb e. parallel 
# Reading LUKS header of size 1024 from device /dev/sda2
# Key length 32, device size 1952474511 sectors, header size 2050 sectors.
# Activating volume mount using token -1. 
# Interactive passphrase entry requested.
Enter passphrase for /dev/sda2: 
# Activating volume [keyslot -1] using passphrase.
# dm version [ opencount flush ] [163841 (1)
# dm versions [ opencount flush ] (16384] (1) 
# Detected an-ioctl version 4,39.0.
# Device-mapper backend running with UDEV support enabled
Device mnt not found
Cannot use device /mnt, name is invalid or still in use, 
# Releasing crypt device /dev/sda2 context.
# Releasing device-mapper backend. 
# Unlocking memory,
Command failed with code -1 (wrong or missing parameters)

Last edited by wandored (2021-03-06 18:55:26)

Offline

#2 2021-03-06 18:50:26

frostschutz
Member
Registered: 2013-11-15
Posts: 1,586

Re: [SOLVED] cryptsetup - how to open luks drive

what if you use foobar (some crypt mapping name a-z) instead of /mnt (never seen that with cryptsetup before)

Offline

#3 2021-03-06 18:54:50

wandored
Member
Registered: 2017-04-11
Posts: 2

Re: [SOLVED] cryptsetup - how to open luks drive

foobar worked.  thank you

Offline

Board footer

Powered by FluxBB