How to format external USB Drive to Fat 32 under Linux

1. fdisk -l to list out the device for your usb drive

2. fdisk /dev/sdb to fdisk your device sdb and using the following steps to prepare your Fat 32 disk

p – to view the existing partition

d – to delete the existing partition

n – to add new partition

t – to change a partition system’s ID  (b = fat32)

a – to toggle a bootable flag

w – to write table to disk and exit

3.  mkdosfs -F 32 /dev/sdb1 to format the USB drive with a FAT 32 filesystem

That’s all.