HDPARM sleed hdd and show HDD activity, partition activity
sudo apt install hdparm
sudo hdparm -y /dev/sda # Legt HDD sofort schlafen
sudo nano /etc/hdparm.conf
START_HD_IDLE=true
/dev/sda {
spindown_time = 240
}
sudo hdparm -B 127 -S 240 /dev/sda
sudo hdparm -W 0 /dev/sda1
sudo /usr/lib/pm-utils/power.d/95hdparm-apm resume
Logovanie stavu co sa deje s diskom:
sudo apt-get install build-essential fakeroot debhelper -y
cd Downloads/
wget http://sourceforge.net/projects/hd-idle/files/hd-idle-1.05.tgz
tar -xvf hd-idle-1.05.tgz && cd hd-idle
dpkg-buildpackage -rfakeroot
sudo dpkg -i ../hd-idle_*.deb
sudo nano /etc/default/hd-idle
START_HD_IDLE=true
HD_IDLE_OPTS="-i 1200 -l /var/log/hd-idle.log"
sudo systemctl restart hd-idle
Monitoring pripojenej particie ake operacie sa vykonavaju:
sudo apt-get install inotify-tools
inotifywait -m /mnt/backup/
Monitorovanie disku co sa deje:
sudo apt install blktrace
sudo btrace /dev/sda
Vypnutie monitorovania smart cez systemd proces:
smartctl -s off /dev/sda
sudo systemctl stop smartd
sudo systemctl disable smartd