Skip to content

"Failed to deactivate device: Device or resource busy" when unmounting LUKS-encrypted partition #331

@laur89

Description

@laur89

When unmounting a LUKS-encrypted partition, either by running udiskie-umount /dev/sdaX or via tray/GUI Unpower /dev/sda command, then following error is shown:

failed to lock /org/freedesktop/UDisks2/block_devices/sda2: GDBus.Error:org.freedesktop.UDisks2.Error.Failed: Error locking /dev/dm-4 (/dev/sda2): Failed to deactivate device: Device or resource busy

Notification error message is slightly different:

Job Failed
failed to lock /dev/sda2: Threaded job failed with error: Failed to deactivate device: Device or resource busy (g-bd-crypto-error-quark, 1)

Best I can tell no user-launched program is accessing the drive.

config ~/.config/udiskie/config.yml:

device_config:
  - id_uuid: 6812a133-4aa1-455a-8ba1-da21ecc4822a
    keyfile: /path/to/key

udiskie 2.5.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions