Bug 402692 - Unable to *re*mount encrypted removable volumes with Dolphin after unmounting
Summary: Unable to *re*mount encrypted removable volumes with Dolphin after unmounting
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-solid
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Neon Linux
: HI normal
Target Milestone: ---
Assignee: Lukáš Tinkl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-29 21:59 UTC by Jens
Modified: 2020-06-17 19:59 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jens 2018-12-29 21:59:00 UTC
KDE / Dolphin / the underlying framework does not call "dmsetup remove /dev/mapper/luks-$UUID" or an equivalent API call after umounting the last partition in the LUKS container.

This causes KDE to be unable to mount this device ever again until the next reboot. This works when directly ejecting the USB disk, but not when umounting the encrypted partition first.

=> Mounting and umounting encrypted partitions on removable media repeatedly should be possible.
Comment 1 Kai Uwe Broulik 2019-01-09 10:24:02 UTC
Shouldn't udev do that? Solid just asks UDev to eject, from what I can tell.
Comment 2 Kai Uwe Broulik 2019-01-09 10:24:10 UTC
UDisks, not UDev
Comment 3 Kwon-Young Choi 2020-06-15 21:26:09 UTC
Hello,

I have tried to replicate this bug but I haven't been able to reproduce the bug behavior.

I can mount and unmount the luks encrypted of an usb key multiple times with dolphin without any problem.

System information:

Operating System: Manjaro Linux 
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.15.0
Kernel Version: 5.7.0-3-MANJARO
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-7820HQ CPU @ 2.90GHz
Memory: 15.2 Gio
Comment 4 Nate Graham 2020-06-15 21:31:19 UTC
Same here.

jens, can you still reproduce this hwen using the latest versions of Dolphin and KDE Frameworks?
Comment 5 Jens 2020-06-17 18:11:41 UTC
I cannot reproduce this bug any more. However, whenever I mount an encrypted disk or partition, I still get an error message in Dolphin that the disk is "already mounted" and cannot be mounted - but only after it has been successfully mounted.
Comment 6 Nate Graham 2020-06-17 19:59:55 UTC
I see that too. Let's track it in a new bug report.