Solution to the abnormal sound during hard disk reading and writing in Ubuntu

Source: Internet
Author: User

Solution to the abnormal sound during hard disk reading and writing in Ubuntu

Compared with your laptop, Ubuntu Linux does sound much better than Windows. Of course, when reading and writing data in Windows, the sound is slightly lower.

After checking a lot of information, I finally found a command hdparm, which can set many parameters related to the hard disk, and the hard disk sound can also be used.

The command is described as follows:

Usage: hdparm [options] [device] ..

Options:
-A get/set fs readahead
-A get/set the drive look-ahead flag (0/1)
-B get/set bus state (0 = off, 1 = on, 2 = tristate)
-B set Advanced Power Management setting (1-255)
-C get/set IDE 32-bit IO setting
-C check drive power mode status
-D get/set using_dma flag
-D enable/disable drive defect management
-E set cd/dvd drive speed
-F flush buffer cache for device on exit
-F flush drive write cache
-G display drive geometry
-H display terse usage information
-H read temperature from drive (Hitachi only)
-I display drive identification
-I detailed/current information directly from drive
-K get/set keep_settings_over_reset flag (0/1)
-K set drive keep_features_over_reset flag (0/1)
-L set drive doorlock (0/1) (removable harddisks only)
-M get/set acoustic management (0-254,128: quiet, 254: fast) "sound can be set: (this can be set in linux, if you only use windows, you will never know this :-)
-M get/set multiple sector count

... Omitted .........

Sudo hdparm-M128/dev/sda

After the setting, the effect is obviously improved, and other parameters need to be studied.

From this point of view, this sound also helps to find the hard disk read and write status, and the hard disk indicator function is similar.

Www-bkjia-com @ www-bkjia-com :~ $ Sudo hdparm-M128/dev/sda
[Sudo] password for www-bkjia-com:

/Dev/sda:
Setting acoustic management to 128
HDIO_DRIVE_CMD: ACOUSTIC failed: Input/output error
Acoustic = not supported
Www-bkjia-com @ www-bkjia-com :~ $

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.