# Changing filesystem of USB drives

I found some USB removable storage drives a few days ago, but they won't work on windows. Windows acts as though they haven't been plugged in, so I tried having a look at them using linux, and I can see everything to do with them etc. I now know that the filesystem used is "vfat" (i've never heard of that filesystem before now). Anyway, I was hoping that there was a command in the bash which could convert the drive to ntfs, that way I could use it in windows and linux. I know the convert command in dos can do it, but is there an equivalent command in linux?

## Answers and Replies

Related Computing and Technology News on Phys.org
ranger
Gold Member
"vfat" is how linux reports that a FAT32 file system is being used by the storage device. For creating a NTFS from linux, try the command mkfs.ntfs or mkntfs. Read the manual page for more specific info. You would however need ntfsprogs to have access to that command option.

I would however, strongly advise that you not make the fs of your storage media NTFS. If you're looking to move between linux and windows with the drive, make the fs FAT32 instead. NTFS support is there for linux, but it not reliable.

For FAT32 paritions, see the man page of mkfs.vfat.

The more general form of the command is mkfs. Refer to the man page.

Last edited:
dst
They might use the newest FAT standard(exFAT). Just copy all of the stuff over to a hard drive and from windows, format it to FAT32. Then it should work.

mgb_phys
Homework Helper
Under XP you can't format the key as ntfs if you have "optomize for quick removal" turned on.
Fat32 is recommended for USB keys since moving an NTFS drive to another machine without properly unmounting it can cause corruption.

You can use gparted, i know Ubuntu 7.10 comes with it, if not you can run your package manager

In Ubuntu iut would be

Code:
sudo apt-get install gparted
Once taht is up and runnign you can format it to FAT, NTFS, or ext3

Fat32 is recommended for USB keys since moving an NTFS drive to another machine without properly unmounting it can cause corruption.
I wasn't aware of this at all. Thanks mgb.

Under XP you can't format the key as ntfs if you have "optomize for quick removal" turned on.
Fat32 is recommended for USB keys since moving an NTFS drive to another machine without properly unmounting it can cause corruption.
In fact, you should umount ANY filesystem in your drive (not only the NTFS) before moving it.
(otherwise the OS could not flush the associated buffers...)

mgb_phys