Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Aug 2007 04:17:36 -0700
From:      soralx@cydem.org
To:        sven-freebsd@hazejager.nl
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: How to stop attached USB device / send IRP_MN_REMOVE_DEVICE?
Message-ID:  <20070814041736.4c16f41e@soralx>
In-Reply-To: <20070814030833.49a7a030@soralx>
References:  <07081411265549.-1077952816@somehost.domainz.com> <20070814030833.49a7a030@soralx>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 14 Aug 2007 03:08:33 -0700
soralx@cydem.org 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. Same applies to any USB stick: the light
> > goes out on the stick. I would like to do this under FreeBSD too.
> > camcontrol eject or stop don't do anything.
> > 
> > So, the question really is: how to send a IRP_MN_REMOVE_DEVICE
> > command?
> 
> `camcontrol da? stop` seemed to do the trick before (5.2.1-R, AFAIR),
> but now I'm not sure (looks like it doesn't)

sorry, I meant to say that `camcontrol da? stop` does not power down
the device anymore; nonetheless, it is probably safe to disconnect it
 
> tested with SCSI hard drives and Adaptec 29160
> 
> > Sven
> 
> [SorAlx]  ridin' VS1400

[SorAlx]  ridin' VS1400



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