For all Linux users using usb drives, is really easy. Just plug and play then share data with Windows users through it, is very simple. But if you format it using Linux ext3 or any other Linux mode, you will not be able to share data with Windows users. What you need is to format the usb drive using FAT32 or NTFS file system.
So to format a usb drive, first insert your usb drive in the usb slot of your computer, and check using below command:
$ fdisk -l
(You will see the usb disk)
Let say /dev/sdb is where my usb thumb drive was connected.
We need to unmount it:
$ umount /dev/sdb
Now, fdisk the usb stick, and not the partition:
$ fdisk /dev/sdb
Press ‘p’ to view the partitions on the drive. Delete all partitions. Create a new one with ‘n’. It will be a primary partition, and it will be partition 1. Then ‘w’ to write the partition table, and exit:
Command (m for help): p
Disk /dev/sdb: 1027 MB, 1027604480 bytes
64 heads, 32 sectors/track, 980 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Disk identifier: 0x610fbfb2Device Boot Start End Blocks Id System
/dev/sdb1 * 1 980 1003504 c ext3Command (m for help): d
Selected partition 1Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-980, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-980, default 980):
Using default value 980Command (m for help): w
The partition table has been altered!Calling ioctl() to re-read partition table.
Syncing disks.
use the mkfs.vfat or mkfs.ntfs command to format to FAT32 or NTFS filesystem:
$ sudo mkfs.vfat -n ‘Label’ -I /dev/sdb
(Replace Label with the name you want the pen drive to have)
4. That’s it! When done formatting, you’ll be returned to the prompt
$ mkfs.vfat -n ‘sathya’ -I /dev/sdb
mkfs.vfat 2.11 (12 Mar 2011)
Remove and insert the pen drive to have mounted again!


Brilliant, this worked perfectly! Thanks.