From owner-freebsd-usb@FreeBSD.ORG Mon Sep 23 11:50:39 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 202A5EFF for ; Mon, 23 Sep 2013 11:50:39 +0000 (UTC) (envelope-from anatoly@kazanfieldhockey.ru) Received: from kazanfieldhockey.ru (kazanfieldhockey.ru [78.138.152.250]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 923DA25CB for ; Mon, 23 Sep 2013 11:50:38 +0000 (UTC) Received: from asd.localdomain (host-175-22.static.telecet.ru [87.117.175.22]) (authenticated bits=0) by kazanfieldhockey.ru (8.14.3/8.14.3) with ESMTP id r8NBhMU9053045 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 23 Sep 2013 15:43:27 +0400 (MSK) (envelope-from anatoly@kazanfieldhockey.ru) Date: Mon, 23 Sep 2013 15:44:06 +0400 From: Anatoly To: freebsd-usb@freebsd.org Subject: Re: spin down a USB-attached disk? Message-ID: <20130923154406.5419293b@asd.localdomain> In-Reply-To: <20130917185047.52c63e00@ernst.home> References: <20130917185047.52c63e00@ernst.home> X-Mailer: Claws Mail 3.7.5 (GTK+ 2.18.7; i386-portbld-freebsd7.3) Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (kazanfieldhockey.ru [192.168.13.2]); Mon, 23 Sep 2013 15:43:27 +0400 (MSK) X-Drweb-SpamState: no X-Drweb-SpamScore: 0 X-Antivirus: Dr.Web (R) for Unix mail servers drweb plugin ver.5.0.1.0 X-Antivirus-Code: 0x100000 Cc: gljennjohn@gmail.com X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Sep 2013 11:50:39 -0000 В Tue, 17 Sep 2013 18:50:47 +0200 Gary Jennejohn пишет: Have you tried to suspend that usb device? I can't recall now how exactly this may be done on 8+. It is something like: usbconfig -d 0.2 suspend you can read man usbconfig about it. On 7.x this may be done with upower utility that someone has posted on this mailing list before (you may search list for it) upower /dev/usb0 2 suspend I investigated this because one day I've got new 32G pendrive with ram cache on it. Only way to flush the cache was the above command. > I have a possibly dumb question. Is it possible to send a spindown > command through USB to a SATA disk attached as umass? > > I like to spin down my disks before turning them off and with an > ad-disk it's quite simple using camcontrol. > > I haven't been able figure how to do it through USB. >