[Bug 529502] Re: cryptsetup luksClose fails with "busy"

derekshaw ubuntuforum at bisi.ca
Fri Feb 15 17:46:04 UTC 2013


same issue, completely reproducible:
- from a cold boot (or any other starting condition)
- connect and power up external usb drive with encrypted LUKS volume in first partition
- use GUI or command line to unlock and mount volume
- use the volume for backup
- umount the encrypted volume
- attempt to lock (close) the encrypted block device

Encrypted data is still visible in nautilus, even though the mount table
(mtab) no longer shows the presence of the device.

The difference: There is no way to lock/close the device.
manually running 
/sbin/cryptsetup luksClose udisks-luks-uuid-...
yields: 
Device udisks-luks-uuid-... is not active.
Device udisks-luks-uuid/...  not found
depending on which UUID is used in place of the ellipsis

cryptsetup luksClose /sbin/cryptsetup luksClose /dev/disk/by-uuid/... 
yields:
"Device ... is busy" message

the two UUIDs I'm working with:
/dev/sdc1: UUID="4e1a0099-6362-44a7-9435-3a87fb8add16" TYPE="crypto_LUKS" 
/dev/mapper/external-mirror:  UUID="a43905ea-0d70-4d5f-83e2-852ef930c0ad" TYPE="ext4"

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cryptsetup in Ubuntu.
https://bugs.launchpad.net/bugs/529502

Title:
  cryptsetup luksClose fails with "busy"

Status in “cryptsetup” package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: nautilus

  Encrypted LUKS volume lives in /dev/sdb1 (first partition in external
  USB HDD)

  Steps:

  1) Plug USB HDD
  2) Choose Places -> Encrypted volume
  3) Type password in dialog

  Volume is sucesfully mounted and nautilus window is open on mount
  point

  4) Choose File -> Umount

  Expected: partition is unmounted and encryted block device is removed
  from /dev/mapper

  Result: volume is unmouted, cryptsetup fails to remove encrypted block device in /dev/mapper with error:
  Error locking device: cryptsetup exited with exit code 240: Device udisks-luks-uuid-[...] is busy.

  Manually running cryptsetup luksClose udisks-luks-uuid-[...]
  afterwards works as expected.

  ProblemType: Bug
  Architecture: amd64
  Date: Sun Feb 28 16:16:53 2010
  DistroRelease: Ubuntu 10.04
  InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha amd64 (20100219)
  Package: nautilus 1:2.29.91-0ubuntu1
  ProcEnviron:
   LANGUAGE=es_ES.utf8
   PATH=(custom, user)
   LANG=es_ES.utf8
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 2.6.32-14.20-generic
  SourcePackage: nautilus
  Uname: Linux 2.6.32-14-generic x86_64

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cryptsetup/+bug/529502/+subscriptions




More information about the foundations-bugs mailing list