[Pkg-utopia-maintainers] Bug#398809: hal: doesnt eject removable USB devices on unmount

Xavier Bestel xavier.bestel at free.fr
Sun Apr 6 10:01:05 UTC 2008


Hi Sam,

On jeu, 2008-04-03 at 17:30 +0100, Sam Morris wrote:
> Hi Xavier,
> 
> Do you know if the current version of HAL still has this problem? I
> suspect it doesn't because for quite some time now, when ejecting a USB
> disk in Nautilus, there has been a pop-up saying "don't remove the
> device yet, it's not safe!" that goes away once data has been flushed to
> the device.

That's not the same thing. The code behind this popup ensures all data
has been properly synced to the usb drive before unmounting it.
What's missing is a command to poweroff the usb port afterwards.

> Do you have any references about the correct way to safely remove USB
> devices on Linux?

eject /dev/sd? used to work, but it doesn't anymore.
echo 0 >/sys/bus/usb/devices/???/power/state used to work too, but
apparently it has been removed from recent kernels, and I don't know
what's the new way of doing it.

I'll research a bit more about that.

	Xav







More information about the Pkg-utopia-maintainers mailing list