Plugging in a LUKS device causes the following error: Error unlocking device: cryptsetup exited with exit code 239: Command failed: Device already exists
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
udisks |
Fix Released
|
Medium
|
|||
cryptsetup (Debian) |
Fix Released
|
Unknown
|
|||
cryptsetup (Ubuntu) |
Confirmed
|
Medium
|
Unassigned | ||
Lucid |
Won't Fix
|
Medium
|
Unassigned | ||
Maverick |
Won't Fix
|
Medium
|
Unassigned | ||
gnome-disk-utility (Ubuntu) |
Invalid
|
Medium
|
Unassigned | ||
Lucid |
Invalid
|
Medium
|
Unassigned | ||
Maverick |
Invalid
|
Medium
|
Unassigned | ||
udisks (Fedora) |
Won't Fix
|
Medium
|
|||
udisks (Ubuntu) |
Fix Released
|
Medium
|
Martin Pitt | ||
Lucid |
Won't Fix
|
Medium
|
Unassigned | ||
Maverick |
Fix Released
|
Medium
|
Martin Pitt |
Bug Description
Binary package hint: cryptsetup
When creating an encrypted drive in Palimsest (Disk Utility), the application does not lock the disk when finished creating the encrypted partition. Failing to lock the drive manually without ejecting will give the appearance that the disk is no longer usable giving this error. Bringing the key to another computer works because the drive is not unlocked (luks mapper point is not already present) on that system.
Steps to reproduce:
1) Go into palimsest (disk utility) and create an encrypted partition on an external disk.
2) Quit Palimsest
3) Pull the USB stick
4) Intert the USB stick
Result:
GNOME displays a dialog for the password. Once submitted, the following error comes up:
Error unlocking device: cryptsetup exited with exit code 239: Command failed: Device already exists
This is due to the mapping being Opened when the disk is created, but never closed, which creates a conflict.
Workaround:
Do the following to resolve the conflict of the existing device i /dev/mapper.
$ ls -al /dev/mapper
(Identify the mount point for your drive, "sudo blkid" may help)
$ sudo cryptsetup luksClose devkit-
What is expected:
Palimsest (Disk Utility) is expected to "cryptsetup luksClose" the mapped device when finished creating the encrypted partition.
ProblemType: Bug
Architecture: i386
CheckboxSubmission: 19ba8f45e3d3d7b
CheckboxSystem: 099634613a96bc3
Date: Tue Nov 17 15:37:09 2009
DistroRelease: Ubuntu 9.10
Package: cryptsetup 2:1.0.6+
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=en_CA.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: cryptsetup
Uname: Linux 2.6.31-12-generic i686
Related branches
Changed in cryptsetup (Ubuntu): | |
status: | New → Invalid |
Changed in gnome-disk-utility (Ubuntu): | |
status: | Confirmed → Fix Released |
status: | Fix Released → Confirmed |
description: | updated |
description: | updated |
Changed in gnome-disk-utility (Ubuntu Lucid): | |
importance: | Undecided → Medium |
Changed in gnome-disk-utility (Ubuntu Maverick): | |
status: | Confirmed → Invalid |
Changed in gnome-disk-utility (Ubuntu Lucid): | |
status: | New → Invalid |
Changed in udisks (Ubuntu Maverick): | |
assignee: | nobody → Martin Pitt (pitti) |
status: | New → In Progress |
Changed in udisks: | |
importance: | Unknown → Medium |
status: | Unknown → Fix Released |
Changed in udisks: | |
importance: | Medium → Unknown |
Changed in udisks: | |
importance: | Unknown → Medium |
Changed in cryptsetup (Ubuntu Lucid): | |
status: | New → Confirmed |
Changed in cryptsetup (Ubuntu Maverick): | |
status: | New → Confirmed |
Changed in cryptsetup (Ubuntu): | |
status: | New → Confirmed |
Changed in udisks (Ubuntu Lucid): | |
status: | New → Confirmed |
Changed in cryptsetup (Debian): | |
status: | Unknown → Fix Released |
Changed in cryptsetup (Ubuntu Maverick): | |
status: | Confirmed → Won't Fix |
Changed in cryptsetup (Ubuntu): | |
importance: | Undecided → Medium |
Changed in udisks (Ubuntu): | |
importance: | Undecided → Medium |
Changed in cryptsetup (Ubuntu Lucid): | |
importance: | Undecided → Medium |
Changed in cryptsetup (Ubuntu Maverick): | |
importance: | Undecided → Medium |
Changed in udisks (Ubuntu Lucid): | |
importance: | Undecided → Medium |
Changed in udisks (Ubuntu Maverick): | |
importance: | Undecided → Medium |
Changed in udisks (Fedora): | |
importance: | Unknown → Medium |
status: | Unknown → Won't Fix |
Architecture: i386 f348103cee5a0ee aa 665b92c4a813055 e8 ature: Ubuntu 2.6.31- 12.41-generic
CheckboxSubmission: 19ba8f45e3d3d7b
CheckboxSystem: 099634613a96bc3
DistroRelease: Ubuntu 9.10
Package: palimsest (not installed)
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, user)
LANG=en_CA.UTF-8
LANGUAGE=
ProcVersionSign
Uname: Linux 2.6.31-12-generic i686
UserGroups: adm admin cdrom dialout fuse lpadmin plugdev sambashare