I have a fairly old hard drive that I want to have spin down after say 30 or 60 minutes of inactivity. I flipped the web and found that I can set spin down time with hdparm -S
and I tried that, setting it to 5 seconds - the lowest possible - but the drive does not appear to spin down. After issuing hdparm -Y
it immediately spins down. I'm assuming that simply the drive does not support a "spin-down" feature, which seems kind of unlikely TBH - I can't see the model exactly but it's a 750GB WD from around 2007.
What I thought of was if I can get the time at which the disk was last accessed, I can run a cron and put it to sleep with hdparm -Y
.
How can I get the last access time of a hard drive?