Attempting to retrieve files from encrypted partition

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

Attempting to retrieve files from encrypted partition

Postby 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 19
Level 19
Posts: 9968
Joined: Thu Apr 07, 2011 8:15 pm

Re: Attempting to retrieve files from encrypted partition

Postby 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.
Image ImageImage

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

Re: Attempting to retrieve files from encrypted partition

Postby 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 12
Level 12
Posts: 4116
Joined: Tue Sep 03, 2013 7:45 pm

Re: Attempting to retrieve files from encrypted partition

Postby 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/forgotten-luks-passphrase
Armageddon only happens once, you know. They don’t let you go around again until you get it right.

User avatar
WharfRat
Level 19
Level 19
Posts: 9968
Joined: Thu Apr 07, 2011 8:15 pm

Re: Attempting to retrieve files from encrypted partition

Postby 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.
Image ImageImage


Return to “Mounting Partitions”