meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:prepare:prepare [2025/01/05 14:00] niziaklinux:prepare:prepare [2025/01/06 10:53] (current) niziak
Line 153: Line 153:
 Disable mandb updates after apt: Disable mandb updates after apt:
 <code bash>echo "set man-db/auto-update false" | debconf-communicate; dpkg-reconfigure man-db</code> <code bash>echo "set man-db/auto-update false" | debconf-communicate; dpkg-reconfigure man-db</code>
 +
 +==== smartmontools ====
 +
 +<code bash>apt install smartmontools</code>
 +<file sh /etc/smartd.conf>
 +DEVICESCAN -n standby,336,q -S on -H -l error \
 + -l xerror \
 + -l selftest \
 + -l offlinests \
 + -l scterc,0,0 \
 + -e lookahead,on \
 + -s (L/../../6/01|S/../.././02) \
 + -f -p -C 197+ -U 198+ -W 10,45,50....
 +</file>
 +
 +NOTE: It ignores disk in standby to do not spin up HDDs, but it ignores 336 checks (x 1800s interval = 7 days), then it will spin up disc. To put disc sleep again it is good to use ''hd-idle'' daemon.
 +
 +==== hd-idle ====
 +
 +<code bash>apt install hd-idle</code>
 +
 +<file sh /etc/default/hd-idle>
 +HD_IDLE_OPTS="-a /dev/disk/by-id/ata-ST2000DM008-2UB102 -i 600 -l /var/log/hd-idle.log"
 +</file>
 +systemctl restart hd-idle
 +