Smartmontools: Difference between revisions
Marked this version for translation |
Instruct on using persistent device ids for smartd |
||
(One intermediate revision by one other user not shown) | |||
Line 9: | Line 9: | ||
</translate> | </translate> | ||
<translate> | <translate> | ||
== Locating devices == | |||
It is important to use persistent methods of identification for disks, as device nodes are arbitrary and subject to change. The following command will print a list of storage devices, as well as partitions contained on them. When configuring smartd, you should use entries that are '''not''' suffixed with "-partX", as they refer to whole disks. <syntaxhighlight lang="bash"> | |||
ls /dev/disk/by-id/ | |||
</syntaxhighlight> | |||
== Example == <!--T:3--> | == Example == <!--T:3--> | ||
</translate> | </translate> | ||
Line 18: | Line 24: | ||
devices = [ | devices = [ | ||
{ | { | ||
device = "/dev/ | device = "/dev/disk/by-id/ata-WDC-XXXXXX-XXXXXX"; # FIXME: Change this to your actual disk | ||
} | } | ||
]; | ]; | ||
Line 27: | Line 33: | ||
[[Category:Hardware]] | [[Category:Hardware]] | ||
[[Category: | [[Category:Applications]] |