Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to check whether disk is in sleep?

I am doing some reports in background and, if disk is already sleeping, I would like to avoid waking it up. Which command can I use to check its status without waking it up?

share|improve this question

atacontrol spindown [drive] should show the drive's current state and the timer.

Also, when the drives are spun down it will appear in the messages log, the most recent of which can be displayed with dmesg.

A side note, a drive's life deteriorate every time they change power states; minimizing power state transitions will prolong life.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.