If the drive is “Offline” or shows a black bar, right-click the disk label (leftmost gray box) and select “Online” or “Initialize Disk” first. Method 3: Format via Command Prompt (For Power Users) When other methods fail—or you need to script the process—use DiskPart.
Type select disk X (replace X with the correct number).
Choose a volume label, file system, and allocation size. Check “Perform a quick format” if desired.
Type cmd in the Windows search bar. Right-click “Command Prompt” and choose “Run as administrator.”
Type clean — this wipes all partitions and data completely.
Click “This PC” on the left sidebar. You’ll see all your drives listed under “Devices and drives.”
In the lower graphical section, right-click the partition (the blue or black bar) on your target drive. Select “Format…”
Click OK , then OK again. The drive will be formatted.
If the drive is “Offline” or shows a black bar, right-click the disk label (leftmost gray box) and select “Online” or “Initialize Disk” first. Method 3: Format via Command Prompt (For Power Users) When other methods fail—or you need to script the process—use DiskPart.
Type select disk X (replace X with the correct number).
Choose a volume label, file system, and allocation size. Check “Perform a quick format” if desired.
Type cmd in the Windows search bar. Right-click “Command Prompt” and choose “Run as administrator.”
Type clean — this wipes all partitions and data completely.
Click “This PC” on the left sidebar. You’ll see all your drives listed under “Devices and drives.”
In the lower graphical section, right-click the partition (the blue or black bar) on your target drive. Select “Format…”
Click OK , then OK again. The drive will be formatted.