Formatting USB or Partition with "vfat" and "ext3" file system.

A. How to format USB or other partitions, so that we can access them in to Windows.


Steps :




Here I am using my 4GB USB drive for demo which is detected by “fdisk –l” command as “/dev/sdb” device file. Note that the device USB or the partition to be formatted should be unmounted. You can check it by “mount” command, if mounted use “umount <mount point OR device file name>”.

  1.                       
  2. Now with the help of below command we are going to format this USB with a “vFat” partition, because windows supports either FAT32 or NTFS .

                          
After the above command executed successfully, your USB or any partition will be ready to use with Windows compatibility.



B. How to format USB or other partitions with "ext3" filesysystem.

“ext3” is the main file system type in the Linux systems. So to format USB or a partition with “ext3”, follow below steps.

Steps:

  1. Here I am using my 4GB USB drive for demo which is detected by “fdisk –l” command as “/dev/sdb” device file. Note that the device USB or the partition to be formatted should be unmounted. You can check it by “mount” command, if mounted use “umount <mount point OR device file name>”.

                        
  2. Follow the below command with care as in your system the device file name “/dev/sdb” can be different. After execution it’ll ask for confirmation, so press “y” + Enter. Note that, before unmounting any partition or USB you have to come out of the mounted directory.

                         
Here your USB is ready to mount & use.

You can mount “ext3” partition or USB with command,

                                    

To unmount partition or USB device,
                             
                                    
                                             

Done :)

Comments

Popular posts from this blog

Recover or restore initramfs file in RHEL or CentOS 7

Space reclamation / UNMAP on RHEL or CentOS 7

How to recover /boot partition on RHEL or CentOS 7?