User Tools

Site Tools


quick_guide:prepare_flash

Clean and Format a Flash Drive

PowerShell

This works even if the USB flash drive has unknown (UNIX) partitions.
Filesystems can be NTFS, FAT32 or exFAT.
This will completely remove any data on the USB flash drive.

To clean and format a removable drive with PowerShell, use these steps:

Run PowerShell as administrator:

Get-Disk
New-Partition -DiskNumber DISK-NUMBER -UseMaximumSize
Get-Partition -DiskNumber DISK-NUMBER | Format-Volume -FileSystem FILE-SYSTEM -NewFileSystemLabel DRIVE-NAME
Get-Partition -DiskNumber DISK-NUMBER | Set-Partition -NewDriveLetter DRIVE-LETTER
quick_guide/prepare_flash.txt · Last modified: 2022/02/17 12:54 by gcooper