Smartmontools: Difference between revisions
Marked this version for translation Tags: Mobile edit Mobile web edit |
added "Detecting devices automatically" section |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:smartmontools}} | {{DISPLAYTITLE:smartmontools}} | ||
<languages/> | |||
<translate> | <translate> | ||
<!--T:1--> | <!--T:1--> | ||
| Line 32: | Line 33: | ||
} | } | ||
</nowiki>}} | </nowiki>}} | ||
<translate> | |||
== Detecting devices automatically == | |||
Instead of listing every device explicitly, smartd can be configured to automatically look for and monitor all detected disks by enabling {{Nixos:option|services.smartd.autodetect}}. This is equivalent to adding a <code>DEVICESCAN</code> entry to a <code>smartd.conf</code> file. | |||
Options applied to devices found this way can be adjusted with {{Nixos:option|services.smartd.defaults.autodetected}}. '''Most of the time you do not need to change this''' because the default option already checks every attribute on the disk. | |||
</translate> | |||
{{file|/etc/nixos/configuration.nix|nix|<nowiki>{ | |||
services.smartd = { | |||
enable = true; | |||
autodetect = true; | |||
}; | |||
} | |||
</nowiki>}} | |||
<translate> | <translate> | ||