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
Or you can use the following command as above will not be work on some system.
fdisk -l
Or you can use the following command as above will not be work on some system.
fdisk -l
[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 ....
What 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 . . .
Deletewelcome . . .
ReplyDeleteNice 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
Deletethnks!!it's working..
ReplyDeletewelcome . . .
Deletewelcome . . .
ReplyDeletemy 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.
Nice article.. It really save my time.. Thanks for uploading this so clearly..
ReplyDeleteThank you.
DeleteThanks... Good job..
ReplyDeleteThank you.
DeleteThanks but replace dmesg | tail from fdisk -l
ReplyDeletewhich will work on all systems
as dmesg | tail was not working in my system
But You had done a good work...................
Thank You
Thank you for your suggestion, I made an edit of your remarks so others will be benefited.
DeleteThank you.
ReplyDeleteGreat!!!
ReplyDeleteneither 'fdisk -l' nor 'dmesg | tail' works on my ubuntu 12.04.. isn't 'df -h' a much better option?
ReplyDeleteThanks
ReplyDeleteThanks,
ReplyDeleteVery useful .. easy.. and to the point :)