hdparm.conf(5)

๐Ÿ“ฆ
version 9.65 ยท 2 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

๐Ÿ’– NAME ๐Ÿ’–

okay so hdparm.conf(5) is the Debian configuration file for hdparm, and it's giving main character energy ๐ŸŽ€โœจ

๐ŸŒธ DESCRIPTION ๐ŸŒธ

This is the default config for hdparm on Debian ๐Ÿ’… It's a pretty simple script, so bestie, please follow the guidelines :) Any line that starts with a comment is ignored, so add as many as your heart desires ๐Ÿซถ

Since hdparm doesn't use an init script anymore, this config is mainly used by udev ๐Ÿ”ง Still, you can re-apply the settings from the config file by running either

/usr/lib/pm-utils/power.d/95hdparm-apm resume

or

DEVNAME=/dev/<disk> /usr/lib/udev/hdparm

Quick heads up: an in-line comment is not supported ๐Ÿ™…โ€โ™€๏ธ If a line is only whitespace (tabs, spaces, carriage returns), it gets ignored, so you can space out your control fields however you like ๐Ÿฆ‹ But ANYTHING ELSE IS PARSED!! ๐Ÿ˜ญ

So any line with stray characters, or any line using a non-# comment character, will get interpreted by the initscript. The side effects are probably minor, but they could be seriously bad for your hard drives ๐Ÿ’€ So please, please follow the guidelines. Patches to improve flexibility are welcome ๐Ÿ’œ

Heads up: if the init script causes boot problems, you can pass nohdparm on the kernel command line, and the script won't run at all ๐Ÿšจ

Setting an option outside of one of the stanzas turns it on for all drives ๐ŸŒˆ

If an option is listed twice, the second one replaces the first ๐Ÿ”

/sbin/hdparm doesn't run unless a block of this form exists:

DEV {

option

option

}

That block is what makes /sbin/hdparm OPTIONS DEV run โœจ Here, OPTIONS is all the options you defined outside of any block, plus all the options defined inside the block, mashed together ๐Ÿงš

๐ŸŽ€ OPTIONS ๐ŸŽ€

See man 8 hdparm ๐Ÿ“

๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

Mark Lord <mlord@pobox.com> wrote hdparm, the legend ๐Ÿ”ฅ The initial manual page was created by Stephen Gran <sgran@debian.org> for the Debian GNU/Linux system, but others are welcome to use it too ๐Ÿซถ


Sign-off time ๐Ÿฆ‹ This page came from Stephen Gran, dated August 10, 2005, and it's all about hdparm.conf(5) ๐Ÿ’œ Stay iconic, bestie โœจ

๐Ÿ“ฆ where this page comes from