Giter VIP home page Giter VIP logo

Comments (3)

geerlingguy avatar geerlingguy commented on June 16, 2024

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.

geerlingguy avatar geerlingguy commented on June 16, 2024

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.

geerlingguy avatar geerlingguy commented on June 16, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.