Daily Archives: April 8, 2023

Clearing & formatting a drive from the command line using Diskpart

Published by:

Run diskpart from the Commmand prompt – Run CMD from the Start Menu or Run dialogue box using WinKey + R to get to the command prompt

Then use the commands below in sequence within the diskpart interface

list disk

select disk [#] (adding the reference number from the list command above)

clean (permanent delete content)

create partition primary

format fs=ntfs

assign (gives a drive letter – unspecified)

exit to leave diskpart