Dev Drive

On this page 6

Dev Drive is a Windows 11 storage volume formatted with the Resilient File System (ReFS) and designed specifically for developer workloads such as source code repositories, build output and package caches. In Windows storage & file systems, it stands apart from an ordinary data volume because it combines file system optimizations with a trusted designation that lets Microsoft Defender Antivirus scan files in performance mode.

The goal is shorter build, clone and restore times on large projects with many small files. Dev Drive is available in Windows 11, version 22H2 with the September 2023 update and later, and it requires at least 50 GB of space.

How Dev Drive speeds up file-heavy development work

Dev Drive improves performance through two separate mechanisms. The first is the file system itself: ReFS provides block cloning, which lets tools copy large files by referencing existing blocks instead of duplicating data, and its metadata handling suits workloads that create and delete thousands of files per minute.

The second mechanism is asynchronous antivirus scanning. On a trusted Dev Drive, Microsoft Defender Antivirus in performance mode defers scans until after a file is opened, rather than blocking each file operation while the scan completes. Compilers, linkers and package managers therefore wait less on input and output, while files are still examined.

A third element is control over file system filter drivers. Windows attaches only filters that an administrator explicitly allows on a Dev Drive, which reduces the overhead added by backup agents, indexing tools and other software that intercepts every file access.

The table below shows which component contributes to each gain.

ComponentWhat it doesMain benefit
ReFS file systemStores files with copy-on-write metadataFast handling of many small files
Block cloningCopies by sharing existing blocksNear-instant large file copies
Defender performance modeScans files asynchronouslyLess waiting during builds
Filter allow listLimits attached filter driversLower per-operation overhead
Trusted designationMarks the volume as developer storageEnables performance mode
Performance components of a Dev Drive

Creating and configuring a Dev Drive

A Dev Drive can be created from Settings > System > Storage > Disks & volumes, with the Format-Volume -DevDrive PowerShell parameter, or during Visual Studio setup. Administrators choose between a virtual hard disk and a partition carved from unallocated space on an existing disk.

OptionHow it worksBest suited for
New VHD or VHDXCreates a virtual disk file on an existing volumeFlexible size, easy to move or delete
Dynamically expanding VHDXGrows as data is addedSaving space on smaller SSDs
Unallocated spaceFormats free space as a native partitionMaximum performance on a dedicated disk
Resized existing volumeShrinks a volume to free space firstSystems with no unallocated space
Dev Drive creation options

After creation, the fsutil devdrv command manages the volume. fsutil devdrv query reports whether a volume is a trusted Dev Drive and which filters are attached, fsutil devdrv trust assigns trust, and fsutil devdrv setfiltersallowed defines the filter allow list. Group Policy and Intune settings let organizations enable or disable Dev Drive and control whether antivirus can be filtered.

To gain the full benefit, developers should redirect package caches to the Dev Drive with environment variables such as npm_config_cache, NUGET_PACKAGES, PIP_CACHE_DIR and CARGO_HOME, because restored dependencies often account for most of the file activity in a build.

Dev Drive compared with other Windows volumes

Dev Drive is not a new file system; it is a ReFS volume with a specific purpose and security policy. The comparison below shows how it differs from the usual NTFS system volume and from a general ReFS data volume.

PropertyDev DriveNTFS system volumeStandard ReFS volume
File systemReFSNTFSReFS
Antivirus scanningAsynchronous performance modeSynchronous real-timeSynchronous real-time
Filter driversAllow list onlyAll registered filtersAll registered filters
BootableNoYesNo
Minimum size50 GBNo special minimumNo special minimum
Intended contentCode, builds, package cachesWindows and applicationsGeneral data or virtualization
Dev Drive compared with NTFS and standard ReFS volumes

Because Dev Drive is ReFS, NTFS features such as file compression and EFS encryption are not available on it. BitLocker volume encryption is supported and remains the recommended protection for source code on portable devices.

Security considerations and limitations

The central trade-off of Dev Drive is speed against strictness of scanning. Performance mode still inspects files, but a malicious file can be opened before its scan finishes, so Microsoft recommends storing only development content on the volume and keeping downloaded installers, documents and executables for daily use elsewhere.

  • Do not install applications on a Dev Drive; it is meant for data that tools read and write.
  • Trust is local: a Dev Drive attached to another computer is not trusted until an administrator trusts it there.
  • Third-party antivirus may not offer an equivalent performance mode, which reduces the benefit.
  • Not removable media: Dev Drive is not supported on removable drives and cannot hold the operating system.

Common problems and their usual causes are listed below.

SymptomLikely causeFix
No speed improvementPackage caches remain on drive CRedirect cache environment variables
Option missing in SettingsOlder Windows build or policy blockUpdate Windows or review Group Policy
Volume shows as untrustedDrive moved or trust removedRun fsutil devdrv trust as administrator
Backup tool stops workingIts filter is not on the allow listAdd the filter with setfiltersallowed
Typical Dev Drive issues

In everyday language

A Dev Drive is a separate storage area for programmers on a Windows 11 computer. Building software means reading and writing huge numbers of tiny files, and normally the antivirus checks each one before the program may continue. That is like a security guard stopping every worker at the door for a full inspection.

On a Dev Drive, the guard checks people after they walk in, so work flows faster while safety checks still happen. Because of that, the drive should only hold project files, not everyday downloads.

Seen in the real world

A software team maintains a large C++ and .NET product with about 400,000 source files. A clean build on a developer laptop took roughly 40 minutes, and real-time antivirus scanning showed up as a major source of disk wait time in performance traces.

Each developer created a 200 GB Dev Drive from unallocated SSD space, cloned the repository onto it and redirected the NuGet and npm caches with environment variables. The IT department approved only the backup filter on the allow list and kept BitLocker enabled.

The clean build time dropped to about 30 minutes, and dependency restores became noticeably faster. Results differed between projects, so the team measured several builds before and after the change rather than relying on a single run.