Getting harddrive to spin down overnight

AliMickey

Reputable
Jun 7, 2016
424
0
4,810
Looking at many threads shows that leaving a harddrive always on is better than spinning it up and down constantly. If so, then is it possible to make the harddrive spin down overnight when no one will be using it?

thanks
 

AliMickey

Reputable
Jun 7, 2016
424
0
4,810


i know that. i mean a time period from say 10pm to 8am it turns off, but is on outside those time periods.
 

asoroka

Distinguished
Apr 19, 2009
1,200
1
19,660
Do you intend to keep your machine active all night?
Where is this hdd located?

If you have a NAS you can program it to sleep, in which case the disks spin down and power usage is about 5W.


I also don't agree that there is a problem in shutting down the hdd.

What you need to do is spin the disk down and have the machine hibernate. I would suggest 1 hour idle time and teh disk can spin down (shut down).
 

AliMickey

Reputable
Jun 7, 2016
424
0
4,810


its a pc dedicated to network share the harddrive while being a plex server. so i would want it to be always active during the day so i dont have to wait for the harddrive to spin up when i want to copy something over. But since i wont be using it overnight it can spin down.

There's just so many threads saying that by sleeping down the harddrive constantly is worse than just leaving it on since greater risk of having the head be damaged during start-up/down movements.
 

asoroka

Distinguished
Apr 19, 2009
1,200
1
19,660
I personally would power off the machine.

What you don't want to do is have a sudden power fail before the disk heads can be parked. That has a potential to damage the disk.
A controlled shutdown or (hdd sleep) gives the disk a chance to park the heads. Once teh heads are parked, you don't need power to the disk.

This is no more stressful on the disk than normal IO.

I think that you are complicating things.
 

AliMickey

Reputable
Jun 7, 2016
424
0
4,810

in that case do you know how to make ubuntu automatically sleep or shutdown the device during a time period (overnight)?