From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 14 09:40:14 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 50AA616A4D5 for ; Tue, 14 Aug 2007 09:40:14 +0000 (UTC) (envelope-from sven-freebsd@hazejager.nl) Received: from chainsoftware.nl (hazejager.demon.nl [83.160.136.100]) by mx1.freebsd.org (Postfix) with ESMTP id 7F85913C4A6 for ; Tue, 14 Aug 2007 09:40:13 +0000 (UTC) (envelope-from sven-freebsd@hazejager.nl) Received: from chainsoftware.nl (localhost [127.0.0.1]) by chainsoftware.nl (8.13.8/8.13.8) with ESMTP id l7E9SJD9033217 for ; Tue, 14 Aug 2007 11:28:19 +0200 (CEST) (envelope-from sven-freebsd@hazejager.nl) Received: from localhost (sven@localhost) by chainsoftware.nl (8.13.8/8.13.8/Submit) with ESMTP id l7E9SJk5033214 for ; Tue, 14 Aug 2007 11:28:19 +0200 (CEST) (envelope-from sven-freebsd@hazejager.nl) X-Authentication-Warning: proxy.chain.loc: sven owned process doing -bs Date: Tue, 14 Aug 2007 11:28:19 +0200 (CEST) From: Sven Hazejager To: freebsd-hackers@freebsd.org Message-ID: <07081411265549.-1077952816@somehost.domainz.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Status: No, hits=-3.977 tests=ALL_TRUSTED,BAYES_00 X-Scanned-By: MIMEDefang 2.56 on 192.168.0.1 Subject: 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 09:40:14 -0000 Hi all, 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? Thanks, Sven