On 17/10/2022 22:50, Tixy wrote:
# Set spindown time for disk if NAS1=`findmnt -n -o SOURCE /nas1/main`; then /sbin/hdparm -S120 $NAS1; fiRather than hard code the disk as /dev/sdc I use 'findmnt' to get thedisk name from the point it's mounted at (/nas1/main in this case).
Are there known problems with using e.g. WWN (/dev/disk/by-id/... in /etc/hdparm.conf) for per-disk configuration? I expect that should avoid issues with changing /dev/sdX devices.