Changing filesystem of USB drives

  • Thread starter Thread starter Cinimod
  • Start date Start date
  • Tags Tags
    Usb
Click For Summary

Discussion Overview

The discussion revolves around the challenges and considerations of changing the filesystem of USB drives, particularly from "vfat" to NTFS or FAT32, to ensure compatibility with Windows and Linux operating systems. Participants explore various commands and tools available in Linux for formatting, as well as the implications of using different filesystems.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Exploratory

Main Points Raised

  • One participant notes that "vfat" refers to a FAT32 filesystem and inquires about a Linux command to convert it to NTFS.
  • Another participant suggests using the commands mkfs.ntfs or mkntfs for creating an NTFS filesystem, but advises against it, recommending FAT32 instead due to reliability concerns with NTFS on Linux.
  • A different viewpoint mentions the possibility of the drives using exFAT and suggests copying data to a hard drive and formatting to FAT32 from Windows.
  • Concerns are raised about the inability to format USB drives as NTFS under Windows XP if "optimize for quick removal" is enabled, emphasizing the risks of corruption when moving NTFS drives without proper unmounting.
  • One participant recommends using gparted for formatting options, including FAT, NTFS, or ext3, and provides installation instructions for Ubuntu.
  • Another participant reiterates the recommendation of FAT32 for USB keys, citing the risks associated with NTFS when moving drives between machines.
  • Discussion includes the nature of NTFS as a journaling filesystem, which is designed to handle failures during write processes, but highlights issues with security models and compatibility across different machines.

Areas of Agreement / Disagreement

Participants express a general preference for FAT32 over NTFS for USB drives, citing various concerns about reliability and compatibility. However, there are differing opinions on the necessity and implications of using NTFS, particularly regarding its journaling capabilities and security model.

Contextual Notes

Participants mention various commands and tools for formatting, but there are limitations regarding the specific conditions under which certain filesystems can be used or formatted, particularly in relation to Windows XP settings and the reliability of NTFS on Linux.

Cinimod
Messages
34
Reaction score
0
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?
 
Computer science news on Phys.org
"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:
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.
 
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
 
mgb_phys said:
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.
 
mgb_phys said:
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...)
:smile:
 
Yes, but ironically NTFS is a full journalling filesystem designed so it can always cope with a failure/removal during any write process.
The unfortunate part is that the security model is heavily tied to the concept of machine and user ids which can cause problems if it is moved to a different machine. It also annoyingly can't be mounted in read only mode from a key with a write lock - and the error you get isn't very helpfull.
 

Similar threads

Replies
12
Views
3K
  • · Replies 14 ·
Replies
14
Views
4K
Replies
2
Views
2K
  • · Replies 123 ·
5
Replies
123
Views
20K
  • · Replies 12 ·
Replies
12
Views
5K
  • · Replies 30 ·
2
Replies
30
Views
5K
Replies
6
Views
6K
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 20 ·
Replies
20
Views
5K