Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
18
rated 0 times [  18] [ 0]  / answers: 1 / hits: 19180  / 2 Years ago, mon, february 7, 2022, 5:18:26

I've got an external USB drive with an encrypted LUKS partition. I generally have no problems mounting the device; I click it from the xfce4 desktop and get a dialog where I enter the password.



When I try to mount the drive now, I type in the password and get the error:



Error unlocking /dev/sdc1: Command-line `cryptsetup luksOpen "/dev/sdc1" "luks-..."' exited with non-zero exit status 5: Device luks-... already exists


What do I need to do in order to mount the drive? Is it somehow corrupted? How can the device already exist if it's not mounted (and wasn't plugged in until a short time ago)?


More From » 16.04

 Answers
5

Yes, this happens when luks encrypted device was not cleanly deactivated with cryptsetup close.



You can try to remove the mapping using



dmsetup remove /dev/mapper/luks-... if you want to avoid rebooting.


[#12449] Tuesday, February 8, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
herriail

Total Points: 11
Total Questions: 122
Total Answers: 118

Location: Peru
Member since Tue, Mar 16, 2021
3 Years ago
;