Re: Cheap NAS
On Mon, 2022-10-17 at 11:28 -0400, Wayne Sallee wrote:
>
> -------- Original Message --------
> *Subject: * Re: Cheap NAS
> *From: * Paulf <paulf@quillandmouse.com>
> *To: * Debian-user <debian-user@lists.debian.org>
> *CC: *
> *Date: * 2022-10-16 02:31 PM
> > It's also worth noting: on my setup with a spinning rust laptop drive
> > hooked via USB 3 to my RPi, the drive doesn't spin continuously
> > (apparently). So on occasional use, I wait a couple of seconds for the
> > drive to spin up before it can transfer at full speed. It's possible an
> > SSD would solve this, but I had the laptop drive around already.
> >
>
> A simple timed read/write script could take care of that.
Or try the hdparm command to change spindown time or other power saving
parameters. I use this to deliberately spin down my NAS drive after 10
minutes so it uses a lot less power and to get rid of the noise. I do
this at boot in /etc/rc.local
# cat /etc/rc.local
#!/bin/sh
# 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).
I also do this in my daily backup scripts in case the drive setting
gets lost, as it seems to do some times.
--
Tixy
Reply to: