Nefarius.Tools.DDG 1.0.0

Prefix Reserved
dotnet tool install --global Nefarius.Tools.DDG --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local Nefarius.Tools.DDG --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Nefarius.Tools.DDG&version=1.0.0
                    
nuke :add-package Nefarius.Tools.DDG --version 1.0.0
                    

Dev Drive Grow (DDG)

.NET build NuGet version NuGet downloads Windows 11 x64 Built with .NET 10 License: MIT Assisted by Codex

Grow a mounted Windows Dev Drive's VHDX, GPT partition, and ReFS filesystem in one command.

This project was built with assistance from an AI coding agent. See the disposable-drive test below for the behavior verified on Windows.

About

DDG uses the Windows Virtual Disk API for image growth and Windows Storage for partition growth. It reads the final filesystem capacity directly from ReFS.

Features

  • Preview the backing image, volume identity, current capacities, host free space, and Windows boot registration.
  • Grow an attached VHDX and its ReFS partition in place. Retrying with the same absolute target resumes partial growth.
  • Verify that an existing Windows boot-attachment record survives resize.
  • Mount a detached VHDX and register it for startup through Windows on 24H2 or later.

Supported systems

  • Runtime Windows 11 with Dev Drive enabled. The .NET tool needs the .NET 10 SDK to install and a .NET 10 or later runtime to run. The self-contained build targets x64 and bundles .NET 10.
  • Image layout Local, standalone fixed or dynamically expanding VHDX with a writable, healthy GPT disk. The last partition must be the sole basic-data partition and contain a healthy ReFS Dev Drive. Microsoft reserved partitions can precede it.
  • Permissions Run in an administrator shell. You can also prefix the examples with gsudo.
  • Boot registration Windows 11 24H2 or later, with the backing volume accessible at startup.

The tool grows images only. Keep a current backup and use a standalone image outside any checkpoint chain. Dynamic VHDXs can consume additional physical host space over time.

Installation

dotnet tool install -g Nefarius.Tools.DDG

This puts devdrive-grow on PATH. You can also build the executable from source as described under Build and test.

To update or remove the tool, run:

dotnet tool update -g Nefarius.Tools.DDG
dotnet tool uninstall -g Nefarius.Tools.DDG

Quick start

Run these examples in an administrator shell. Replace D: and 256GiB with your drive and target.

devdrive-grow D: --to 256GiB
devdrive-grow D: --to 256GiB --apply

The first command previews the operation. The second grows the image and extends the partition and ReFS into available contiguous space. A quoted VHDX path works in place of the drive letter. The target is the final virtual disk capacity and accepts whole MiB, GiB, or TiB. Partition metadata and ReFS allocation granularity reduce usable capacity.

If growth stops halfway, inspect the preview and rerun with the same target once the storage error is resolved. The tool reads the actual sizes and continues from the completed layers.

Restore boot attachment

Use the full path to the detached VHDX. If it is currently mounted without registration, close files on it and dismount it first.

devdrive-grow "C:\Dev Drives\work.vhdx" --boot-attach
devdrive-grow "C:\Dev Drives\work.vhdx" --boot-attach --apply

The apply command mounts the image and reads back its Windows startup record. An already mounted image with a matching registration makes this command a no-op.

Build and test

Use the .NET 10 SDK on Windows.

dotnet build DevDriveGrow.csproj -c Release
dotnet publish DevDriveGrow.csproj -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true -p:EnableCompressionInSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:DebugType=None -o publish
.\publish\devdrive-grow.exe --help

CI builds the CLI on Windows and runs the help command. To test disk changes, run the following from Windows PowerShell 5.1 as administrator on Windows 11 24H2 or later. Choose an ASCII scratch directory on a fixed local disk.

.\Test-DisposableDrive.ps1 -Executable .\publish\devdrive-grow.exe -Scratch C:\Temp

The test creates and removes a disposable Dev Drive. It checks boot registration, live growth with a file open, the final capacity and file hash, and same-target retries. Boot verification reads Windows' registration record. The test leaves a transcript and performs no reboot.

Support

Report reproducible DDG defects with the Windows build, exact command, and relevant output. Include a disposable-drive transcript if it reproduces the issue. Remove sensitive paths and volume labels before posting. GitHub Issues

License

MIT. License text

Sources

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.0.0 113 11/24/2026