How to Format Pendrive in Linux

FREQUENTLY ASKED QUESTIONS (Linux)
Q: How to Format a Pendrive to Fat32 or Ext3 filesystem in Linux?


You can use "mkfs" (make file system) command to format a USB pendrive in lnux operating systems (Fedora, Redhat, and CentOS). You need to plug the USB flash drive to Linux and you should unmound the drive if mounted. After formating you will loose all your data in the Pendrive. so i will recommend to take a backup of your important data.


First of all Identify your USB pendrive in linux
[root@server ~]# fdisk -l
 Device Boot       Start         End         Blocks         Id       System
 /dev/sdb1           63        16354169    8177053+      b        W95 FAT32


Unmound the USB Pendrive before formating.
[root@server ~]# umound /dev/sdb1


Format your USB drive to Fat32 filesystem in linux
[root@server ~]# mkfs.vfat /dev/sdb1
OR
Format your USB drive to Ext3 filesystem in linux
[root@server ~]# mkfs.ext3 /dev/sdb1


1 comments:

Md. Asif Rabbi said...

Very Nice and Informative Post. Thank admin for sharing such an amazing post.

--->>Unable to Format Pen Drive? (Format Guaranteed)

Related Posts Plugin for WordPress, Blogger...

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Bluehost Coupons