Bug 350393 - Mounting LUKS device in Dolphin shows: "The device is already mounted"
Summary: Mounting LUKS device in Dolphin shows: "The device is already mounted"
Status: CONFIRMED
Alias: None
Product: frameworks-solid
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.52.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Lukáš Tinkl
URL:
Keywords:
: 402693 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-07-20 07:03 UTC by Artur O.
Modified: 2020-05-23 22:09 UTC (History)
11 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 Artur O. 2015-07-20 07:03:19 UTC
Dolphin
Version 15.04.0
Using KDE Development Platform 4.14.10

Mounting a luks partition that has a label will throw an: 
"An error occurred while accessing '2.7 TiB Encrypted Drive', the system responded: The device is already mounted: Device /dev/dm-0 is already mounted at `/run/media/commander/Media'. "

And mount the device. 

Reproducible: Always

Steps to Reproduce:
1. Have a luks partition with a label ready.
2. Mount it using dolphin

Actual Results:  
An error occurred while accessing '2.7 TiB Encrypted Drive', the system responded: The device is already mounted: Device /dev/dm-0 is already mounted at `/run/media/commander/Media'. 

And drive is mounted.

Expected Results:  
No error, drive is mounted.

This is probably related to Bug 350392 but wanted to split out the issues.
Comment 1 Frank Reininghaus 2015-07-23 17:14:19 UTC
Thanks for the bug report. This is most likely not a Dolphin issue - we use the Solid library for mounting devices. Just to find out if this still happens in the KF5 version of Solid: Could you try if this also happens in the "File Open" dialog of KWrite and tell us about your KWrite and KDE Frameworks versions?
Comment 2 Artur O. 2015-07-24 11:02:06 UTC
(In reply to Frank Reininghaus from comment #1)
> Thanks for the bug report. This is most likely not a Dolphin issue - we use
> the Solid library for mounting devices. Just to find out if this still
> happens in the KF5 version of Solid: Could you try if this also happens in
> the "File Open" dialog of KWrite and tell us about your KWrite and KDE
> Frameworks versions?

It does not show the red error when trying to mount with "File Open" dialog in KWrite however I still got a notification that it failed to mount while both entrys shows up in the dialog window.

From the help window,
KWrite
Version 5.0.0
Using KDE Frameworks 5.12.0
Comment 3 Frank Reininghaus 2015-07-31 16:36:37 UTC
(In reply to Artur O. from comment #2)
> It does not show the red error when trying to mount with "File Open" dialog
> in KWrite however I still got a notification that it failed to mount while
> both entrys shows up in the dialog window.

Thanks. It's not a Dolphin issue then. The file dialog uses a different error handling mechanism though, which is why you do not see the red box.
Comment 4 J Appel 2018-05-03 07:13:53 UTC
The problem persits in Frameworks 5.45 when mounting luks-devices with dolphin. 

Mounting any (external) luks crypted device shows the mentioned error, though the device was not previously mounted.

Furthermore, Dolphins folder view does not change (ie it does not show the content of the newly mounted device). A second click on the device-symbol is required to show the content of the device.
Comment 5 Patrick Silva 2018-05-04 15:08:52 UTC
duplicate of bug 391386 ?
Comment 6 J Appel 2018-05-06 18:34:32 UTC
The error message looks familiar.

The patch for bug 370975 is apparently the fix for bug 391386.

bug 370975 comment 51 mentions that the patch has already been applied in arch linux and solves the problem.

If that implies that the patch has been rolled out in arch linux, then it does not fix this bug. 

It might be still in the testing repositories, I will keep an eye on it.

Today the bug is alive and kicking in arch.
Comment 7 J Appel 2018-05-14 10:04:24 UTC
Patch for bug 370975 is in frameworks 5.46, which is now in arch. It did not resolve this bug, the error message for external luks drives persists.
Comment 8 Øystein Steffensen-Alværvik 2019-01-10 19:09:19 UTC
Reproduced under Kubuntu 18.10 with Frameworks 5.52.0 and Dolphin 18.12.0. Tried to mount a luks-encrypted ext4 partition on an external drive in Dolphin (right-click in sidebar → "Mount"). The partition does actually get mounted (yay!), even in the mountpoint that the error message refers to, so as a user I don't understand why the error message would appear.
Comment 9 Alan Prescott 2019-08-11 05:56:16 UTC
Bug still present on openSUSE 15.0 with solid 5.52.0. 
As others say, the device is mounted but the error message is annoying and makes KDE look dumb
Comment 10 foss 2019-12-07 10:10:18 UTC
*** Bug 402693 has been marked as a duplicate of this bug. ***