Features Download Screenshots Blog

โ† Blog

Scan a Huge Drive Fast: What Slows It Down

Scanning a drive sounds trivial: read the folders, add up the sizes. In practice, a naive scanner on a 4 TB drive with three million files can run for an hour, while a well-built one finishes in under a minute. The difference is not magic โ€” it is how the tool talks to the file system, and what the hardware underneath can actually deliver.

Why scans are slow

Every file a scanner touches costs at least one system call to read its metadata (name, size, timestamps, attributes). Those calls dominate the runtime, not the file contents โ€” a scanner never reads the data inside your files, only their directory entries. Three things make that expensive:

Two ways to enumerate a drive

Directory walking works everywhere: NTFS, exFAT, FAT32, APFS, ext4, network shares. It is the portable approach, and its speed depends on parallelism and on how cheaply the OS can answer metadata queries. DiskRaptor uses a parallel walker (jwalk on macOS, walkdir-based traversal with worker threads on Windows and Linux).

Reading the file system's own index is faster where it is possible. On NTFS, the Master File Table is effectively a database of every file on the volume; tools such as WizTree read it directly instead of walking directories, which is why they can scan a large NTFS disk in seconds. The limits are equally real: it only works on NTFS, requires raw volume access (admin rights), and tells you nothing about other file systems.

The hardware floor

No scanner can outrun the disk. On an SSD, metadata reads are fast and parallel queues help; on a spinning drive, random access is dominated by seek time, and too much parallelism can make things slower by causing the head to thrash. On a NAS, every metadata call is a network round trip, and latency โ€” not bandwidth โ€” sets the pace.

StorageWhat to expectPractical advice
NVMe SSD, 1 TB, ~1M filesSecondsNothing to tune
SATA SSD, 2 TB, ~2M filesSeconds to a minuteLet it finish; do not scan twice
HDD, 4 TB, ~3M filesA few minutesAvoid heavy parallel scans; scan while idle
USB 3 external HDDSeveral minutesUSB bandwidth and spin-up dominate
Network share (SMB)Minutes to hoursScan the server locally if you can

Practical settings that actually help

  1. Scan the drive, not the folder tree you happen to have open. One pass over the whole volume is cheaper than five passes over subfolders.
  2. Skip cloud placeholder folders. OneDrive, iCloud Drive and Dropbox folders can force downloads if a tool tries to open files. A metadata-only scanner normally avoids this, but excluding them removes all doubt.
  3. Close the heavy apps. A build, a game or a backup running in the background competes for the same I/O.
  4. Do not disable antivirus permanently. If you are benchmarking, exclude the scanner binary instead โ€” safer and just as effective.
  5. Map network drives locally or not at all. A disconnected mapped drive can stall a scan at startup.
  6. Use a portable build when possible. No installer, no background updater, nothing else running.

What DiskRaptor does with a huge drive

DiskRaptor's scanner is written in Rust and parallelises directory traversal, with a progress chart and a live file counter so you can see whether it is still making progress. Per its documentation the engine handles 12M+ files in seconds on modern hardware, which is roughly six times faster than traditional single-threaded analyzers. Permission errors are skipped rather than aborting the scan, and the UI uses a virtualised tree, so a 20M-node result stays responsive instead of freezing the window.

Those numbers are hardware-dependent โ€” a fast NVMe drive and a slow USB 2 disk will not feel the same โ€” but the design decisions are what matter: parallel traversal, metadata only, no per-file hashing during the size scan, and a UI that does not try to draw millions of rows.

When a scan is not the answer

If you already know the drive is full and you only need the top offenders, you do not need a full scan: sort by file size across the folders you care about, or use the tool's largest-files view. And if the drive is making clicking noises or reporting S.M.A.R.T. warnings, stop scanning and check its health first โ€” a failing disk does not need more I/O, it needs a backup.

Frequently asked questions

Why does the same drive scan faster in one tool than another?

Mostly the enumeration strategy and the number of threads. Tools that read the NTFS MFT skip per-directory calls entirely; tools that walk directories depend on parallelism and on how the OS caches metadata. Both approaches are valid โ€” MFT only works on NTFS.

Can I scan a network drive quickly?

Not usually. SMB adds a round trip per metadata call, so latency dominates. If the share is on a server you control, run the analyzer there and copy the report, or use the server's own tools.

Does scanning damage a hard drive?

No. Reading metadata is gentle compared to copying files. If a drive is already failing, though, any activity can be the last straw โ€” back up before you scan.

Why does the scan stall at a certain percentage?

Usually a slow folder: a network mount, a folder with millions of tiny files, or an antivirus scan on a large archive. Excluding that path and re-running tells you which one it is.

Fast analysis, quiet connection

A scan is local. Your browsing does not have to be: a VPN keeps traffic private on shared networks, antivirus covers the files you download while waiting for the scan, and an ad blocker cuts the tracker load in the background.

Affiliate disclosure: the links below are affiliate links. If you buy through them, we may earn a commission at no extra cost to you โ€” it helps keep DiskRaptor free.

More about our Surfshark partnership.

Related reading

Reclaim your disk space

DiskRaptor is free, open source, and runs 100% locally.