- Now with the help of below command we are going to format this USB with a “vFat” partition, because windows supports either FAT32 or NTFS .
- Here I am using my 4GB USB drive for demo which is detected by “fdisk –l” command as “/dev/sdb” device file. Note that the device USB or the partition to be formatted should be unmounted. You can check it by “mount” command, if mounted use “umount <mount point OR device file name>”.
- Follow the below command with care as in your system the device file name “/dev/sdb” can be different. After execution it’ll ask for confirmation, so press “y” + Enter. Note that, before unmounting any partition or USB you have to come out of the mounted directory.