From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 14 11:17:37 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 076AE16A419 for ; Tue, 14 Aug 2007 11:17:37 +0000 (UTC) (envelope-from soralx@cydem.org) Received: from pd2mo1so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.freebsd.org (Postfix) with ESMTP id DB76D13C45A for ; Tue, 14 Aug 2007 11:17:36 +0000 (UTC) (envelope-from soralx@cydem.org) Received: from pd3mr3so.prod.shaw.ca (pd3mr3so-qfe3.prod.shaw.ca [10.0.141.179]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JMR006U2GPCDD80@l-daemon> for freebsd-hackers@freebsd.org; Tue, 14 Aug 2007 05:17:36 -0600 (MDT) Received: from pn2ml2so.prod.shaw.ca ([10.0.121.146]) by pd3mr3so.prod.shaw.ca (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JMR00K3OGPC3Q60@pd3mr3so.prod.shaw.ca> for freebsd-hackers@freebsd.org; Tue, 14 Aug 2007 05:17:36 -0600 (MDT) Received: from soralx ([24.87.3.133]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JMR002S4GPB8YM1@l-daemon> for freebsd-hackers@freebsd.org; Tue, 14 Aug 2007 05:17:35 -0600 (MDT) Date: Tue, 14 Aug 2007 04:17:36 -0700 From: soralx@cydem.org In-reply-to: <20070814030833.49a7a030@soralx> To: sven-freebsd@hazejager.nl Message-id: <20070814041736.4c16f41e@soralx> MIME-version: 1.0 X-Mailer: Claws Mail 2.10.0 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit References: <07081411265549.-1077952816@somehost.domainz.com> <20070814030833.49a7a030@soralx> Cc: freebsd-hackers@freebsd.org Subject: Re: How to stop attached USB device / send IRP_MN_REMOVE_DEVICE? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Aug 2007 11:17:37 -0000 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