Attempting to retrieve files from encrypted partition

Forum rules
Before you post please read this
Post Reply
td1246
Level 1
Level 1
Posts: 2
Joined: Fri Aug 25, 2017 9:44 pm

Attempting to retrieve files from encrypted partition

Post by td1246 » Mon Sep 25, 2017 12:54 pm

I'm attempting to retrieve files stored to a partition but I didn't realize it was encrypted. This is the message I receive, can anyone tell me what it means exactly and if I can fix it?
Error unlocking /dev/sdb1: Command-line `cryptsetup luksOpen "/dev/sdb1" "luks-6ed13450-70e5-4fa9-baae-afcfd550f83a" ' exited with non-zero exit status 2: No key available with this passphrase.
(udisks-error-quark, 0)

Thanks in advance!
Last edited by Moem on Mon Sep 25, 2017 1:04 pm, edited 1 time in total.
Reason: A more descriptive title often helps you get better answers.

User avatar
WharfRat
Level 20
Level 20
Posts: 11435
Joined: Thu Apr 07, 2011 8:15 pm

Re: Attempting to retrieve files from encrypted partition

Post by WharfRat » Mon Sep 25, 2017 2:13 pm

Hello td1246 Image

Welcome to Linux Mint and the Linux Mint forum :)

To access a LUKS encrypted partition you can use sudo cryptsetup luksOpen /dev/sdb1 crypt

You'll be prompted for the password. After entering it mount the mapped device with sudo mount /dev/mapper/crypt /mnt

Your files will be available in the /mnt folder.
ImageImage

td1246
Level 1
Level 1
Posts: 2
Joined: Fri Aug 25, 2017 9:44 pm

Re: Attempting to retrieve files from encrypted partition

Post by td1246 » Mon Sep 25, 2017 6:30 pm

Thanks for the reply, it didn't work... says that no key available with this passphrase. So I'm going to start recreating some of my documents that are on that drive :(

Mute Ant
Level 13
Level 13
Posts: 4902
Joined: Tue Sep 03, 2013 7:45 pm

Re: Attempting to retrieve files from encrypted partition

Post by Mute Ant » Mon Sep 25, 2017 7:15 pm

"tell me what it means exactly" The passphrase you used to unlock the volume does not unlock the data.

If you have a rough idea of what the passphrase should be, there are feasible methods of getting the machine to guess on your behalf...
https://hashcat.net/forum/thread-6225.html
...but if the passphrase is totally unknown, you might wait for years...or for ever.
https://superuser.com/questions/476945/ ... passphrase
Data stored in an encrypted volume will only be accessible with the original password. Without this key, all the data will remain scrambled beyond hope of recovery.

User avatar
WharfRat
Level 20
Level 20
Posts: 11435
Joined: Thu Apr 07, 2011 8:15 pm

Re: Attempting to retrieve files from encrypted partition

Post by WharfRat » Mon Sep 25, 2017 8:27 pm

td1246,

The password would be the one you used when setting up the LUKS container, not necessarily your user login password.
ImageImage

Post Reply

Return to “Mounting Partitions”