Many times it happens that your
pen drive or memory cards does not formatted from file manager so you
have to format it from terminal. In this tutorial, it is shown that
how to format pen drive or any other hard-disk or memory card from
terminal using commands in Ubuntu.
This video gives you a complete
idea of how to format pen drive from terminal and which commands you
have to type.
I also attached the screenshots
of this commands from terminal window step by step.
[1] First of all type the
below command for know the name of your pen
drive or memory card. [here | (pipe) operator is used which is given
above your enter key in most of keyboards.]
dmesg | tail
[2] Then unmount your pen drive
using the following command.
sudo umount /dev/sdb1
And enter your password.
[3] Then enter the following
command to format your pen drive with
FAT32 partition.
sudo mkfs.vfat -n 'Ubuntu'
-I /dev/sdb1
Your pen drive is now formatted
and ready to use.





This is most needed thing for the desktop user. Thanks for this information
ReplyDeleteWELCOME . . .
DeleteThanks :)
ReplyDeleteWELCOME . . .
Deletethanks dude..............
ReplyDeleteWELCOME . . .
Deleteit's Awesome.....
ReplyDeletei can't format my p.d before seen your blog.
Than'x...
welcome . . .
Deleteit's Awesome....
ReplyDeletei can't format my P.D before seen your blog.
Than'x ....
Thanks
ReplyDeletewelcome . . .
DeleteWhat about doing it in GUI. I think its easier than this
ReplyDeleteit does not format your drive to fat32, it just delete your data . . .
DeleteThanks much!! it solved my problem
ReplyDeletewelcome . . .
DeleteNice Post Dude.... .. Ur trick got the ting get in2 wrk.. Thankz a lot Buddy.. :)
ReplyDeletewelcome . . .
Deletegood work
ReplyDeleteif any use find difficulty then view this video https://www.youtube.com/watch?v=z6TEh762Vec
again great work . and i like the screen shots it makes thing easier .
thank you . . .
Deletebtw video is very informative . . .
Thanks. It was really needed.
ReplyDeletewelcome, I also find it very lately
Deletethanks
ReplyDeletewelcome . . .
Deletethnks!!it's working..
ReplyDeletewelcome . . .
Deletemy pd doesnot has any password...
ReplyDeleteand pressing just enter
it shows sorry,try again i.e. incorrect password
it asks for your password of the user in which you logged in not pendrive password
DeleteTHanks a lot author....!!!
ReplyDeleteAuthor = daksh bhatt
welcome . . . :)
DeleteThanks..
ReplyDeleteIt is not working, It is showing message "mkfs.vfat: unable to open /dev/sdb1: Read-Only file system
ReplyDeleteAre you using pen drive or any type of memory card? Just check that it doesn't contain any write protected switch.
DeleteMany of sd card or pendrive have that small switch.