1
0 Comments

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

C:\>diskpart

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> clean

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.

DISKPART>

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