[arch-general] umount usb stick via udev

Sergey Manucharian ingeniware at gmail.com
Thu Oct 7 14:00:07 EDT 2010

Hi Benjamin,

Excerpts from Benjamin Sambale's message of Thu, 07 Oct 2010 19:08

>   Am 07.10.2010 17:32, schrieb Thomas Bächler:
> > Am 07.10.2010 17:18, schrieb Benjamin Sambale:
> >> I managed to mount my usb stick automatically via udev rules (hal
> >> isn't running). However, if I unplug the stick while thunar is
> >> open, the umount command hangs. After that I can't even reboot.
> >> But if I close thunar before unplugging the stick umount works
> >> fine.
> > Automatic umounting is neither intended nor safe. The reason is
> > obvious: To guarantee data consistency and proper functionality of
> > the operating system, the file system has to be removed _before_
> > the underlying device is. This obviously cannot happen
> > automatically.
> >
> Thanks for the reply. I know that unplugging the stick before
> umounting is kind of "unsafe". However, I never had problems with
> this and of course I do not unplug while files are get written. By
> the way the udev page on archwiki also suggests umounting in a udev
> rule. Finally, as I wrote before everything works if I close thunar
> before. And using hal it works in all cases anyway.
> So, I'm still grateful for further hints.

Thunar depends on HAL, so probably it is not correct to use it without
HAL, and the following is from http://thunar.xfce.org "Use the correct HAL property to determine
whether a given volume or device requires eject"


More information about the arch-general mailing list