Bug 446395

Summary: Unmounting an SD card in the internal reader using the device notified leads to it being mounted again
Product: [Plasma] plasmashell Reporter: Mikhail Ramendik <mr>
Component: Disks & DevicesAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: berto, nate, rdieter
Priority: NOR    
Version: 5.23.3   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 5.24
Sentry Crash Report:

Description Mikhail Ramendik 2021-12-02 22:58:24 UTC
SUMMARY

I have KDE Plasma. Plasma has a removable device notifier. The "Automatically mount all removable media when attached " option is turned on.

When I put an SD card into the laptop's built-in reader, the card is mounted. But when I click "Safely remove" for that card, it is immediately mounted again! I have to use "sudo umount" to unmount it.

The laptop is ThinkPad P1Gen3. The issue does *not* seem to happen with an external card reader (attached via USB), nor with a USB flash drive. But it happens every time with the internal SD card reader.


STEPS TO REPRODUCE
1. In the KDE Settings under "removable devices" ensure that the "Automatically mount all removable media when attached " option is turned on.
2. Insert SD card into laptop.
3. List the files on the SD card to ensure it is mounted.
4. Click the device notifier icon and click "Safely remove" for the card.

OBSERVED RESULT

The card now appears in the notifier twice, one of the entries is greyed out. After I close and reopen the notifier the card is there only once. At all times, the card remains mounted and the "Safely remove" button is offered again.

EXPECTED RESULT

Card is unmounted. "Mount and Open" button is offered in the Device Notifier for the card

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88.0
Qt Version:  5.15.2

ADDITIONAL INFORMATION
This is a long-standing issue; I noticed it first in Fedora 33. The kernel is 5.15 but it was something like 5.9 when I noticed the issue first.
Comment 1 Nate Graham 2021-12-03 20:30:10 UTC
Cannot reproduce on git master. I seem to recall that this was fixed recently in the next release (Plasma 5.24), but I cannot find the bug report for it now.
Comment 2 Alberto Garcia 2023-03-24 13:14:57 UTC
I just collected all the details about how to reproduce this problem and I had overlooked that you had reported this. Marking as duplicate. See the linked bug for all the details.

*** This bug has been marked as a duplicate of bug 467751 ***