Bug 334429

Summary: Device remounting does not work
Product: [Plasma] plasmashell Reporter: Rohan Garg <rohan>
Component: Disks & DevicesAssignee: David Edmundson <kde>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kde, lukas, nate, notmart, notuxius
Priority: NOR    
Version: master   
Target Milestone: 1.0   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Bustle screenshot.

Description Rohan Garg 2014-05-06 18:00:38 UTC
Turns out you can't remount the device after ejecting it

Reproducible: Always

Steps to Reproduce:
1. Plug in USB key
2. Eject usb key via systray -> devicenotifier
3. Try to remount the usb key via devicenotifier

Actual Results:  
Can't remount usb key

Expected Results:  
usb key is remounted after ejecting it

Plasma workspace is at 6d88ac8
Comment 1 Marco Martin 2014-05-07 09:47:06 UTC
I think it's a middleware or even kernel level issue.
since this happens here also on plasma1, and the device file associated to the partition (like, /dev/sdb1) disappears as well
Comment 2 David Edmundson 2014-05-21 10:09:32 UTC
I can reproduce this in Dolphin 4.

However, it also doesn't seem to be a problem with udisks or solid.
I just mounted and unounted and remounted with solid-hardware5 and that worked fine. Everything was updated in the Plasma UI perfectly too.

$ solid-hardware5 mount /org/freedesktop/UDisks2/block_devices/sdc
$ solid-hardware5 unmount /org/freedesktop/UDisks2/block_devices/sdc
$ solid-hardware5 mount /org/freedesktop/UDisks2/block_devices/sdc

Bustle logs seem to show the same dbus commands going to solid from both solid-hardware and from plasma.

I'm a bit lost. I'll talk to afiestas.
Comment 3 David Edmundson 2014-05-21 10:10:28 UTC
Created attachment 86743 [details]
Bustle screenshot.

Bustle screenshot.
First setup + teardown comes from konsole
Second pair comes from the plasmoid.

All args are the same.
Comment 4 Kai Uwe Broulik 2014-12-31 10:17:35 UTC
I think the devicenotifier (or something inside Solid which you don't trigger when you manually unmount via cmdline) powers off the device (so your external HDD doesn't keep spinning) but that way you cannot mount the device again without unplugging it first. Lukas?
Comment 5 Alexander Mentyu 2017-12-10 17:00:09 UTC
Seems related to https://bugs.kde.org/show_bug.cgi?id=293906
Comment 6 Nate Graham 2020-01-13 03:43:21 UTC
Yeah, effectively the same as Bug 402660.

*** This bug has been marked as a duplicate of bug 402660 ***
Comment 7 Nate Graham 2022-04-22 17:30:39 UTC

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