Acoustic management of SATA drive via hdparm
Hi,
When I try to do:
hdparm -M128 /dev/sda
I get:
/dev/sda:
setting acoustic management to 128
HDIO_SET_ACOUSTIC failed: Inappropriate ioctl for device
HDIO_GET_ACOUSTIC failed: Inappropriate ioctl for device
Any idea how I can get around the above problem? As indicated by hdparm -I
my drive supports acoustic management:
/dev/sda:
ATA device, with non-removable media
Â* Â* Â* Â* Model Number: Â* Â* Â* Maxtor 6V250F0
Â* Â* Â* Â* Serial Number: Â* Â* Â*V507LKQG
Â* Â* Â* Â* Firmware Revision: Â*VA111630
Standards:
Â* Â* Â* Â* Used: ATA/ATAPI-7 T13 1532D revision 0
Â* Â* Â* Â* Supported: 7 6 5 4
Configuration:
Â* Â* Â* Â* Logical Â* Â* Â* Â* max Â* Â* current
Â* Â* Â* Â* cylinders Â* Â* Â* 16383 Â* 16383
Â* Â* Â* Â* heads Â* Â* Â* Â* Â* 16 Â* Â* Â*16
Â* Â* Â* Â* sectors/track Â* 63 Â* Â* Â*63
Â* Â* Â* Â* --
Â* Â* Â* Â* CHS current addressable sectors: Â* 16514064
Â* Â* Â* Â* LBA Â* Â*user addressable sectors: Â*268435455
Â* Â* Â* Â* LBA48 Â*user addressable sectors: Â*490234752
Â* Â* Â* Â* device size with M = 1024*1024: Â* Â* Â*239372 MBytes
Â* Â* Â* Â* device size with M = 1000*1000: Â* Â* Â*251000 MBytes (251 GB)
Capabilities:
Â* Â* Â* Â* LBA, IORDY(can be disabled)
Â* Â* Â* Â* Queue depth: 32
Â* Â* Â* Â* Standby timer values: spec'd by Standard, no device specific minimum
Â* Â* Â* Â* R/W multiple sector transfer: Max = 16 Â*Current = 16
Â* Â* Â* Â* Advanced power management level: unknown setting (0x0000)
Â* Â* Â* Â* Recommended acoustic management value: 192, current value: 254
Â* Â* Â* Â* DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6
Â* Â* Â* Â* Â* Â* Â*Cycle time: min=120ns recommended=120ns
Â* Â* Â* Â* PIO: pio0 pio1 pio2 pio3 pio4
Â* Â* Â* Â* Â* Â* Â*Cycle time: no flow control=120ns Â*IORDY flow control=120ns
Commands/features:
Â* Â* Â* Â* Enabled Supported:
Â* Â* Â* Â* Â* Â** Â* Â*SMART feature set
Â* Â* Â* Â* Â* Â* Â* Â* Security Mode feature set
Â* Â* Â* Â* Â* Â** Â* Â*Power Management feature set
Â* Â* Â* Â* Â* Â** Â* Â*Write cache
Â* Â* Â* Â* Â* Â** Â* Â*Look-ahead
Â* Â* Â* Â* Â* Â** Â* Â*Host Protected Area feature set
Â* Â* Â* Â* Â* Â** Â* Â*WRITE_VERIFY command
Â* Â* Â* Â* Â* Â** Â* Â*WRITE_BUFFER command
Â* Â* Â* Â* Â* Â** Â* Â*READ_BUFFER command
Â* Â* Â* Â* Â* Â** Â* Â*NOP cmd
Â* Â* Â* Â* Â* Â** Â* Â*DOWNLOAD_MICROCODE
Â* Â* Â* Â* Â* Â* Â* Â* Advanced Power Management feature set
Â* Â* Â* Â* Â* Â* Â* Â* SET_MAX security extension
Â* Â* Â* Â* Â* Â** Â* Â*Automatic Acoustic Management feature set
Â* Â* Â* Â* Â* Â** Â* Â*48-bit Address feature set
Â* Â* Â* Â* Â* Â** Â* Â*Device Configuration Overlay feature set
Â* Â* Â* Â* Â* Â** Â* Â*Mandatory FLUSH_CACHE
Â* Â* Â* Â* Â* Â** Â* Â*FLUSH_CACHE_EXT
Â* Â* Â* Â* Â* Â** Â* Â*SMART error logging
Â* Â* Â* Â* Â* Â** Â* Â*SMART self-test
Â* Â* Â* Â* Â* Â* Â* Â* Media Card Pass-Through
Â* Â* Â* Â* Â* Â** Â* Â*General Purpose Logging feature set
Â* Â* Â* Â* Â* Â** Â* Â*WRITE_{DMA|MULTIPLE}_FUA_EXT
Â* Â* Â* Â* Â* Â** Â* Â*64-bit World wide name
Â* Â* Â* Â* Â* Â** Â* Â*URG for READ_STREAM[_DMA]_EXT
Â* Â* Â* Â* Â* Â** Â* Â*URG for WRITE_STREAM[_DMA]_EXT
Â* Â* Â* Â* Â* Â** Â* Â*SATA-I signaling speed (1.5Gb/s)
Â* Â* Â* Â* Â* Â** Â* Â*SATA-II signaling speed (3.0Gb/s)
Â* Â* Â* Â* Â* Â** Â* Â*Native Command Queueing (NCQ)
Â* Â* Â* Â* Â* Â** Â* Â*Host-initiated interface power management
Â* Â* Â* Â* Â* Â** Â* Â*Software settings preservation
Â* Â* Â* Â* Â* Â** Â* Â*SMART Command Transport (SCT) feature set
Â* Â* Â* Â* Â* Â** Â* Â*SCT Data Tables (AC5)
Security:
Â* Â* Â* Â* Master password revision code = 65534
Â* Â* Â* Â* Â* Â* Â* Â* supported
Â* Â* Â* Â* not Â* Â* enabled
Â* Â* Â* Â* not Â* Â* locked
Â* Â* Â* Â* not Â* Â* frozen
Â* Â* Â* Â* not Â* Â* expired: security count
Â* Â* Â* Â* not Â* Â* supported: enhanced erase
Checksum: correct
Thanks!
Re: Acoustic management of SATA drive via hdparm
I forgot to mention that I am running openSUSE 10.2.
Re: Acoustic management of SATA drive via hdparm
Alexander Filep wrote:[color=blue]
> Hi,
>
> When I try to do:
>
> hdparm -M128 /dev/sda
>
> I get:
>
> /dev/sda:
> setting acoustic management to 128
> HDIO_SET_ACOUSTIC failed: Inappropriate ioctl for device
> HDIO_GET_ACOUSTIC failed: Inappropriate ioctl for device[/color]
Did you run that command as root or a regular user? I suspect it'll
only work for root.
Re: Acoustic management of SATA drive via hdparm
John-Paul Stewart wrote:
[color=blue]
> Did you run that command as root or a regular user? I suspect it'll
> only work for root.[/color]
Yes, I ran it as root.
Re: Acoustic management of SATA drive via hdparm
[snip][color=blue]
>
> Yes, I ran it as root.[/color]
Did you get the same results if you used the "recommended" value of 192? I
saw that in the information you gave about the drive.
Rodney
Re: Acoustic management of SATA drive via hdparm
Rodney wrote:
[color=blue]
> [snip][color=green]
>>
>> Yes, I ran it as root.[/color]
>
> Did you get the same results if you used the "recommended" value of 192? I
> saw that in the information you gave about the drive.
>
> Rodney[/color]
Yes, tried that with the same result. I've done a little more reading over
the past couple of days and, as far as I can tell, this feature is not yet
supported with SATA drives.
Re: Acoustic management of SATA drive via hdparm
Alexander Filep wrote:
[color=blue]
> Yes, tried that with the same result. I've done a little more reading over
> the past couple of days and, as far as I can tell, this feature is not yet
> supported with SATA drives.[/color]
It works here with hdparm v6.9 and kernel 2.6.21 (surely with 2.6.20
too, not sure about 2.6.18):
# hdparm -M128 /dev/sda
/dev/sda:
setting acoustic management to 128
HDIO_GET_ACOUSTIC failed: Inappropriate ioctl for device
Although the HDIO_GET_ACOUSTIC failed, I can hear the difference and I
can see it in hdparm -I output.
That's a real SATA drive, not a libata PATA drive.
Regards...
Michael