hdparm + veracrypt / truecrypt never spinning down drive
Hello guys,
I am running a Raspberry Pi 3B+ with Raspbian.
Configured is crontab -e and
@reboot sudo hdparm -B 20 /dev/disk/by-id/ata-TOSHIBA_MQ01ABD100_45SDPOKRT
the drive spins down normally.
When mounting the drive with truecrypt / veracrapt with this command:
veracrypt --mount /dev/disk/by-id/ata-TOSHIBA_MQ01ABD100_45SDPOKRT /home/pi/Desktop/ExtHDD/ --fs-options="users,uid=1000,gid=100,umask=0000" --protect-hidden=no -m=nokernelcrypto -tc
truecrypt directly (instead of veracrypt) produces the same behavior
the drive is never spun down after the initial force to spindown at bootup.
Any comments of how to achieve the desired behavior that the drive is spun down normally when mounting it via truecrypt / veracrypt ?
Once the drive firmware has been programmed to "spin down" after inactivity (which is what -B does), then it will spin down so long as it is not being accessed by the system.
So.. if you want it to spin-down, hack your copy of veracrypt to STOP continually accessing the drive.