Comments (3)
I've added a new geerlingguy.hdparm
role on Ansible Galaxy for control over this parameter. I will also need to see about setting it on-the-fly or if I can get hdparm to read from its conf file... also need to verify things are working. Right now it looks like it'll take at least 30 min to an hour to format the 2 TB USB drive. It would take 4-6 hours if I formatted allowing the initialization to happen in the background!
from backup-pi.
To set spin-down on the fly:
# Enable power management on USB HDD.
sudo hdparm -B 127 /dev/sda
# Set spindown time to 10 minutes.
sudo hdparm -S120 /dev/sda
You can check the status of the drive using:
sudo hdparm -C /dev/sda
(Outputs something like active/idle
or standby
if it's spun down).
from backup-pi.
Looks like this works nicely with the following in /etc/hdparm.conf
:
/dev/sda {
spindown_time = 120
}
from backup-pi.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from backup-pi.