Prevent External HardDisk from going to sleep

Lately I am loosing my temper with my 2TB external FANTOM External USB Device (GreenDrive); It goes to sleep and makes me wait for a few secs before it wakes up.

So here is a powershell one liner that writes a file periodically, thus preventing it from sleeping.

while($true){new-item h:\tmp.txt -type file; remove-item h:\tmp.txt; sleep 30}

H: is my FANTOM Drive.
tmp.txt is the file thats being written.
sleep 30 is the seconds that the script pauses execution.

This can be further extended by using windows Task Scheduler and running this script at every user login.

If scripting is not your cup of tea, try using NoSleepHD; does the same thing but has a GUI 😉

http://nosleephd.codeplex.com/

2 thoughts on “Prevent External HardDisk from going to sleep

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s