Friday 18 May 2018

Format USB Drive in Linux


Insert usb drive into your laptop or machine and follow the steps to format

Step1  : Identify the usb drive

manivel ~ # df -h

Step2 : umount the usb drive

manivel ~ # umount /dev/sdb

Step3: Recheck the usb drive whether umount or not

manivel ~ # df -h | grep /dev/sdb

Step4: Format the usb drive with vfat filesystem

manivel ~ # mkfs.vfat -n "LAB-9" -I /dev/sdb

-n ----> Volume name
-I ---> device type

In this way you can format the usb drive with different file system methods.

Step5:  Mount the usb drive


manivel ~ # mount /dev/sdb /mnt/manivel_pendrive/


This is the image overall steps covered.





No comments:

Post a Comment