It has to be said that the most popular transfer format (when it comes to file systems) is either FAT32 or NTFS. In today’s article I’ll walk you through creating one of these lowest-common-denominator devices.
First of all, we need to find the device that you want to format. After you’ve attached your pendrive/device, use the lsblk command to determine what your device’s name is.
In my case here, it’s called sda.
First of all, we’ll partition the drive using fdisk.
Partitioning
We’ll create a single partition for the device.
We can take a look at how the partition table now looks with p.
We still need to change the type from Linux to W95 FAT32, which has a code of b.
We now finish partitioning and move onto formatting. We write the partition table with w.
Formatting
Finally, we use mkfs to create a vfat filesystem on our device’s partition.
Remove the USB and then plug it back in. After it mounts automatically, we can verify with df.