Hdparm, a command that will help us reduce the sound of our hard drive

HDD disk

Although we have changed the year, the truth is that many computers will not change components or be more powerful. On old or antique computers, traditional hard drives tend to be quite noisy when they work, that is, they create noise throughout the use of the computer. This can be very annoying and in some cases can be fixed with an Ubuntu terminal.

Both Ubuntu and other Gnu / Linux distributions have a program that allows you to control the speed of the disks that rotate inside the hard disk and with this we can reduce the noise created by friction. This method is simple and only works if we have a traditional hard disk, this is the HDD, if we have a disk with SSD technology, the trick does not work.

Hdparm will reduce the speed of disks

To make it work hdparm first we have to open a terminal and write the following:

sudo hdparm -I /dev/sda |grep acoustic

After executing this command, the terminal will tell us the speed at which the disks rotate and the recommended speed. recommended speed it is the one that will have to be noted as we will use it later to change it permanently. Now, we are going to change the value of that speed permanently, for this we write in the terminal

sudo hdparm -M ( VALOR RECOMENDADO) /dev/sda

Sometimes these changes are not permanent but when we turn off the computer, the configuration is lost, in that case we have to write the last command in the rc.local file of our Ubuntu, so the new configuration will be loaded with each system startup.

Although it seems somewhat futuristic, the truth is that hdparm is an application that significantly improves the use of traditional hard drives. In addition, Hdparm allows us to do other things besides reducing the speed of the disks. If you want to know more, you will find information on the man page. In any case, do not forget that this only applies to HDD disks, in no case does it work with SSD disks.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Gerardo Enrique Herrera Gallardo said

    My hard drive has not made sound for 5 years (and my computer is 6 years old now)

  2.   Memorandum said

    When I run the first command sudo hdparm -I / dev / sda | grep acoustic it doesn't show me anything :)
    I am using Linux Mint 17.3 Pink, based on Ubuntu 14.04.3 LTS.

  3.   Joaquín García said

    Hello, first of all thanks to both of you for reading us. On the one hand, to say that with the previous words I do not mean that all hard drives make noise because they are old, but that over time, drives tend to make more noise but it does not have to be like that in all cases.
    Regarding the use or not, I have tried it both with the normal hard disk and with an ssd (I have copied and pasted in terminal) and it works although on the hard disk ssd does not say anything, what kind of hard disk do you have?
    Greetings and thanks 😉

  4.   alice nicole saint said

    I put the first command and you do not appear anything 🙁

    1.    Daniel Rubiano said

      Yes, I didn't get any information either, but….http://blog.desdelinux.net/medir-rendimiento-de-hdd-hdparm/… .This link helped me to get to know it simply.
      Greetings.