-
May27
Hard drives automatically switch into standby mode in
Filed under: Interesting;No Comments
I'm just a computer with a mix of solid-state drive and hard drive normal build. The advantage of SSD is of course the enormous speed and silent operation. However, the price per GB of storage capacity is enormous … well, unfortunately you still want to have enough space in the computer, is therefore also a conventional hard drive installed.Unfortunately, the nearly silent PC SSD through the hard drive is significantly louder again. With the right settings but you can turn off the drive when not in use via hdparm automatically. For me, a good solution to the music or video collection to outsource or to store large images of virtual machines …View
In the end, it all relatively easy to implement. Experienced Linux users, I would have just the keywords hdparm-S option to call the XX and the configuration file hdparm.conf. Anyone who wants detailed information that should simply read more
First you have to find the data to the record you want to switch off when not in use. The easiest way to do this via the Device Manager of GNOME, which you through the menu “Settings ->System” you can call. There, you would have just looking out your plate and you remember that device “/ dev / sdXY.”
In my example, I am so with the drive / dev / sdc. Probably it is on you by another device, hence you have to adjust the following instructions from hence to your situation. There is certainly an alternative for KDEL in the KDE SC, an appropriate tool, and if all else fails, definitely helps a sudo fdisk-l on.
Now checks your best to start, if your disk can even send in an idle state. All fairly new drives and controllers should be able to actually, but before you later you wonder why this does not work, you should first do a little test. Calls to hdparm with the-C option to …
$ Sudo hdparm-C / dev / sdc/ Dev / sda: drive state is: active / idle
One sees that hdparm could correctly retrieve the status and the plate is going on, this should also be able to recognize in its operating noise. Now you can even switch off the plate by hand …
$ Sudo hdparm-y / dev / sdc
… the success of the action should be heard. Optionally, you can once again with the-C option to check whether the disk was actually sent to the standby.
$ Sudo hdparm-C / dev / sdc/ Dev / sda:drive state is: standby
Once again it is accessing the disk, the disk will start up again automatically and disclose their data. Now it would be quite cumbersome, the plate is always off by hand, it would be better if the disk automatically turn off after a certain time without requests could.
This is the option of hdparm-S XX. About them you can define a time period beyond which the disk is switched off. The numerical value after the key is not pressed directly from the time, but only serves as a multiplier. I quote the man page just times …
Values from 1 to 240 specify multiples of 5 seconds, yielding timeouts from 5 seconds to 20 minutes. Values from 241 to 251 specify from 1 to 11 units of 30 minutes, yielding timeouts from 30 minutes to 5.5 hours. A value of 252 signifies a timeout of 21 minutes. A value of 253 sets a vendor-defined timeout period between 8 and 12 hours, and the value 254 is reserved. 255 is interpreted as 21 minutes plus 15 seconds. Note that some older drives may have very different interpretations of these values.
A value of eg 60 corresponds therefore 60 * 5s, 300s or so five minutes. Too short, one should choose the timeout, since down-and frequent re-revving the engine can affect the lifetime of the disk.
$ Sudo hdparm-S 60 / dev / sdc
So that the whole is executed automatically when the system should save this setting in your configuration file / etc / hdparm.conf. your best works in the case of UUIDs, so that the entry refers always to the desired drive even if your disk configuration should be changed once. Specifies the UUID For example …
Most auto insurance quotations may have only liability cover so be sure to ask for full cover.$ Sudo blkid[...]/ Dev/sdb1: LABEL = “data-internal” UUID = “ff7f1cdd-431a-4e47-8b90-49737cec82b3″ TYPE = “ext4″/ Dev/sdc1: LABEL = “Data-grave” UUID = “4c9dca33-e3e1-4a6a-a7d4-110cdbb4cfbe” TYPE = “ext3″
… and then simply add your desired entry at the end of the hdparm.conf …
$ Sudo gedit / etc / hdparm.conf[...]/ Dev / sdb {hdparm-S 60 / dev/disk/by-uuid/4c9dca33-e3e1-4a6a-a7d4-110cdbb4cfbe}.
