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 :~ $