How to format pen drive to VFAT using mkfs when disk utility or gparted do not recognize it

Sometimes, we find that a pen drive simply cannot be formatted using the Disk Utility or gparted in Linux. In such a situation, open a terminal on your Linux computer, and enter the command as below to format the pen drive.

$ sudo mkfs.vfat -n ‘Label’ -I /dev/sda <enter>
where ‘Label’ in the quotes can be any name you want to give to the label of the pen drive.