Monday, June 18, 2007

How to format your flash drive

This is how you can format your flash drive(thumbdrive, pendrive) in any linux machine

1. To see what is the filesystem for your flashdrive

  • type -> df

2. Type -> mkfs /dev/sdb1
(The /dev/sdb1 is according to your outcome of the df command previously: refer above diagram)
This command will format the flash drive to ext3 format which is the default.
To format it to fat;
type -> mkfs -t vfat /dev/sdb1


Anonymous said...


What's the difference if we command direcly the "mkfs -t vfat /dev/"device" to format the flash drive?

blackorga said...

You can use "mkfs" to format the drive to ext3 and use "mkfs -t vfat" to format the drive to fat32

Anonymous said...


this is a complete page on the topic..

blackorga said...

Thanks ankursworld :)

Branded USB Sticks said...

Its hard to find the quality post but you have done a nice job buddy.

Anonymous said...

Very useful. Thanks!

reevasmith said...

Useful information!!! I guess this video can help you out, check out USB Protection

Anonymous said...

Can you explain why my OS is asking me to unmount first before formatting.Can' it format when the drive is formatted.Anyway great post,thanks a lot

rax said...

You really did a great job on that! useful content for people.Linux Flash Drive

Anonymous said...

Thanks for the help!

Anonymous said...

#1. fdisk -l
#2. umount /dev/sdc1
#3. mkfs.vfat /dev/sdc1