[Thunar-dev] 'Eject' USB drives

Tino Keitel tino.keitel+xfce at tikei.de
Mon Oct 15 07:58:31 CEST 2007

On Sun, Oct 14, 2007 at 15:49:57 -0700, Brian J. Tarricone wrote:
> On Sun, 14 Oct 2007 23:50:21 +0200 Stephan Arts wrote:
> > I just noticed my cellphone (the sony-ericsson walkman phone) can
> > detect whether or not it is mounted to the computer. And when it has
> > been ejected (using the eject cli command) it tells me I can safely
> > remove it.
> > 
> > It does not do so when I just unmount it (from cli, thunar or even
> > windows at work), is it possible to make thunar 'eject' usb-drives?
> I'm pretty sure Thunar doesn't ever eject a device, even when its HAL
> 'storage.requires_eject' property is true, since, after you eject it,
> you can't remount it without an unplug/replug.  It'd be really nice for
> Thunar to include an 'Eject' option for devices that claim to require
> it, but I feel like there was discussion about this, and Benny didn't
> want it (though I could be thinking about something else).

Older versions (e.g. the latest 4.4.1 release) can only eject optical

A more advanced eject option is in SVN since April, see
http://bugzilla.xfce.org/show_bug.cgi?id=3119 for more information.

A similar patch for 4.4.1 can be found here:


All you have to do is to create a HAL fdi file that adds the
requires_eject HAL property to the device that you want to eject.


More information about the Thunar-dev mailing list