image
image

Go Back   macosx.com > Mac Help Forums > Hardware & Peripherals

Reply
 
LinkBack Thread Tools
  #1  
Old November 21st, 2002, 02:37 AM
pingsmoth's Avatar
Mac User
 
Join Date: Mar 2001
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
pingsmoth is on a distinguished road
Keeping my hard drive spinning

I have a problem where my hard drive automatically spins down after a few minutes of inactivity, then starts spinning again after a few minutes, then stops again, and keeps repeating this pattern indefinitely. In my energy preferences i do not have the "spin down hard drive" option checked.

I have read that it's not good, as a rule, to have your drive be spinning up and spinning down like that, as it causes additional wear which can add up over time.

Is there any way to stop my hard drive from spinning down? Thanks!
Reply With Quote
  #2  
Old November 21st, 2002, 09:34 AM
kenny's Avatar
Registered User
 
Join Date: Sep 2000
Location: Concord, NC
Posts: 499
Thanks: 0
Thanked 0 Times in 0 Posts
kenny is on a distinguished road
I had this very problem. I'd set up a machine with Apache, PHP and mySql, and every time a user would connect after several minutes of idle time (hey, it's not a high-volume site ), it would take forever for the page to display in their browser. Other times, it was nearly instant if the drive hadn't spun down.

What I did is create a little script that I could run in cron to touch each drive in the system that I wanted to keep spinning. Here is that script:


#!/bin/ksh
set -A volumes "/" "/Volumes/Jujuflop/" "/Volumes/Towel/"
datestamp=`date "+%y%m%d%H%M"`

for i in ${volumes[@]}
do
tickler="$i""touchfile.$datestamp"
echo $i $datestamp
touch $tickler
sleep 2
rm "$tickler"
done


You will probably want to change the second line. I really hope you don't have the same volume names that I do.. Simply replace the names (or remove them) as needed. You should probably keep the root ( "/" ) drive there, though.

Then, in cron I added this line:

00,10,20,30,40,50 * * * * /home/kenkl/bin/touchdrives.sh >> /home/kenkl/bin/touchdrives.log


The 10-minute interval wasn't always enough, but it was usually good enough that no-one ran into the long page loads much any more. You could make this as little as every minute if you wanted.
Reply With Quote
  #3  
Old January 3rd, 2003, 03:57 PM
Pardus's Avatar
Lurks: 15,289
 
Join Date: Aug 2001
Location: Vancouver BC
Posts: 165
Thanks: 0
Thanked 0 Times in 0 Posts
Pardus is on a distinguished road
Me too

My drives are constantly spinning down. Maxtor 60gb and 30gb. It is driving me nuts and I hate the 2-4sec freeze it puts on my system.

Is there another alternative then the one above? That seems like a work around but not a fix?
__________________
http://www.panthermedia.com
http://www.e-brochures.ca
Mac Pro Dual 2.8 Quad | Macbook 2.2 Black | G5 Dual 2.0 | G4 867 Quicksilver | G4 iBook 933 | G3 Beige 300 | G3 iMac 266
Reply With Quote
  #4  
Old January 3rd, 2003, 04:01 PM
edX's Avatar
edX edX is offline
mac shaman
 
Join Date: Nov 2001
Location: SF Bay Area
Posts: 7,268
Thanks: 0
Thanked 0 Times in 0 Posts
edX is on a distinguished road
if you are using 10.2.2 or higher, there is spindownfix
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a second internal hard drive wildchild Hardware & Peripherals 4 September 7th, 2003 01:42 AM
OSX Froze, hard reboot, now the drive won't mount Fahrvergnuugen Mac OS X System & Mac Software 3 April 1st, 2002 04:43 PM
Auto-sleep hard drive? ElDiabloConCaca Apple News, Rumors & Discussion 3 February 27th, 2002 09:01 AM
Powerbook hard drive solutions...? The Madhatter Apple News, Rumors & Discussion 5 December 27th, 2001 04:28 AM
share points on second hard drive meancode Mac OS X System & Mac Software 3 December 4th, 2001 09:42 PM


All times are GMT -5. The time now is 01:30 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.