如何在 Windows XP 中禁用外部 USB 硬盘驱动器上的自动睡眠

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/311672/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 11:38:46  来源:igfitidea点击:

How to disable auto sleep on external USB hard drive in Windows XP

windows

提问by Casey Wagner

I've seen a related question on this website regarding a Linux system. I have the same question on a Windows XP OS. I bought a Winchester USB external HD, and found out from technical support that the sleep feature is in the firmware and cannot be turned off. I'm looking for an application that will automatically read/write to that drive periodically to keep that timer resetting (every 5 minutes?). Is anyone aware of a small application for Windows XP that will do that?

我在这个网站上看到了一个关于 Linux 系统的相关问题。我在 Windows XP 操作系统上有同样的问题。我买了一个 Winchester USB 外置硬盘,从技术支持那里发现睡眠功能在固件中,无法关闭。我正在寻找一个应用程序,它会定期自动读取/写入该驱动器以保持该计时器重置(每 5 分钟一次?)。有没有人知道一个适用于 Windows XP 的小应用程序可以做到这一点?

Thanks for your help.

谢谢你的帮助。

回答by Will Dean

Make batch (.BAT) file something like this:

使批处理 (.BAT) 文件如下所示:

@echo off
:start
copy c:\windows\notepad.exe g:\  (Or whatever your external drive is)
choice /N /D Y /T 120            (The 120 is the delay in seconds)
goto :start

回答by Will Dean

You could try NoSleepHD.

你可以试试 NoSleepHD。

http://nosleephd.codeplex.com/

http://nosleephd.codeplex.com/

It writes an empty text file to your chosen drive every few minutes (you can choose the minutes) to stop the drive going to auto-sleep mode.

它每隔几分钟(您可以选择分钟)将一个空文本文件写入您选择的驱动器,以阻止驱动器进入自动睡眠模式。

google: nosleephd

谷歌:nosleephd

Ashx

阿什克斯

回答by Krehator

I have tried nearly everything to fix this problem on my external which is shared out containing my movies. Nothing ever worked. I have a WD Mybook, and I think the sleep is occurring internally in the drive.

我已经尝试了几乎所有方法来解决我的外部设备上的这个问题,其中包含我的电影。没有任何工作。我有一台 WD Mybook,我认为睡眠是在驱动器内部发生的。

I have a solution that works for me, and should for anyone else. The key is to keep the USB drive doing something. Not a lot, but something simple, causes some type of change on the drive.

我有一个适合我的解决方案,也适用于其他任何人。关键是让 USB 驱动器做一些事情。不是很多,但一些简单的事情会导致驱动器发生某种类型的变化。

Windows XP does not have a SLEEP command, but you can download one and add it to the SYSTEM32 folder. Then all you need to do is make a simple batch file, and put it in your startup folder so it executes when you log in.

Windows XP 没有 SLEEP 命令,但您可以下载一个并将其添加到 SYSTEM32 文件夹中。然后您需要做的就是制作一个简单的批处理文件,并将其放入您的启动文件夹中,以便在您登录时执行。

Make sure you have write access to the drive. Change the drive letter to yours...

确保您对驱动器具有写访问权限。将驱动器号更改为您的...

Make a batch file.

制作一个批处理文件。

:start
@echo off
@cls
@echo Keeping USB Drive Awake.  Do not close this window!
@sleep 60
@dir E: /S /B >E:\keepawake.txt
@echo Drive Accessed %date% at %time% >keepawake.txt
goto start

This will write the full directory structure to a file on the E: drive in a file called keepawake.txt. Then it will overwrite it with a simple note containing the date and time. This will always be different. It will do it every 60 seconds.

这会将完整的目录结构写入 E: 驱动器上名为 keepawake.txt 的文件中。然后它将用包含日期和时间的简单注释覆盖它。这将永远是不同的。它将每 60 秒执行一次。

Problem solved...

问题解决了...

-Krehator

-克雷哈托

回答by Quinxy von Besiex

I'm using the free/open source Windows program KeepAliveHD (http://keepalivehd.codeplex.com/) to accomplish this. Works well.

我正在使用免费/开源 Windows 程序 KeepAliveHD ( http://keepalivehd.codeplex.com/) 来完成此操作。效果很好。

回答by Casey Wagner

Any text editor with an autosave function would do it. You could also write a batch file to get a directory listing, and have it act recursively (call itself) after a set time period. Or use windows scheduler to execute it.

任何具有自动保存功能的文本编辑器都可以做到。您还可以编写一个批处理文件来获取目录列表,并让它在设定的时间段后递归运行(调用自身)。或者使用windows scheduler 来执行。