6

I'm hitting the 4GB limit of FAT32 on USB drives more and more often. However, being able to unplug the device without unmounting it first is a must have for me. I've noticed exFAT recently, however I couldn't find any info on whether drives formatted with exFAT can be unplugged safely without unmounting.

Can they?

1
  • Any flash drive must be unmounted first. Flash is quite notorious for causing widespread data damage if unplugged while still writing, and the underlying physical process may take up to 2 seconds (especially with cheap MLC flash). This corruption is due to the fact that flash internally uses 128kB+ blocks, and remaps those rather randomly for "wear leveling purposes". You could corrupt 256 files that way.
    – MSalters
    Aug 10, 2011 at 1:06

4 Answers 4

8

While it is not 100% safe to remove a FAT volume without unmounting, it is safer than NTFS.

exFAT has the following differences to FAT 32:

  • File size limit is now 16 exabytes.

  • Format size limits and files per directory limits are practically eliminated.

  • Like HPFS, exFAT uses free space bitmaps to reduce fragmentation and free space allocation/detection issues.

  • Like HTFS, permission systems should be able to be attached through an access control list (ACL). It is unclear if or when Vista will include this feature, however.

Since caching is handled much in the same way, you should get the same unmounting behavior from exFAT as you did from FAT32.

3
  • 3
    How/why is it safer to remove a FAT drive versus an NTFS drive without unmounting? Jun 30, 2011 at 17:13
  • 1
    It's true I didn't give much justification for that. As one of the other answers stated, NTFS often buffers writes which can lead to uncommitted changes when one saves a file.
    – jweede
    Jul 1, 2011 at 3:03
  • I would suggest it is far safer to eject NTFS while running - the filesystem is journalled and can quickly recover to a consistent state when it is next mounted, while FAT can have corruption that requires a repair using chkdsk or similar tools very easily. NTFS buffering is only for a short period of time and in any case is disabled by default now.
    – fabspro
    Dec 23, 2022 at 3:52
7

Not really specific to exFAT but:
I'd say it's NEVER really safe to unplug an USB drive without unmounting it first. At least when you've written stuff to the disk. As long as you're only reading, unplugging without unmounting can do no harm, but the moment you've actually written something onto the disk, you have to unmount it for the buffers to be flushed (It's possible that not everything is written yet to the disk).
If you wait long enough, they will be flushed, and it would be safe again to unplug without unmounting.

3
  • I believe you are giving a *nix answer to what was intended as a Windows question. (At least, Windows does not generally behave in the manner you describe with FAT filesystems, whereas Linux does.)
    – SamB
    Jan 25, 2011 at 0:13
  • @SamB: What do you mean? This answer wasn't really meant to be specific to any platform... but I know it's like this on Windows.
    – fretje
    Feb 1, 2011 at 10:27
  • 1
    By default Write caching is disabled in Windows for external drives. This ensures you can safely remove the drive without first un-mounting the drive. You can find the appropriate options in the device properties Policies tab. i.imgur.com/ikhcImP.jpg Jul 14, 2017 at 0:16
2

I'd heard somewhere that on *nix style OSes, I/O caching is done in such a way that it is much less safe to unplug a disk then on Windows.

In my own experience, I have corruption issues (requiring a good fscking) semifrequently when I unplug drives in OSX. I rarely, if ever, have those issues in Windows, under both FAT32 and exFAT.

2
  • 1
    Nearly a decade later and this is still my impression. It's always a mac that has screwed up the drive. The old fix was to plug it into windows, repair it, then unmount so it can be used in a mac again.
    – user287352
    Apr 27, 2020 at 19:38
  • Yep this is still a thing in 2022. macOS can strangely "corrupt" exfat drives. The solution is indeed to repair on windows as Disk Utility is now pretty much useless
    – melMass
    Nov 12, 2022 at 15:14
1

NTFS is not meant for removable drives. exFAT was designed for this, but keep this in mind: FAT12/FAT16 & FAT32 have 2 FAT's, they flip-flop. exFAT has one FAT, and if it gets corrupted, you're screwed. In a later release of exFAT there will be TexFAT (Transaction Safe exFAT) where there will be 2 FATs and 2 allocation bit maps. It will be safer.

But not unmounting is a risk, but less of a risk than NTFS because NTFS is lazy write and doesn't write everything out immediately, it bussers it.

1
  • 1
    Write caching is disabled by default for external drives under Windows. Jul 14, 2017 at 0:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .