Format USB Drive
This will permanently delete any data stored on the USB drive. Make sure the correct drive is selected when following these commands.
If the USB drive does not boot on the target device then try to reformat the USB drive by following these steps:
Insert the USB drive.
Open a Command Prompt as Administrator.
At the Command Prompt type the following pressing Enter after each line:
diskpart
list disk
select disk X (Where X is the number assigned to the target USB drive)
clean
convert mbr
create partition primary
format fs=fat32
assign
active
exit
exitdiskpart
list disk
select disk X (Where X is the number assigned to the target USB drive)
clean
convert mbr
create partition primary size=32768
format fs=fat32
assign
active
exit
exitOpen a terminal and run this command to locate the right device:
lsblkUse
fdiskcommand accordingly:sudo fdisk /dev/sdX;Xstands for the right disk letter something in the region ofb,cordType o to change the partition table type to
dosWhen the command runs type d and enter to delete the existing partition.
Type n to create new partition.
Accept the defaults when ask for the
partition typeandsize(assuming that is desirable).Type p to see what you have done.
Type t to change the file system type.
Type c to create a
W95 FAT32 (LBA)partition.Type a to activate that partition so it automounts.
Type w to write the changes to disk
Format again from the terminal:
sudo mkfs.vfat /dev/sdXiNote:
irepresents the partition number in this case it should be1
Close the terminal.
Source: askubuntu.com
Last updated