Bug 324981 - safely remove device option doesn't power off usb hdd
Summary: safely remove device option doesn't power off usb hdd
Status: RESOLVED DUPLICATE of bug 270808
Alias: None
Product: solid
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Alex Fiestas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-17 05:37 UTC by Harrison
Modified: 2014-06-25 18:13 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harrison 2013-09-17 05:37:25 UTC
Since version 4.10, when kde started supporting udisks2 the option to safely remove a usb device doesnt work properly:
it should umount and eject/shutdown the device, it works fine on a device that supports eject (like a card reader), but on a usb hdd that only supports power off, it just unmounts and thats it (the disks remains spinning, the led remains on, and i can remount if i want)


Reproducible: Always

Steps to Reproduce:
1. Plug a usb hdd and mount it
2. Use the option on dolphin or device notifier
3. A device with "CanEject: true" will behave properly, otherwise the device is umounted but not removed
Actual Results:  
device still on

Expected Results:  
device powered off

the safely remove option on the device notifier has the same behavior, so the problem may be in kdelibs and not dolphin (sorry about that)
i did "udisksctl dump" and it shows "CanPowerOff:  true" so i dont think the problem is with udisks itself (i will do more tests and post the results here later)
Comment 1 Frank Reininghaus 2013-09-17 08:23:03 UTC
Thanks for the bug report!

(In reply to comment #0)
> the problem may be in kdelibs and not dolphin

You're probably right - I'll reassign to Solid, the part of kdelibs that handles this kind of interactions with devices for us.
Comment 2 Alivema4ever 2014-05-28 07:40:43 UTC
I also found this bug is so important to fix.
* What is expected to happen?
External HDD spin itself down and turned off when ejected via device notifier applet.

* What is actually happened?
External HDD did not spin down and did not turn off.

* Steps to reproduce problem:
Attach an external USB harddisk.
Click device notifier applet (the USB icon) on the KDE panel.
Select the external HDD and click eject button. It says "click to safely remove the drive" on mouse hover.

* Suggested temporary workaround to safely remove USB HDD
Unmount all mounted partition on the external HDD via udisks (sudo udisks --unmount /dev/sdb1)
Instruct udisks to detach the external HDD (sudo udisks --detach /dev/sdb)

I hope kdelibs will be better integrated with udisks for mount, unmount, and detach operation.
Comment 3 Christoph Feck 2014-06-25 18:13:26 UTC

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