Format Linux USB drive in Windows
Format Linux USB drive in Windows (not visible in file explorer)
Launch the command prompt or Powershell, run the command diskpart. The Diskpart command line application will open.
First, type list disk to show all of the disks connected to the PC. Now determine which of these is your Linux disk. You can usually identify it based on the sizes listed. You will want to be 100% sure of your selection here because the following commands will wipe ALL DATA from whichever disk you select.
Select the disk by using the command select disk X where X is the number of your disk from the previous command. Once you have selected your disk, use clean it to remove all existing partitions.
Create a new partition create partition primary and then mark it as active. Finally, we can format the disk with format fs=Fat32 quick. Now your USB drive or SD card is ready to be used again.
For quick reference, here are all of the commands in order:
diskpart
list disk
select disk X
clean
create partition primary
active
format fs=Fat32 quick
Comments
Post a Comment