Sunday, July 7, 2013

Format a flash disk in linux

Hi guys am going to show you how to format a flash drive in linux
okay first open the terminal
Then type Sudo fdisk -l
then it will tell you to input password for sudo, for this enter your password
then a list like shown in the picture below will be displayed

Look for your flash drive it will be listed as /dev/sdb or /dev/sdb1 or /dev/sdb(something), dont choose any drive listed as /dev/sda because those are your computer hard drives
ok after you spot your Flash drive type:
mkfs.vfat /dev/sdb (this is the name of your flash drive)
Wait for a few minutes and your flash will be formatted
the command mkfs says the flash is to be formatted
vfat(fat32)specifies the file system your flash is to have, this implies that you can specify other file systems for your drive e.g ntfs,vfat etc
/dev/sdb specifies your flash drive
thanks for visiting..

No comments:

Post a Comment