Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I just added a disk, with partitions but none of them are mounted. The disk will still spin up every now and then. it goes like this:

### disk spins up
hdparm  -Y /dev/sdb;date
/dev/sdb:
 issuing sleep command
9 feb 2011 23.37.08 CET
### disk spins up
hdparm  -Y /dev/sdb;date
/dev/sdb:
 issuing sleep command
9 feb 2011 23.46.12 CET

Also it always spins up when I shut down the computer.

Any tips are welcome, e.g. how can I figure out which process is accessing the disk, are there any daemons doing this? I know it isn't a cron job.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Use -y (standby) instead of -Y (sleep).

It is probably udisks checking the SMART status of the drive. It first checks to see if the drive is in standby and if it is, will skip the SMART check, but just checking to see if the drive is in standby wakes it up from sleep.

share|improve this answer
    
Indeed! the disks spins again after a -Y command, this will always wake up the disks: hdparm -Y /dev/sdb;hdparm -C /dev/sdb.. So using hdparm -y /dev/sdb instead has been working all night.. –  Erik Johansson Feb 10 '11 at 12:12

Your Answer

 
discard

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.