Skip to content

Commit 22065be

Browse files
authored
Add section for formatting multiple Dev Drives with command line (#3753)
* Add section for formatting multiple Dev Drives with command line * Update format command
1 parent 3df0415 commit 22065be

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

hub/dev-drive/index.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: mattwojo
55
ms.author: mattwoj
66
manager: jken
77
ms.topic: article
8-
ms.date: 08/14/2023
8+
ms.date: 09/05/2023
99
---
1010

1111
# Set up a Dev Drive on Windows 11 (Public Preview)
@@ -90,6 +90,24 @@ To find and **use unallocated space on an existing drive**, you can open **Syste
9090

9191
![Screenshot of Disks & volumes storage list with unallocated storage space.](../images/dev-drive-unallocated.png)
9292

93+
### Format a storage volume as a Dev Drive from the command line
94+
95+
As an alternative to using Windows Settings, there are two options for creating Dev Drive storage volumes from the command line. Both options require that you open the command line as an Administrator. You must be a member of the Admin group to format a hard drive. These command line formatting methods may be preferred when creating multiple Dev Drives or as an admin for multiple machines.
96+
97+
1. Using the [Format.com](/windows-server/administration/windows-commands/format) command line tool from Windows CMD or PowerShell:
98+
99+
```CMD
100+
Format D: /DevDrv /Q
101+
```
102+
103+
2. Using the [Format-Volume](/powershell/module/storage/format-volume#-devdrive) cmdlet from PowerShell:
104+
105+
```PowerShell
106+
Format-Volume -DriveLetter D -DevDrive
107+
```
108+
109+
These code samples require that you replace `D:` with the drive location you wish to target. See the links for more options and command parameters.
110+
93111
## How does Dev Drive work?
94112

95113
A [Storage Volume](/windows-hardware/drivers/ifs/storage-device-stacks--storage-volumes--and-file-system-stacks#storage-volumes) specifies how data is stored on the file system, via directories and files, in a particular format. Windows uses NTFS for the system drive and, by default, for most non-removable drives. The [Resilient File System (ReFS)](/windows-server/storage/refs/refs-overview) is a newer Microsoft file system format, designed to maximize data availability, scale efficiently to large data sets across diverse workloads, and provide data integrity with resiliency to corruption. It seeks to address an expanding set of storage scenarios and establish a foundation for future innovations.

0 commit comments

Comments
 (0)