Format USB drive from linux command line

Everyday I am growing up with linux (Ubuntu). there is a lot of issues I need to know, but if I read this continuously then it will gone in vain. Better I run like when I need anything I find that and archive that in my blog for future reference. Like after almost 8 months continuous using linux just today I need to format my USB pen drive. So I searched through net and found how easy to format from linux.

To format a USB drive I need to follow the 2 step command below,

1. unmount my pen drive using the following command.

        sudo umount /dev/sdb1
2. Then enter the following command to format your pen drive with FAT32 partition
        sudo mkfs.vfat -n ‘Ubuntu’ -I /dev/sdb1
And bingo!!! My USB drive is formatted with a name of Ubuntu 🙂
(Visited 32 times, 1 visits today)

Leave a comment

Your email address will not be published. Required fields are marked *