Projects / hdparm

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".

Tags
Licenses
Operating Systems
Implementation

Recent releases

  •  18 Nov 2012 19:30

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

    •  29 Sep 2012 12:21

      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 12:44

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

        •  08 Jan 2012 19:13

          Release Notes: The wiping script wiper.sh 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.

          •  25 Jan 2011 10:20

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

            Recent comments

            30 Sep 2012 07:56 ErwanVelu

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

            14 Jul 2009 06:06 AKS91

            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

            ../if4.bin:
            HDIO_GETGEO failed: Inappropriate ioctl for device


            Thanks
            Aks

            14 Jul 2009 04:15 AKS91

            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.

            Thanks
            AKS

            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.

            -ml

            Screenshot

            Project Spotlight

            OpenStack4j

            A Fluent OpenStack client API for Java.

            Screenshot

            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.