How to stop attached USB device / send IRP_MN_REMOVE_DEVICE?
Greg Rivers
gcr+freebsd-usb at tharned.org
Fri Aug 10 04:32:24 UTC 2007
On Thu, 9 Aug 2007, Sven Hazejager wrote:
> Is there a tool under FreeBSD 6.2 that properly stops a USB device,
> equivalent to Windows XPs Safely Remove Hardware? I noticed that Windows
> sends a IRP_MN_REMOVE_DEVICE command, after which my LaCie external HDD
> spins down. I would like to do this under FreeBSD too.
>
> So, the question really is: how to send a IRP_MN_REMOVE_DEVICE command?
>
See camcontrol(8). `camcontrol eject` should do the trick in this case,
but only if the device supports it. `camcontrol stop` works to spin down
many hard drives, but in my experience is more likely to work on firewire
than USB drives.
--
Greg
More information about the freebsd-usb
mailing list