[ltp] "hdparm -y /dev/hdc" doesn't work?

Felix E. Klee linux-thinkpad@linux-thinkpad.org
Sun, 24 Jun 2007 09:35:18 +0200


Does anyone know why "hdparm -y /dev/hdc" doesn't work with the Ultrabay
HDD in my T41?

# hdparm -y /dev/hdc

  /dev/hdc:
   issuing standby command
# hdparm -C /dev/hdc

  /dev/hdc:
   drive state is:  active/idle

Of course, when I issue "hdparm -y /dev/hdc", I do *not* have mounted
any partition on "/dev/hdc".  Otherwise it would be no surprise that it
doesn't work.

What works fine is:

* "hdparm -Y /dev/hdc", but then I have to reboot the machine to spin it
  up again.

* "hdparm -S 1 /dev/hdc".  Actually, specifying "-S" with a decent
  timeout is a nice solution.  Still, I'd like to know why the "-y"
  option fails.

Details:

# hdparm -I /dev/hdc

  /dev/hdc:
  
  ATA device, with non-removable media
  	Model Number:       HTS548040M9AT00                         
  	Serial Number:      MRL202L2JL8WPB
  	Firmware Revision:  MG2OA5HA
  Standards:
  	Used: ATA/ATAPI-6 T13 1410D revision 3a 
  	Supported: 6 5 4 3 
  Configuration:
  	Logical		max	current
  	cylinders	16383	16383
  	heads		16	16
  	sectors/track	63	63
  	--
  	CHS current addressable sectors:   16514064
  	LBA    user addressable sectors:   78140160
  	device size with M = 1024*1024:       38154 MBytes
  	device size with M = 1000*1000:       40007 MBytes (40 GB)
  Capabilities:
  	LBA, IORDY(can be disabled)
  	bytes avail on r/w long: 4	Queue depth: 1
  	Standby timer values: spec'd by Vendor, no device specific minimum
  	R/W multiple sector transfer: Max = 16	Current = 0
  	Advanced power management level: 128 (0x80)
  	Recommended acoustic management value: 128, current value: 254
  	DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5 
  	     Cycle time: min=120ns recommended=120ns
  	PIO: pio0 pio1 pio2 pio3 pio4 
  	     Cycle time: no flow control=240ns  IORDY flow control=120ns
  Commands/features:
  	Enabled	Supported:
  	   *	NOP cmd
  	   *	READ BUFFER cmd
  	   *	WRITE BUFFER cmd
  	   *	Host Protected Area feature set
  	   *	Look-ahead
  	   *	Write cache
  	   *	Power Management feature set
  	   *	Security Mode feature set
  	   *	SMART feature set
  	   *	Mandatory FLUSH CACHE command 
  	   *	Device Configuration Overlay feature set 
  		Automatic Acoustic Management feature set 
  		SET MAX security extension
  		Address Offset Reserved Area Boot
  	   *	SET FEATURES subcommand required to spinup after power up
  		Power-Up In Standby feature set
  	   *	Advanced Power Management feature set
  	   *	SMART self-test 
  	   *	SMART error logging 
  Security: 
  	Master password revision code = 65534
  		supported
  		enabled
  	not	locked
  		frozen
  	not	expired: security count
  	not	supported: enhanced erase
  	Security level maximum
  	26min for SECURITY ERASE UNIT. 
  HW reset results:
  	CBLID- above Vih
  	Device num = 0 determined by the jumper
  Checksum: correct
# uname -a
  Linux t41 2.6.14.4 #3 Sat Mar 25 11:14:41 CET 2006 i686 unknown unknown GNU/Linux
# lsmod|grep -i lt_hotswap
  [not found]

-- 
Felix E. Klee
Jabber/Google Talk: feklee@jabber.org, SIP: 9779619@sipgate.de
ICQ: 158124695, Yahoo!: feklee, AIM: felix.klee@inka.de
Gizmo: felixklee, Skype: felix.klee--}-<<mixed>>