Results 1 to 5 of 5

Thread: Script preventing hdd spindown

  1. #1

    Script preventing hdd spindown

    Hi Forum,

    my new external USB HDD (WD myBook Studio II) automatically goes into standby after some time of being idle.
    WD states, that this feature can't be turned off on this device series.
    Unfortunately, this produces some 'ugly' entries in the syslog.log like:

    Code:
    kernel: Device 08:02 not ready.
    kernel:  I/O error: dev 08:02, sector 57695096
    In this forum, I found different approaches to keep the disc from spinning down (5 min cron on sdparm --command=start [dev]) but that didn't work out on my disc.

    I've found a script @oleg (scsi-stop.sh), which does the spindown ... is there a way to have a scsi-start.sh which prevents the HDD from going asleep ?

    Thank you

    Zigster

  2. #2
    You say cron isn't working?

    How about creating a dir for a 1min cron job and schedule it in crontab.
    put in an 'empty' job which doesn't do anything.

    Now, if cron wants to execute the job, it has to access the hd (the location where the script is). Because it will do this every minute, there's no chance the hd will spin down.

    Or am I on the wrong track?

  3. #3
    Hi raas,

    thank you for your hint!
    I think your advice would work too ... although it isn't really 'elegant'.

    I'd prefer a call via sdparm on the scsi device...

    Thx for more tips

    Zigster

  4. #4
    The really elegant solution will be to use 1.9.2.7-d firmware, based on Oleg's 1.9.2.7-10 with ability to spin-up sleeping usb drives including

    Quote Originally Posted by Zigster View Post
    I've found a script @oleg (scsi-stop.sh), which does the spindown ... is there a way to have a scsi-start.sh which prevents the HDD from going asleep ?
    scsi-start and scsi-stop utils are also included.

  5. #5
    As for this error ...

    How can I create a 15min cron job IF someone is logged on cable or wileless?

    If nobody is logged on cable or wileless the HDD can spin down.

    I do not know what parameter should I test with IF command

Similar Threads

  1. Problems with hdd spindown og rc.local
    By ashansen in forum WL-700g Q&A
    Replies: 27
    Last Post: 29-01-2009, 22:01
  2. HDD Spindown problem
    By Woffels in forum WL-700g Q&A
    Replies: 2
    Last Post: 14-10-2008, 11:15
  3. Firmware v1.8.1.7 CR2 [Oleg] - updated ( CR2a )
    By Oleg in forum WL-500g Firmware Releases
    Replies: 69
    Last Post: 08-12-2004, 10:01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •