Comment 20 for bug 222041

Revision history for this message
Mitch Deoudes (mitch-houseofpain) wrote :

Regarding the patch in <a href="https://bugs.launchpad.net/bugs/217550">Bug #217550</a> (which has now been marked a dupe of this one) - the relevant command is given as:

     dbus-send --system --dest=org.freedesktop.Hal "$BLOCK_UDI" org.freedesktop.Hal.Device.Volume.Eject array:string:""

where BLOCK_UDI is gotten from here:

     dcop kded mediamanager properties "/dev/sdd2"

(replace the device file with whatever's appropriate). For some reason, this produces no results from the command line on my system (up-to-date hardy) - no unmount, no eject, nada. Oddly, right-click->Safely-Remove *does* unmount, but does not eject. (This is with the patched kdeeject from Bug #217550.)

This is with an ipod, btw. So the current steps to eject for me are: "Disconnect" in Amarok (which supposedly calls kdeeject, but still doesn't seem to unmount), "Safely Remove" from desktop, then "sudo eject /dev/sdd2" from the command line in order to get "Safe to Disconnect" screen from ipod. (Just unplugging it without the eject causes it the ipod db to become corrupt in some way.) Seems pretty onerous, just for an ipod.