Monday 17 June 2013

How to format pen drive from terminal in Ubuntu

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 text  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.
 
 First of all unmount your pen drive using the following command.

       sudo umount /dev/sdbN
 N : number of drive it may be 1 ,2,3,4 etc


Then enter the following command to format your pen drive with 
        FAT32 partition.
 sudo mkfs.vfat -n 'Ubuntu' -I /dev/sdbN
where Ubuntu is the name of your disk