You are on Linux and you do not want your external HDD to stop after being idle. You want to keep it active and accessible at all times. How to do that?
I do it like this:
1. discover path to the mounted filesystem of the external HDD:
(in my case /media/me/BACKUP 750GB)df -h
This way, i can execute command to keep HDD awake until i reboot the system or logout:
or i can setup a cronjob that will do it non stop across PC reboots for that particular HDD:while true;do sleep 20 && if [ -d "/media/lynx/BACKUP 750GB/" ];then touch "/media/lynx/BACKUP 750GB/0";fi;done &
2. edit crontab:
3. add new line:crontab -e
(change bold text to reflect your path)* * * * * if [ -d "/media/lynx/BACKUP 750GB/" ];then touch "/media/lynx/BACKUP 750GB/0";fi
Save changes ( :wq and Enter key OR Ctrl+X, Y key and Enter key)
4. check your system log to see what cron is reporting about your job:
Do you know better way or the tweak?echo -e "\nTime now: $(date)";sudo tail -f /var/log/{*cron*,syslog} 2>/dev/null
Bookmarks