Pascal Hibon wrote: 
> Yes you can. You need to install hdparm for that.

OK, that is one way of doing it. There is also a hd-idle package in the
repo. (With a systemd service file and /etc/sysconfig/... config file).
Rather than having to specify, /dev/sda, (or a disk identifier that
might change when you hotplug a usb drive), you can specify a UUID.

eg. my /etc/sysconfig/hd-idle config 

Code:
--------------------
    
  OPTS="-i 0 -a /dev/disk/by-uuid/B24CF2094CF1C85D -i 600 -l 
/var/log/hd-idle.log"
  
--------------------


'-i 0' set the default, no drives spindown, then specify a USB drive
containing a specific UUID to spin-down after 10 mins.

Install...

Code:
--------------------
    
  sudo csos-cleanInstall hd-idle
  
--------------------


Documentation...

Code:
--------------------
    
  man hd-idle
  
--------------------


After edit the /etc/sysconfig/hd-idle config, restart the service...

Code:
--------------------
    
  sudo systemctl restart hd-idle
  
--------------------


------------------------------------------------------------------------
JackOfAll's Profile: http://forums.slimdevices.com/member.php?userid=3069
View this thread: http://forums.slimdevices.com/showthread.php?t=99395

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to