Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Aug 2007 22:34:16 -0500 (CDT)
From:      Greg Rivers <gcr+freebsd-usb@tharned.org>
To:        Sven Hazejager <sven-freebsd@hazejager.nl>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: How to stop attached USB device / send IRP_MN_REMOVE_DEVICE?
Message-ID:  <20070809222720.T950@nc8000.tharned.org>
In-Reply-To: <07080923185142.-1077952816@somehost.domainz.com>
References:  <07080923185142.-1077952816@somehost.domainz.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070809222720.T950>