TechBuzzPro

How to Identify Programs Using Your External Hard Drive

· 5 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step‑by‑Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes—you can see which programs are accessing your external hard drive by using built‑in system utilities or free command‑line tools on Windows and macOS.

What You'll Need

  • A Windows PC (7, 8, 10, 11) or a Mac running macOS 10.12 or later
  • The external hard drive connected and mounted
  • Administrator rights on the computer (required for some tools)
  • Optional: Sysinternals "Handle" utility for deeper inspection on Windows

Step‑by‑Step

  1. Open the appropriate system monitor.
    • On Windows, press Ctrl+Shift+Esc to launch Task Manager, then click Performance → Open Resource Monitor at the bottom.
    • On macOS, open Activity Monitor from Applications > Utilities or press Command+Space, type "Activity Monitor" and hit Return.
  2. Filter for disk activity on the external drive.
    • Windows: In Resource Monitor select the Disk tab. In the File column look for entries that start with the drive letter of your external disk (e.g., E:\). The corresponding Process Name column shows the program using that file.
    • macOS: In Activity Monitor click the Disk tab. Sort by Bytes Written or Bytes Read. Hover over a process to see the full path of the file it is accessing; paths that begin with /Volumes/YourDriveName/ belong to the external drive.
  3. Use a command‑line view for a complete list.
    • Windows: Open an elevated Command Prompt (Win+X → Windows Terminal (Admin)). Run openfiles /query /fo csv | findstr /i "E:" (replace E: with your drive letter). This prints every open file on that volume together with the owning process ID.
    • macOS: Open Terminal (found in Applications > Utilities) and execute lsof | grep "/Volumes/YourDriveName". Each line lists a process, PID, and the exact file path on the external volume.
  4. Identify the culprit program.
    • Take the PID (process ID) from the previous step and match it to the process name shown in Task Manager (Windows) or Activity Monitor (macOS). You can also type tasklist /FI "PID eq 1234" on Windows or ps -p 1234 -o comm= on macOS to retrieve the name directly.
  5. Close or pause the program if needed.
    • In Task Manager or Activity Monitor, right‑click the offending process and choose End task (Windows) or Quit Process (macOS). Use this only for programs you recognise and that you are comfortable terminating.
  6. Optional deeper dive with Sysinternals.
    • Download the free Handle utility from Microsoft. Run handle.exe -a E: (replace E: with your drive letter) from an elevated command prompt. The output lists every handle opened on that volume, grouped by process.

Common Mistakes

  • Looking at the wrong drive letter. External drives can change letters after reconnecting; always verify the current letter in File Explorer (Windows) or Finder (macOS) before filtering.
  • Forgetting to run commands with administrator privileges. Without elevation, openfiles and handle will return incomplete results.
  • Assuming a process that appears in the list is the cause of a slowdown. Some background services (e.g., Windows Search indexing) routinely touch external media and are harmless.
  • Using lsof without quoting the volume path on macOS. If the drive name contains spaces, wrap it in double quotes: lsof | grep "/Volumes/My External Drive".

Tips

  • Enable File Explorer preview pane (Windows) to quickly see which files are open when you suspect a program is locking a folder.
  • On macOS, add the external drive to the Sidebar in Finder and press Command+I on it; the "Get Info" window shows the number of open files, which can hint at activity.
  • Schedule a brief disk cleanup after you finish work with the drive to ensure no hidden temp files are left behind.
  • If you regularly need to audit drive usage, create a small batch script (Windows) or shell script (macOS) that runs the appropriate command and writes the output to a log file for later review.

Troubleshooting

If the steps above do not reveal any processes, try the following sequence.

  1. Restart the computer. A simple reboot clears lingering handles that may not appear in real‑time monitors.
  2. Check for pending Windows updates or macOS system updates. Occasionally a system component responsible for file indexing is disabled until the next update cycle.
  3. Disconnect and reconnect the external drive. This forces the OS to re‑enumerate the device and can reset stale handles.
  4. Run the utilities as the built‑in Administrator account (Windows) or as a user with sudo rights (macOS). Use sudo lsof | grep "/Volumes/YourDrive" on macOS to get full visibility.
  5. Use third‑party disk‑utility software. Tools like "Process Explorer" (Windows) or "iStat Menus" (macOS) provide richer visualisation of file‑handle activity.
  6. If a specific program keeps re‑locking the drive, reinstall or update that program. Corrupt installations sometimes leak handles.

Frequently Asked Questions

Can I see which files are locked without closing the program?

Yes. Both Resource Monitor (Windows) and Activity Monitor (macOS) show the exact file path for each open handle, so you can identify the locked file without terminating the process.

Why does my external drive stay busy after I close all visible apps?

Background services such as Windows Search indexing, Time Machine (macOS), or antivirus scans may continue to read or write to the drive even when no foreground app is open.

Is it safe to end a process that is using the drive?

Ending a process that you recognise (e.g., a video player) is generally safe, but terminating system services or unsaved work can cause data loss. Always try to close the program normally first.

Do I need third‑party software to get accurate results?

The built‑in tools are sufficient for most cases. Third‑party utilities like Sysinternals Handle or Process Explorer can provide more detailed handle trees, but they are optional.

Can I monitor drive usage in real time?

Yes. Keep Resource Monitor or Activity Monitor open while you work; they refresh every few seconds and will show new processes as they start accessing the external volume.

What if the drive letter changes after a reboot?

Open File Explorer (Windows) or Finder (macOS) immediately after reconnection to note the new letter or mount point, then adjust the commands accordingly.