Projects / hdparm


hdparm is a Linux shell utility for viewing and manipulating various IDE drive and driver parameters. Most drives can benefit from improved performance using a command similar to "hdparm -qm8 -qu1 -qc1 -qd1 /dev/hda".

Operating Systems

RSS Recent releases

  •  18 Nov 2012 21:07

Release Notes: The order of flag execution was rearranged so that the idle/standby/sleep "now" flags are executed last.

Release Notes: Use of HDIO_GETGEO_BIG is now avoided, as it is deprecated in newer kernels. Secure erase timeouts now have bigger padding. SCT identify information has been improved. The ordering of the "-S" and "-y" flags has been fixed. The block-count of security commands sent via SAT (sgio) is now set to 1. FIGETBSZ is now used to determine the filesystem block size for fibmap. Sector dumps are now forced to the le16 output format. Many other minor improvements, bugfixes, and documentation improvements have been made.

  •  04 Feb 2012 16:08

Release Notes: A new "-R" option has been added to control the Read-Write-Verify feature.

  •  08 Jan 2012 20:01

Release Notes: The wiping script was updated to allow all SCSI_DISK major numbers. The handing of very long SECURITY-ERASE times was updated. The "-J" flag was added for wdidle3 set/get.

Release Notes: RAID 1 start_lba values are now handled. The "--fibmap" command is now terminated when start_lba is indeterminate. was modified for an issue with HFS+ file systems and to avoid using an obsolete command.

RSS Recent comments

30 Sep 2012 07:56 Avatar ErwanVelu Thumbs up

Obviously, THE reference tool under Linux to manage ATA storage devices.

14 Jul 2009 06:06 AKS91 Thumbs up

Hi Guys
I am trying to use hdparam9.9 on kernel 2.6.26 and i am getting folllowing error message, I am trying to update SSD firmware. please provide support.
[root@localhost hdparm-9.9]# ./hdparm --fwdownload --yes-i_know_what_i_am_doing ../if4.bin /dev/sdb

HDIO_GETGEO failed: Inappropriate ioctl for device


14 Jul 2009 04:15 AKS91 Thumbs up

HI Guys,

I want to implement firmware download support for SSD device.
I added some changes in libata-scsi.c ata_cmd_ioctl. but I am getting time out error when i try to download initial firmware , firmware size is 64k.

I checked in old version of hdparam also support --firmware download.

I need help to solve time out error message, please provides some inputs or i can use any specific version of hdparam for firmware download.


22 Jun 2009 04:05 rkononov

I'm not sure where you want the bugs submitted...

Compiled from v9.15 sources, hdparm crashes at hdparm.c, line 1826, when get_identify_data() returns NULL. Checking that id!=NULL is needed.

26 Dec 2008 04:29 ideguy

Re: Inappropriate ioctl for device


> $ sudo /sbin/hdparm -c1 -d1 /dev/sda


> /dev/sda:

> setting 32-bit IO_support flag to 1

> HDIO_SET_32BIT failed: Invalid argument


> setting using_dma to 1 (on)

> HDIO_SET_DMA failed: Inappropriate ioctl

> for device

> IO_support = 0 (default)

> HDIO_GET_DMA failed: Inappropriate ioctl

> for device


libata does not have a way to control DMA or 32bit PIO settings. So the command will fail. Normal. Ignore it.

Libata will always use DMA if possible, so no need for either setting.



Project Spotlight


A genealogy records transcription editor.


Project Spotlight

Google Map GPS Cell Phone Tracker

Web server and phone client applications for periodically tracking android, iOS, Windows Phone, and Jave ME cellphones.