3

I have an external hard drive that was making an odd sound, and I wanted it to stop. I found out that navigating the contents of the HD in the Finder would make it stop temporarily. I set up a shell geeklet that ran ls /Volumes/ExtraStorage and that fixed the problem.

My question is if this can harm the hard drive if I use it over an extended period of time.

  • How often do you run the script? How long is an "extended period of time" – many years? Ideally, the result of ls will be cached by the operating system, so you may not be causing a physical action with each read. – Graham Miln Jun 08 '14 at 12:49
  • @GrahamMiln Most likely not many years, the hard drive will probably fail before then. The script is run every 6 minutes. – nloveladyallen Jun 08 '14 at 16:33

2 Answers2

1

This is likely a hard drive power management and sleep issue rather than an issue with the drive. When unused for a few minutes, the drive goes to sleep, possibly making a noise while parking the heads for safety. Your script accessing it in shorter intervals prevents it from going to sleep. You can confirm if this is the issue by observing how long it takes to access something on the drive after it makes the sound (and goes to sleep). If it seems slower than usual, it's because of waking up from sleep.

Firstly, you should confirm if OS X is making the drive sleep and/or if the drive's firmware is the culprit:

  • Disable your script.
  • Go to System Preferences > Energy Saver and see if Put the hard disk(s) to sleep when possible is enabled. If it is, disable it and observe the behavior of the drive.
  • If the OS X configuration doesn't help, check the drive's make and model and see how you can disable sleep from the manufacturer's support site.

On one hand, disabling the sleep behavior would increase the amount of power consumed (even if it seems insignificant). On the other hand, if you would be using the drive somewhat often while leaving it connected permanently, it may be a good idea to just having it running and avoid the lag of a sleep/wake cycle.

M K
  • 11,047
0

If your script fixes the odd sound and you have good back-ups, your solution is unlikely to cause worse problems.

That the drive is making an odd sound anyway suggests a problem. Make sure your back-ups are current and maintained.

Hard disk drives can be kept spinning and in use constantly. Your ls script run every six minutes is not placing a huge burden on the drive. It may be that OS X, or the disk itself, will cache the repeated read and thus ls will not be triggering physical activity each time.

As for harm or reliability, the articles by Backblaze are reassuring. What Hard Drive Should I Buy implies consumer drives are surprisingly reliable even when used aggressively.

Graham Miln
  • 43,776