tips_and_tricks
This is an old revision of the document!
Tips and Tricks
USB disks go stale
Sometimes USB disks go stale after a time of non use. This was happening a lot on churn1, but also on other computers occasionally. The trick it to tell the disks not to do that. Write a little script and run it as root:
for i in /sys/bus/usb/devices/*/power/autosuspend; do echo 2 > $i; done for foo in /sys/bus/usb/devices/*/power/level; do echo on > $foo; done
Samba
Restart: “sudo /etc/init.d/smbd restart”
Conf file: “/etc/samba/smb.conf”
Example disk config:
[bigdisk1] path = /bigdisk1 valid users = sonata read only = no [bigdisk2] path = /bigdisk2 valid users = sonata read only = no [bigdisk3] path = /bigdisk3 valid users = sonata read only = no [sonata20160730-20180110] path = /sonata20160730-20180110 valid users = sonata read only = yes
tips_and_tricks.1519149087.txt.gz · Last modified: 2023/10/28 18:36 (external edit)