Pages

Format pen drive using command line in Linux


Apply following commands to know the drive name of the USB pen drive.

sudo su
fdisk -l



Unmount the pen drive before the formatting process.

umount /dev/sdb1

Apply the following command to format the pen drive in FAT 32 format.

mkdosfs -F 32 -I /dev/sdb1

1 comment: