Bug 140435 - kde media storage try to eject..usb pen!
Summary: kde media storage try to eject..usb pen!
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: media (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Kevin Ottens
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-22 12:31 UTC by giuseppe
Modified: 2007-08-27 22:15 UTC (History)
0 users

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 giuseppe 2007-01-22 12:31:25 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          3.4.6 
OS:                Linux

When i try "secure remove"
on my hd usbpen system
said "device umounted but
is not possible to eject it"
Eject a usb pen?
;)
Comment 1 Stephan Kulow 2007-01-22 13:18:59 UTC
Yes, the system shuts down the hardware and does no longer supply it with power - if that fails, eject is a good enough term
Comment 2 Kevin Funk 2007-05-05 15:23:19 UTC
I've got this problem, too, on Gentoo Linux. When i try to "eject" my usb hd or usb pen kde says that it safely removed my usb media but wasn't able to throw them out. So there's an error dialog which is annoying.
Problem stated here: http://archives.mandrivalinux.com/cooker/2006-07/msg00296.php and here: 
http://forums.gentoo.org/viewtopic-p-4024776.html (german).
I've already filed a bug report to bugs.gentoo.org which includes a patch: 
http://bugs.gentoo.org/show_bug.cgi?id=175909
Comment 3 Kevin Funk 2007-05-05 15:26:03 UTC
Extract from the Mandriva ML:
OK I got a closer look. For USB for whatever reasons KDE offer "Safely
remove" instead of separate "Unmount" and "Eject". "Safely remove" actually
does nothing else than ejecting media (and please explain how are you
supposed to eject USB stick ... oh well), it calls "kio_mount_helper -s"
which is effectively synonym for "kio_mount_helper -e". Unfortunately this
code path has not been fixed to support HAL (it requires fixing kdeeject).

So long term fix is to fix kdeeject. Alternative - or short term fix - is to
change "Safely remove" to call "kio_mount_helper -u". Copy it under
~/.kde/share/apps/konqueror/servicemenus and change "-s" into "-u":

{pts/0}%
diff -u /usr/share/apps/konqueror/servicemenus/media_safelyremove.desktop
~/.kde/share/apps/konqueror/servicemenus/media_safelyremove.desktop
--- /usr/share/apps/konqueror/servicemenus/media_safelyremove.desktop  
2006-06-21 17:00:20.000000000 +0400
+++ /home/bor/.kde/share/apps/konqueror/servicemenus/media_safelyremove.desktop2006-07-04
17:21:12.000000000 +0400
@@ -59,5 +59,5 @@
 Name[vi]=G? ra An toàn
 Name[zh_CN]=????
 Name[zh_TW]=?????
-Exec=kio_media_mounthelper -s %u
+Exec=kio_media_mounthelper -u %u

PS: Of course this problem occurs with HAL only.
Comment 4 Stephan Kulow 2007-05-08 18:39:31 UTC
fixed in KDE SVN. Someone added a workaround for 116209, which regressed that
Comment 5 Sebastian Krämer 2007-08-27 22:15:03 UTC
The gentoo bugzilla states it's supposed to be fixed in kioslaves-3.5.7. I just installed that a few days ago (on my Gentoo system) and I'm experiencing the same thing.
(Besides, for an ejectable medium, a dvd, it only offers "safely remove" where ejecting was actually possible. A little twisted..)