
Once you complete the steps, open File Explorer and navigate to “This PC,” and you should now be able to access and store data on the removable drive. In the above command, make sure to change “1” with the disk number of the drive you want to repair and change “F” with the letter you want to assign to the storage.


Type the following command to assign a drive letter to the USB drive and press Enter: Get-Partition -DiskNumber 1 | Set-Partition -NewDriveLetter F In the above command, make sure to change “1” with the disk number of the drive you want to repair and change “myUSB” with the name you want to use for the storage. Type the following command to create a new partition using the NTFS file system and assign a name for the USB drive, and press Enter: New-Partition -DiskNumber 1 -UseMaximumSize | Format-Volume -FileSystem NTFS -NewFileSystemLabel myUSB Type Y to confirm that you want to wipe the specified drive and press Enter. If you specify the number incorrectly, you could wipe out the wrong drive causing data loss. In the above command, make sure to change “1” with the disk number of the drive you want to repair. Type the following command to erase the drive and press Enter: Get-Disk 1 | Clear-Disk -RemoveData Type the following command to identify the removable drive you want to repair and press Enter: Get-Disk Search for PowerShell, right-click the result, and select the Run as administrator option.

Also, make sure to select the correct drive, as you could accidentally wipe the incorrect storage. Quick note: This process will completely erase everything stored on the drive.
