Re: spin down a USB-attached disk?

2013-09-24 Thread Anatoly
В Tue, 24 Sep 2013 10:01:53 +0200
Gary Jennejohn  пишет:

Can't test it now on latest versions of FreeBSD, will test as it will
be possible, but on 5.x, 6.x and 7.x I always used like:
camcontrol eject 0:0:1
to "power down" sdcard slot on card readers before physically
ejecting sdcard. Don't know if it really shuts down the power to sdcard,
but LED goes off, and I think this is anyway safer.
So on those systems camcontrol worked trough USB stack.

> On Tue, 24 Sep 2013 00:26:01 +0400
> Anatoly  wrote:
> 
> > By the way, what exactly goes wrong with camcontrol?
> 
> I answered that question once already but forgot to Cc the list.
> 
> 
> I gave that a whirl but it didn't work.  Seems like camcontrol isn't
> able to send raw commands to the umass disk through the USB stack.
> 
> Here's the output:
> 
> camcontrol idle da0 -t 5
> (pass4:umass-sim0:0:0:0): IDLE. ACB: e3 00 00 00 00 40 00 00 00 00 01
> 00 (pass4:umass-sim0:0:0:0): CAM status: Function Not Available
> 
> The disk doesn't spin down.
> <\quote>
> 

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Re: spin down a USB-attached disk?

2013-09-24 Thread Gary Jennejohn
On Tue, 24 Sep 2013 00:26:01 +0400
Anatoly  wrote:

> By the way, what exactly goes wrong with camcontrol?

I answered that question once already but forgot to Cc the list.


I gave that a whirl but it didn't work.  Seems like camcontrol isn't
able to send raw commands to the umass disk through the USB stack.

Here's the output:

camcontrol idle da0 -t 5
(pass4:umass-sim0:0:0:0): IDLE. ACB: e3 00 00 00 00 40 00 00 00 00 01 00
(pass4:umass-sim0:0:0:0): CAM status: Function Not Available

The disk doesn't spin down.
<\quote>

-- 
Gary Jennejohn
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: spin down a USB-attached disk?

2013-09-23 Thread Anatoly
By the way, what exactly goes wrong with camcontrol?
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: spin down a USB-attached disk?

2013-09-23 Thread Anatoly
В 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.
> 
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Re: spin down a USB-attached disk?

2013-09-17 Thread Warren Block

On Tue, 17 Sep 2013, Gary Jennejohn wrote:


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.


Can't camcontrol do the same thing, regardless of how the disk is 
attached?

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


spin down a USB-attached disk?

2013-09-17 Thread Gary Jennejohn
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.

-- 
Gary Jennejohn
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"