Unofficial Spin-Down Fix

From NAS-4220

Jump to: navigation, search
 #!/bin/sh
 #install bugfixes for IB-NAS4220
 echo "installing bugfixes"
 
 #only one crond
 killall crond
 /usr/sbin/crond
 
 #replace link /usr/sausalito/codb to /system/codb
 #with a copy to allow HD spinoff
 if [ -L /usr/sausalito/codb ]; then
   rm /usr/sausalito/codb
  (cd /system; tar cf - codb) | (cd /usr/sausalito; tar xf -)
 fi
 
 # set HD spindown to 5 minutes
 hdparm -S60 /dev/hda
 hdparm -S60 /dev/hdb

(This script is for a system with 2 disks configured as RAID1. You have to modify it for other configurations)

Personal tools
In other languages