Bug 293906

Summary: Device notifier should have an option to only unmount, not detach as well
Product: [Plasma] plasmashell Reporter: sorath <torokhov_s_a>
Component: Disks & DevicesAssignee: David Edmundson <kde>
Status: CONFIRMED ---    
Severity: wishlist CC: afiestas, alpeterson, antdev66, arran4, benoit.gouhier, bugseforuns, cfeck, cyberbeat, johu, kasnolajr, lukas, marco.morandini, MolbOrg, mpeter.68m0y, msdobrescu, nate, pb.g, rack, rohan, stephane, stuartksmith, stupor_scurvy343, thomasschmidt45, valerio.vanni, voggur, wilderkde, ziegleka
Priority: HI    
Version: master   
Target Milestone: 1.0   
Platform: Compiled Sources   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=405979
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description sorath 2012-02-12 15:27:45 UTC
Version:           unspecified (using KDE 4.8.0) 
OS:                Linux

Previosly in KDE-3.5 (and sometimes in 4.x releases) it was able to remount previosly unmounted USB devices through "device notifier".

This useful option disappear for me in some KDE relaeses some time ago and has appeared again after installing kde-4.8, but for a short time, as now it is unavailable again.

Also this bug was described here (https://qa.mandriva.com/show_bug.cgi?id=64220) for Mandriva (I use Gentoo).

Reproducible: Always

Steps to Reproduce:
1. Insert an USB device (usb flash) and mount it through "device notifier"
2. Umount the USB in "device notifier" via clicking "safely remove".


Actual Results:  
Note that just unmounted USB flash doesn't shown in "device notifier" and isn't able to mount it againg without physicaly removing of it from usb port and inserting again

Expected Results:  
Unmounted USB device must be able to mount it again through "device notifier"
Comment 1 sorath 2012-02-13 20:40:24 UTC
Is any additional information need to report?
Comment 2 sorath 2012-02-13 21:12:01 UTC
Note:
1. If I insert usb flash to usb port and mount it from konsole (mount /mnt/usb) then "device notifier" shows usb device as mounted (/var/log/messages warning me only about utf8 on FAT filesystems)
2. If I ummount usb flash via konsole - "device notifier" shows usb device as unmounted (no warnings or record in  var/log/messages).
3. If I mount usb flash via "device notifier" then as in 1st step - /var/log/messages warning me only about utf8 on FAT filesystems.
4. If I click "unmount" in the "device notifier" var/log/messages  shows error:
.... kernel: [19822.434441] sdd: detected capacity change from 2079850496 to 0

and after that usb isn't shown in "fdisk -l", but is visible by lsusb.

Trying to mount via konsole after that shows error: 
mount: special device /dev/sdd1 does not exist
Comment 3 Aaron Peterson 2012-04-22 04:27:33 UTC
I can confirm this on ubuntu 11.10, running latest ppa kde 4.8.2

(I also need it to say what device it is, so I will file an extra feature request...)
Comment 4 Jacopo De Simoi 2012-08-22 08:53:27 UTC
This is due to a behavior change in the unmount routine, and I agree that it should be reconsidered.
Lukas, we should really discuss about the “always eject” policy of the udisks backend.
Comment 5 Lukáš Tinkl 2012-08-28 14:03:48 UTC
I agree, these 2 cases are mutually exclusive, see https://bugzilla.redhat.com/show_bug.cgi?id=852196 for the opposite case; in short, some external USB drives need to be explicitely ejected (and also) detached when you click on the "Safely remove/eject" button in the notifier.
Comment 6 Lukáš Tinkl 2013-03-05 12:01:48 UTC
*** Bug 273095 has been marked as a duplicate of this bug. ***
Comment 7 Alex Fiestas 2013-03-05 21:43:48 UTC
So, can we identify these cases or there is nothing to do?
Comment 8 Lukáš Tinkl 2013-03-27 08:49:00 UTC
This should be fixed in 4.10.2
Comment 9 Alex Fiestas 2013-07-28 22:10:48 UTC
No feedback, Lukáš says it is fixed... so marking it as resolved :p

If we are mistaken and this bug is indeed not fixed in 4.10.2 and greater please, reopen the bug !
Comment 10 Valerio Vanni 2014-04-03 13:31:46 UTC
I find this issue (after the umount, device disappear from notifier and I have to phisically unplug and replug) in Debian Wheezy
In Squeeze the reattach from notifier worked perfectly.
How can I find if version number is greater or equal of 4.10.2?
I can look at the kde version, but where I find the version of this component?
Comment 11 Valerio Vanni 2014-05-13 19:09:47 UTC
It still happens in kde 4.12.4 (I've tried Debian Jessie).
After the device is unmounted, it cannot be reattached.
Comment 12 Christoph Feck 2014-06-02 18:25:53 UTC
Reopening based on comment #11.
Comment 13 Janet 2014-06-13 13:00:24 UTC
*** This bug has been confirmed by popular vote. ***
Comment 14 zigi 2014-10-07 07:47:25 UTC
KDE 4.14.1 problem still persists...

Please add options ("Safely Remove and Eject" and "Unmount") to Device Notifier's "Eject" button.

Thank you
Comment 15 Lukáš Tinkl 2014-10-07 19:01:16 UTC
The problem here is that some devices (like external hard drives) advertise the option to power down the drive completely after unmounting it, thus we do that. 

OTOH, I agree that the correct way to fix this double-sided problem would be to have 2 distinct buttons in the Device Notifier, 1 to unmount and the other one to eject/powerdown. What do you think?
Comment 16 zigi 2014-10-07 19:38:47 UTC
Hi,

  I suggest this:

1. default configurable action - Safely Remove vs. Unmount
2. left mouse click on the button invokes the default action
3. right mouse click on the button displays the popup menu with two options - Safely Remove and Unmount

This proposal allows to preserve the current clean and simple design of Device Notifier.
Comment 17 Christoph Feck 2019-03-24 11:43:32 UTC

*** This bug has been marked as a duplicate of bug 402660 ***
Comment 18 Nate Graham 2022-04-22 17:30:39 UTC
*** Bug 334429 has been marked as a duplicate of this bug. ***
Comment 19 Nate Graham 2022-04-22 17:30:48 UTC
*** Bug 404946 has been marked as a duplicate of this bug. ***
Comment 20 Nate Graham 2022-04-22 17:31:03 UTC
*** Bug 405617 has been marked as a duplicate of this bug. ***
Comment 21 Nate Graham 2022-04-22 17:32:56 UTC
*** Bug 406362 has been marked as a duplicate of this bug. ***
Comment 22 Nate Graham 2022-04-22 17:34:57 UTC
*** Bug 402660 has been marked as a duplicate of this bug. ***
Comment 23 H.H. 2023-03-29 18:33:38 UTC
Is this so difficult to fix? Offering two options would be fine for me. But even detached/energy-save-mode, wouldn't it be possible to remount again?

My use case:
I have a fast hard-drive connected all the time, but it makes much noise, when in action (and sometimes the harddisk (no ssd) starts to rotate without any known interaction..?), so I like to make it quiet by unmounting it, and remount it again, when I need it. But the replugging everytime is annoying and seems to harm for the long run.
Comment 24 Nate Graham 2024-10-30 16:04:59 UTC
*** Bug 495548 has been marked as a duplicate of this bug. ***
Comment 25 Nate Graham 2024-11-12 22:31:32 UTC
*** Bug 494850 has been marked as a duplicate of this bug. ***