Sunday, December 7, 2014

ubuntu - Spin down hard drive

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?

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...