0

I just installed Ubuntu 16.04 LTS Server. And I want to disable hard drive when it is not used for a long time using SMART capabilities.

So, is it possible to prevent any Ubuntu writes on a hard drive in idle? And from what things should I start?

GLaz
  • 323

1 Answers1

0

You can set a disk to spin down when it is not accessed for a certain period of time

You need to edit /etc/hdparm.conf

try an entry along the lines of

/dev/disk/by-id/disk_id { spindown_time = 36 }

The spindown time is in blocks of 5 seconds, so 36 means spindown after 3 minutes on inactivity. disk_id is the id of the disk you want to spin down (ls -l /dev/disk/by-id to find the right one)

Nick Sillito
  • 1,596