My sequence for using diskpart.exe involves specifying the disk number first, and then proceeding to format the disk.


Microsoft DiskPart version 10.0.18362.1

Copyright (C) Microsoft Corporation.
On computer: AAAAAAA

DISKPART> select disk 2

Disk 2 is now the selected disk.


DiskPart succeeded in cleaning the disk.

DISKPART> create partition primary

DiskPart succeeded in creating the specified partition.

DISKPART> format fs=ntfs label="My USB Disk" quick

There is no volume selected.
Please select a volume and try again.


The script appears to be functional and may work on Windows 7, as various online sources suggest. However, when I attempted to use it on my Windows 10 system, I encountered issues.

There is no volume selected

From the displayed screenshot, it is evident that Disk 2 contains a volume. Since my USB flash drive has only one volume, the format process should be successful.

What are your thoughts on this?

Askify Moderator Edited question May 1, 2023