Re: rescan usb hd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, 2009-09-23 at 10:00 +0100, Stewart Williams wrote:
> <snip>

> No I definitely mean't "sdparm", it's available from RPMForge and it's  
> different from "hdparm".
> 
> [stewart@##### ~]$ whatis sdparm
> sdparm               (8)  - access SCSI modes pages; read VPD pages;  
> send simple SCSI commands
> sdparm              (rpm) - List or change SCSI disk parameters
> [stewart@##### ~]$ whatis hdparm
> hdparm               (8)  - get/set hard disk parameters
> hdparm              (rpm) - A utility for displaying and/or setting  
> hard disk parameters.
> 
> [stewart@##### ~]$ sudo yum whatprovides "*/sdparm"
> 
> ...
> 
> sdparm-1.03-1.el5.rf.x86_64 : List or change SCSI disk parameters
> Matched from:
> Filename    : /usr/bin/sdparm
> 
> ...
> 
> [stewart@##### ~]$ sudo /usr/bin/sdparm -a /dev/sde
> Password:
>      /dev/sde: Maxtor    OneTouch          0125
> Power condition mode page:
>    IDLE        0  [cha: n, def:  0, sav:  0]
>    STANDBY     0  [cha: y, def:  1, sav:  0]
>    ICT         0  [cha: n, def:  0, sav:  0]
>    SCT       4294967286  [cha: y, def:9000, sav:4294967286]
> 
> The 'STANDBY' condition is what were interested in.

I installed sdparm on 5.3 and got this.

# sdparm -a /dev/sdc
    /dev/sdc: Toshiba   USB2.0 Drive R00  1.43
Read write error recovery mode page:
>>> warning: mode page seems malformed
   The page number field should be 0x01, but is 0x05; try '--flexible'

- lots of occurrences like that last line and a whole bunch of other
stuff.

So I

# sdparm -a --flexible /dev/sdc
    /dev/sdc: Toshiba   USB2.0 Drive R00  1.43
Read write error recovery mode page:
>>> warning: mode page seems malformed

and it looks better. The lines of interest seem to be

Power condition - old version mode page:
>>> warning: mode page seems malformed
   The page number field should be 0x0d, but is 0x05
  IDLE-OLD    0  [cha: n, def:  0, sav:  0]
  STBY-OLD    0  [cha: n, def:  0, sav:  0]
  ICT-OLD   272564736  [cha: y, def:272564736, sav:272564736]
  SCT-OLD   1073676288  [cha: y, def:1073676288, sav:1073676288]
Power condition mode page:
>>> warning: mode page seems malformed
   The page number field should be 0x1a, but is 0x05
  IDLE        0  [cha: n, def:  0, sav:  0]
  STANDBY     0  [cha: n, def:  0, sav:  0]
  ICT       272564736  [cha: y, def:272564736, sav:272564736]
  SCT       1073676288  [cha: y, def:1073676288, sav:1073676288]

The 4.7 results are quite similar.

> <snip sig stuff>

-- 
Bill

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux