[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Cheap NAS



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; fi
Rather than hard code the disk as /dev/sdc I use 'findmnt' to get the
disk 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.




Reply to: