External Drive Keeps Spinning Up and Down on Mac? 5 Fixes

External Drive Keeps Spinning Up and Down on Mac? 5 Fixes

Written by

in

Quick answer: To stop an external hard drive from constantly cycling on macOS, exclude the drive from Spotlight Indexing under System Settings > Siri & Spotlight > Spotlight Privacy. Then, open Terminal and run ‘sudo pmset -a disksleep 0’ to prevent system-level sleep timeouts, and turn off ‘Wake for network access’ in your Mac’s Energy Saver settings.

If your mechanical external hard drive constantly spins down to idle only to spin right back up a minute later, you are not alone. On modern macOS versions and Apple Silicon Macs, external spinning drives frequently get caught in an endless start-stop loop.

This behavior is frustrating to listen to, can cause system stalls when Finder waits for disks to wake, and causes unnecessary mechanical wear on drive heads and spindle motors.

Why this happens

Three main factors cause external drives to cycle power continuously on macOS:

  1. Background Indexing and Daemons: Background services like Spotlight (mds), Time Machine, and fseventsd periodically check connected storage. If an external drive goes idle, a background query from one of these processes forces the drive to spin up immediately to read metadata.
  2. Aggressive Enclosure Firmware: Many external hard drive enclosures and multi-drive docks contain their own internal controller chips (such as ASMedia or JMicron). These controllers often run proprietary firmware with an aggressive 1- to 3-minute sleep timer that operates completely independently of macOS power settings.
  3. macOS DarkWake Cycles: Modern Macs enter a low-power maintenance state during sleep known as DarkWake. The Mac periodically checks for network events, updates, and peripheral states while the screen stays black, which triggers connected USB buses and spins up external platters.

Here is how to stop the cycle.

Fixes to try

1. Disable disk sleep and network wake in macOS

The first step is ensuring macOS is not ordering the drive to sleep while system services still actively query it.

  1. Open the Apple menu and select System Settings.
  2. In the sidebar, select Energy Saver (on a desktop Mac) or Battery (on a MacBook).
  3. If you are on a MacBook, click Options at the bottom right of the Battery pane.
  4. Locate Put hard disks to sleep when possible and set it to Never.
  5. Locate Wake for network access and change it to Never.
  6. To apply these rules definitively across all power states, open the Terminal app (via Applications > Utilities > Terminal) and enter:
    bash
    sudo pmset -a disksleep 0
  7. Type your administrator password when prompted and press Enter.

Setting disksleep to 0 tells macOS never to send the software sleep command to connected disks.

2. Exclude the drive from Spotlight indexing

Spotlight is the single most common reason a drive spins up right after spinning down. When files are modified anywhere on your system, Spotlight frequently queries secondary volumes, forcing idle platters to spin back up.

  1. Connect your external drive and ensure it mounts on your desktop or in Finder.
  2. Open System Settings > Siri & Spotlight.
  3. Scroll to the bottom of the window and click the Spotlight Privacy button.
  4. Click the + (Add) button.
  5. Select your external hard drive volume from the sidebar and click Choose.
  6. Verify the volume appears in the list of locations Spotlight is prevented from searching, then click Done.

If you store large media libraries on the drive and do not rely on Spotlight to search them, this single change stops routine read interruptions.

3. Check for background process activity

If a specific background process keeps polling your drive, identify it through the command line rather than guessing.

  1. Open Terminal.
  2. Run the following command to monitor file system activity targeting your drive (replace DriveName with the actual name of your mounted drive volume):
    bash
    sudo fs_usage -w -f filesys | grep -i "/Volumes/DriveName"
  3. Press Enter and watch the output for 1 to 2 minutes.
  4. Note the process names in the left-hand column. Common offenders include cloud backup agents, antivirus scanners, and torrent clients.
  5. Press Control + C in Terminal to end the monitoring session.
  6. Open the settings of the identified application and exclude the external volume from real-time monitoring.

4. Use a keepalive script to override enclosure firmware

If you disabled disksleep and excluded the drive from Spotlight, but the drive still spins down every 2 to 3 minutes, your hard drive enclosure’s internal controller is enforcing its own sleep timer.

Because the enclosure ignores macOS sleep settings, the most reliable workaround is to keep the drive active by writing a harmless timestamp file every 60 seconds.

  1. Open Terminal.
  2. Create a hidden keepalive script by running:
    bash
    nano ~/keepalive.sh
  3. Paste the following script (replace YourDriveName with your exact external drive volume name):
    bash
    #!/bin/bash
    while true; do
    if [ -d "/Volumes/YourDriveName" ]; then
    touch "/Volumes/YourDriveName/.keepalive"
    fi
    sleep 60
    done
  4. Press Control + O, then Enter to save the file. Press Control + X to exit nano.
  5. Make the script executable:
    bash
    chmod +x ~/keepalive.sh
  6. You can run this in the background while your drive is mounted with:
    bash
    nohup ~/keepalive.sh > /dev/null 2>&1 &

Updating the modification date of a single hidden file resets the enclosure’s internal idle counter without straining the drive.

5. Connect directly to avoid USB hub resets

Unpowered USB hubs and certain multi-port Thunderbolt docks drop bus voltage momentarily when other devices negotiate power or disconnect. This causes the external hard drive to reset its interface, triggering a power cycle.

  1. Unplug the external drive from your dock or hub.
  2. Connect the drive directly to a Thunderbolt / USB-C port on your Mac using an appropriate certified cable.
  3. If your drive enclosure requires external AC power, ensure it is plugged into a wall outlet rather than drawing power exclusively over the USB bus.
  4. If the issue disappears when connected directly, replace the hub or use a powered dock that provides dedicated, uninterrupted wattage to each port.

If nothing works

If the drive continues to spin up and down despite all software modifications and a direct connection, the enclosure’s controller may be failing or incompatible with macOS USB power delivery.

  • Back up immediately: Frequent cycling can cause mechanical heads to park prematurely. Copy your critical files to an alternate drive or cloud storage before proceeding.
  • Swap the enclosure: If the drive inside is standard SATA, remove it from its current housing and place it into a different external enclosure or dock from a reputable brand known for macOS compatibility (such as OWC).
  • Check drive health: Connect the drive and run First Aid in Disk Utility (located in Applications > Utilities). If the drive reports I/O errors or fails verification, the physical hardware is deteriorating and requires replacement.

FAQ

Does spinning up and down damage the hard drive?

Yes. Mechanical hard drives experience the highest physical stress and power draw during spin-up, as the spindle motor accelerates the platters and the read/write heads unpark. Constant cycles every few minutes degrade the drive’s mechanical lifespan much faster than continuous operation.

Why does my drive spin up even when the Mac is asleep?

Modern Macs perform background maintenance tasks during sleep through DarkWake. During these brief intervals, the system checks network alerts, mail, and connected accessories. When macOS checks the USB bus, it provides power that wakes connected external drives even if your display remains off.

Does this issue affect external solid-state drives (SSDs)?

No. SSDs have no moving platters, motors, or physical heads. While an SSD also responds to system sleep and idle commands, it switches power states instantly and silently with zero mechanical wear.

Sources & credits