Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

Create Account  |  Retrieve Password

USB Flash Drive Comparison Part 2 — FAT32 Vs. NTFS

Posted by timothy on Tue Jan 27, 2009 11:54 AM
from the get-your-data-past-the-border-guards dept.
Dampeal writes "Ok, a little while back I ran a somewhat large USB Flash Drive Comparison with 21 drives compared, today I got part two of that comparison. I've taken the 8gig and 4 gig drives, nine in total, and formatted them FAT32, NTFS and ExFAT and ran all of the tests over again for a comparison of how the file systems work on the drives." Good news — after some exhaustively graphed testing scenarios, the author comes to a nice conclusion for lazy people, writing "[I]n my opinion the all around best choice is FAT32, or the default for most all USB drives out there today, it seems to give us the best average performance overall."
+ -
story

Related Stories

This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More
Loading... please wait.
  • Great (Score:4, Informative)

    by Chih (1284150) on Tuesday January 27 2009, @11:55AM (#26624341)
    I'm lazy, so it's good to know that the default setting is the best.
    • Re: (Score:2, Funny)

      by Anonymous Coward

      I'm too lazy to even care.

    • Re:Great (Score:5, Insightful)

      by Z00L00K (682162) on Tuesday January 27 2009, @12:08PM (#26624555) Homepage

      What about ext2 and other filesystems then?

      • by tepples (727027) <<moc.thgienip> <ta> <6002hsals>> on Tuesday January 27 2009, @12:56PM (#26625509) Homepage Journal

        What about ext2 and other filesystems then?

        Ninety percent of desktop PCs run Windows, and for interchange among the public, file systems that most PCs running Windows cannot read aren't worth testing. If you format your USB drive as ext2 and carry it to someone else's PC, you'll need to 1. carry a CD or a second USB drive with the ext2 driver [fs-driver.org] and 2. get admin rights in order to install it on someone else's PC. It'd be like the Windows 9x days, when you needed to carry a floppy disk with the USB mass storage class driver whenever you used someone else's computer.

        • by Rix (54095) on Tuesday January 27 2009, @12:59PM (#26625597)
          So you could just have a small partition holding the ext2 driver. Not really worth the effort for that, but it makes sense for things like truecrypt.
        • Re: (Score:3, Interesting)

          I use USB-pens to securly transfere my data from A -> B, gpg keys, documents, etc. Just because you use your USB-pens to spread viruses between windows pcs doesn't mean everybody does! I'd be quite interested to see ext2 vs reiserfs vs jfs vs fat.

        • Re: (Score:3, Interesting)

          by afidel (530433)
          If you don't need to write to the drive from XP then UDF is a possibility, it's about 3x faster than even FAT16 under Vista for small files and is supported by almost all current OS's (OSX 10.5, Linux 2.6.10+, Vista/Win7, AIX, etc) so eventually it shouldn't be a problem unless you need to use it with an embedded type device. If MS asks too much for exFAT I can see embedded players supporting UDF for large filesystems.
                • Re: (Score:3, Funny)

                  by Hucko (998827)

                  Thus Microsoft has the perfect way to EOF XP... Support UDF, Microsoft! It will force people to upgrade! s/force/encourage

  • No JFFS2? (Score:4, Insightful)

    by garbletext (669861) on Tuesday January 27 2009, @12:02PM (#26624435)
    Since interoperability is key in this context, anything besides FAT32 is hopelessly esoteric. So why not test the OSS solution as well?
  • by gEvil (beta) (945888) on Tuesday January 27 2009, @12:03PM (#26624477)
    The question about filesystems has come up a few times over on the Dell Mini forums. Basically the question is which is better to use on machines with SSDs? If you're not dealing with >4GB files, several people have suggested that you're better off formatting the drive as FAT32. I'll need to take a better look at this article when I get a chance, but it seems to be suggesting the same thing.
    • by js_sebastian (946118) on Tuesday January 27 2009, @12:16PM (#26624741)

      The question about filesystems has come up a few times over on the Dell Mini forums. Basically the question is which is better to use on machines with SSDs? If you're not dealing with >4GB files, several people have suggested that you're better off formatting the drive as FAT32. I'll need to take a better look at this article when I get a chance, but it seems to be suggesting the same thing.

      FAT32 is fine for a USB stick, but you shouldn't install an OS on it. The problem is that FAT32 has no concept of file ownership. So your operating system will be unable to restrict access to files based on the user, which is one of the building blocks of security on any modern OS. This way, any (malicious) process running on the system can overwrite critical system files to do arbitrary damage.

      Even if you run windows XP as adminstrator, not all processes on your system run as administrator so you will still be (slightly) decreasing security by having it on a FAT32 filesystem.

  • not so fast (Score:5, Informative)

    by uberjoe (726765) on Tuesday January 27 2009, @12:05PM (#26624505)
    FAT32 is great, unless you want to exceed the 4gb filesize limit. In which case you will need an alternative.
    • You mean like exFAT? Which, as far as I'm aware, is basically just FAT64. I.e. it's got all the "benefits" of FAT32 without the filesize limit, probably at the cost of a bit of performance.

      • Re: (Score:3, Informative)

        by mweather (1089505)
        The only benefit of FAT32 is compatibility. exFAT does not have that.
        • I'd wager that it's more compatible than NTFS, though.
          Still, it's not ideal and I agree with what you're saying.

          • Re:not so fast (Score:4, Informative)

            by TemporalBeing (803363) on Tuesday January 27 2009, @02:42PM (#26627489) Homepage Journal
            exFAT has as much in common with FAT32 as does NTFS. Microsoft made a big change with a purposeful break from backwards compatibility. So while it may be a 64-bit compatible FAT implementation, it doesn't share anything with the older FAT file systems - even FAT32. So no, no more compatibility whatsoever than NTFS.
  • NTFS patten? (Score:3, Interesting)

    by jgtg32a (1173373) on Tuesday January 27 2009, @12:06PM (#26624525)
    I thought NTFS had a patten on it which is why they used FAT32 instead.
  • Question (Score:4, Funny)

    by oldspewey (1303305) on Tuesday January 27 2009, @12:07PM (#26624537)
    If I format one of these with ReiserFS, am I still okay to take it through airport security?
  • Did he run tests with 16GB files?

    • Re:Size matters (Score:5, Informative)

      by pla (258480) on Tuesday January 27 2009, @12:23PM (#26624857) Journal
      Did he run tests with 16GB files?

      FTA: "I've taken the 8gig and 4 gig drives, nine in total"


      FTA: "I used a 350MB .AVI Video file for all testing.".


      More importantly, he couldn't use a 16GB file, since FAT32 doesn't support single files over 4GB.
      • by coolsnowmen (695297) on Tuesday January 27 2009, @01:10PM (#26625807)

        Did he run tests with 16GB files?

        ...
        More importantly, he couldn't use a 16GB file, since
        FAT32 doesn't support single files over 4GB.

        And because 4GB drives don't support files over 4GB.

      • Re: (Score:3, Interesting)

        FAT32 doesn't support single files over 4GB.

        True, but it will happily install (at least using the Linux Kernel's driver for it) on any size drive. I did that a few years ago for a backup drive that had to be accessible from Linux as well as Windows. Windows would only allow the FS to format to 32GB; while the Linux driver let it take up the whole drive (120GB? can't quite remember). The real funny thing was that Windows was happy to work with the drive afterwards and didn't complain whatsoever about the l

  • incomplete tests (Score:4, Interesting)

    by PatentMagus (1083289) on Tuesday January 27 2009, @12:12PM (#26624659)
    I wish there were tests covering "typical user mishaps". Things like inopportune powerdowns and flash drive yanking. My anecdotal evidence is that I've never had issues with FAT32 but have had entire NTFS partitions become unreadable. It's just anecdote though. Now throw a truecrypt file into the mix ...
    • I have seen a couple of problems with FAT based flash drives.
      What happened in both cases was that the files got "locked", and couldn't be deleted on OSX and Linux, but a fsck fixed the issue.

  • Would one of the UFS variations be suitable for flash drives? And also better portability (almost all OS's support UFS by now). Would performance be better?

  • Read vs Write (Score:3, Interesting)

    by Hyppy (74366) on Tuesday January 27 2009, @12:16PM (#26624739)
    It seems like the write time is the most variable out of all these. FAT32/NTFS/ExFAT scores for reading are all within a few % of each other.

    I wonder what makes NTFS so slow for writes? The journaling alone reduces it that far?
    • Writing files in NTFS is apparently somewhat complex. I don't know *that* much about it, except the it uses B+ trees to store some of it's information (which are a little difficult to write), and that it took a *long* time before Linux had NTFS write capability. They were stuck on read-only for a long while.
    • Re: (Score:3, Interesting)

      by Hal_Porter (817932)

      I'd guess it's because NTFS sucks on a removable device. On Windows, by default, hot pluggable devices are mounted with write through caching. NTFS supports this but not very efficiently.

      FAT32 and exFAT are simple enough that you can do safe access to a disk even without much write caching. FAT (and probably exFAT) actually defines a way to mark the volume as dirty in the first FAT entry at the start of each transaction where the FAT will be modified.

      If someone pulls the drive right in the middle of writing

  • Important for me (Score:5, Interesting)

    by david.given (6740) <dg@cowlarDALIk.com minus painter> on Tuesday January 27 2009, @12:22PM (#26624841) Homepage Journal

    I'm currently on site at a customer's office. I have one of their PCs and one of ours; legal restrictions mean I can't copy our source onto their machines or their source onto ours.

    The solution to this is to put a copy of our source onto a USB stick and plug it into their machine, and then use a NTFS junction point (aka a symlink) to let their Windows-based build system see our source. This works very nicely, and I can just unplug the USB stick whenever I leave and the lawyers are happy.

    However:

    - I have to use NTFS. This is because the two machines are set to use different time zones, and frickin' FAT stores timestamps in the local time, which means that if I were to touch a file on one machine and the move the USB stick, the build system will go horribly wrong.

    - I have 'optimise for performance' turned on; the non-Windows world calls this write caching. This boosts performance on NTFS *hugely*. I see no mention of this in the review. I now have to remember to unmount the stick on the Windows machine before pulling it, but it's worth it.

    - You have to use the command line format.exe to format a removable drive as NTFS, because frickin' Windows doesn't let you do it from the GUI.

    - If you turn NTFS compression on, you get a tiny bit more speed boost. But while Linux will read compressed NTFS files, it won't write them.

    - You need to do something obscure with NTFS file permissions if you're going to move the stick between two Windows machines, because otherwise you'll be creating files on one machine you won't be allowed to edit on the other. Linux, of course, just ignores NTFS ACLs.

    I have investigated the Windows ext2 driver, but while it does work reasonably well, it's still pretty clunky, and ext2 isn't much better than NTFS. What I'd really like is a decent Windows JFS or XFS driver --- NTFS is *so* last century.

    • by Anonymous Coward on Tuesday January 27 2009, @01:04PM (#26625689)

      Select the usb drive right click/hardware/policies select optimize for performance and the GUI formatter will now have NTFS as an option.

      After formatting you can reset the policy as needed.

      I personally turn optimize for performance off on USB drives as many times explorer or some other program will lock the drive preventing a safe removal.

  • Since the article is /.ed and I can't RTFA anyway, a question: I'm about to have a user start backing her files up to a 32GB USB stick. Probably no huge movie files. Should I format the stick as NTFS or exFAT (she's running Vista SP1)?

    • According to the benchmarks, exFAT. If you trust it not to die a horrible death and to be readable anywhere else.

  • I've always been under the impression that NTFS is inherently slower (though I do not know exactly "how much") because of the processing of ACLs/Audit events that do not take place under FAT32, and that other than for these "features" NTFS and FAT32 are very similar.
  • by Bromskloss (750445) on Tuesday January 27 2009, @01:38PM (#26626333)

    I don't care for compatibility with Windows. I use exclusively free *nixes and so does all my friends (otherwise they wouldn't be real friends, would they?). So having this richer buffet of file systems than just the two in the article, what should I choose? I have heard someone say that ext2 means less wear on the drive than ext3 (something with journaling?).

    • Except if you'd even bothered to read the summary, you'd notice he did consider ExFAT. Whoops.
    • by _Splat (22170) on Tuesday January 27 2009, @08:56PM (#26632775)

      Flash drives have a flash translation layer that makes the flash look like a regular disk despite having special properties. This layer handles the wear-leveling, garbage collection, and bad block detection so the standard filesystem (that was designed for magnetic disks, probably) doesn't have to consider them. Regardless of the filesystem used, the wear of the device should be related to the total amount of data written, not the location of the data.