Storage · Windows 11
Fix a PC that freezes for a few seconds every time a drive wakes
A freeze of a few seconds that always ends on its own — often with a faint click or spin-up sound — is a sleeping drive waking up while Windows waits for it. Raise the drive sleep timeout first so the drive stops dropping out mid-session, and treat a drive that takes longer and longer to wake as a health warning.
What you need
- A note of which drive you were opening. The freezes usually happen when you open a file, folder, or app stored on one particular secondary drive.
- Your important files backed up. A healthy drive wakes in a second or two; one that stalls longer can be failing, so back up before you experiment.
- Admin access for the power settings. Changing the drive sleep timeout needs it.
Read the problem before you touch it
- Match the freeze to a drive, not to an app. Leave the PC idle for half an hour, then open a folder on your second drive. If the freeze happens right then — and opening something on the system drive does not cause it — the drive was asleep and everything waited while it spun back up.
- Listen and watch for the wake. A mechanical drive often clicks or whirs as the freeze clears. That sound at the exact moment the PC recovers is the strongest confirmation you will get without any tools.
- Note how long the freeze lasts. One to three seconds is a normal wake. Freezes stretching toward ten seconds, or getting longer over weeks, point at a drive that is struggling to come back, which changes this from an annoyance fix to a data-safety job.
The simple fixes, in order
- Raise the hard disk sleep timeout. Go to Settings > System > Power if your PC shows drive options there; otherwise open Control Panel > Power Options > Change plan settings > Change advanced power settings, expand Hard disk > Turn off hard disk after, and set it much higher, or to 0 so drives never sleep while the PC is on. This one change ends most cases.
- Apply the same thinking to USB drives. In the same advanced power settings, expand USB settings > USB selective suspend setting and disable it if the waking drive is an external USB drive. Test by leaving the PC idle and opening the drive again.
- Stop parking frequently used files on the sleepy drive. If the freezes come from opening recent documents, move your everyday working files to the system drive and keep the secondary drive for archives you open rarely. Fewer wake-ups means fewer freezes even before any setting changes.
- Restart once after changing power settings. Power plan changes can leave a drive controller in its old behavior until a restart. Restart, leave the PC idle past the old timeout, and test the same folder again.
The advanced route
- Set the timeout precisely with powercfg. Open Windows Terminal as administrator and run
powercfg /change disk-timeout-ac 0to stop drives sleeping on mains power. Microsoft documents the available switches in Powercfg command-line options. - Turn off aggressive link power management for the storage controller. In the advanced power settings, expand PCI Express > Link State Power Management and set it to Off. On systems where the drive sits behind a controller that powers down its link aggressively, this stops the extra wake delay the plain disk timeout does not cover.
- Repair system files if freezes happen with no drive activity. If the pause occurs even when nothing is being read from any secondary drive, open Windows Terminal as administrator, run
DISM /Online /Cleanup-Image /RestoreHealth, then runsfc /scannow. Microsoft documents both tools in Using System File Checker in Windows.
End state
- After a long idle period, opening a folder on the secondary drive responds immediately.
- A full work session passes with no multi-second freezes.
- Your files on the secondary drive are backed up, whatever the drive's health turns out to be.
When it goes wrong
- The freeze now never ends and the drive vanishes. Stop changing settings. A drive that drops off the system instead of waking is failing; copy what you can while it is visible, smallest and most important files first, and plan its replacement.
- Freezes happen on the system drive too. Then sleep timing is not the cause. Look at overall drive health and system file repair instead — the advanced repair step is the starting point, not the power settings.
- The setting keeps resetting itself. A maker utility or a power plan switch is overwriting it. Set the timeout in the active plan, check for a storage or power utility from the PC maker, and confirm the plan itself is not being changed by a scheduled profile.
Related fixes
-
Fix a laptop fan that pulses on and off every few seconds at idle
A fan that spins up, stops, and spins up again every few seconds at idle is usually chasing a temperature that hovers right at its turn-on point, or a background task keeps waking the processor. Calm the temperature swings first, find the background load next, and leave the fan settings themselves for last.
-
Fix a drive that Windows asks to scan and fix every time you plug it in
The scan-and-fix prompt appears when a drive's file system was left in a dirty state — usually removed without ejecting, or unplugged mid-write. Let Windows check it once, properly, and change the removal habit that keeps setting the flag; if the prompt survives a clean check, the drive itself needs attention.
-
Fix a PC that boots into the BIOS setup screen every time instead of Windows
When a PC lands in BIOS setup on every start, the firmware is telling you it cannot find — or no longer trusts — something it needs to hand over to Windows. Work through the clock battery, the boot order, and the boot mode in that order and most machines go back to starting normally.
-
Fix a PC that loses its firmware settings every time it is unplugged
Firmware settings that vanish whenever the cord comes out point to one small coin cell on the motherboard that keeps them alive while the PC is unplugged. Note every setting before you swap it, fit the new battery, and set the clock and boot order once — they should hold from then on.
Sources
- Microsoft Learn, Powercfg command-line options — the power configuration switches, including disk timeout behavior.
- Microsoft Support, Using System File Checker in Windows — running SFC and DISM to repair missing or corrupted system files.