MacOS – Disable the disk check when reconnecting an improperly disconnected disk to OS X

exfatfsckhard drivemacosusb

If you disconnect a removable drive without ejecting it first, the next time you connect it, Windows or Mac run an fsck check on the disk to ensure data integrity. Windows will ask if you want to check for errors, OS X does it invisibly.

USB3 disks often disconnect inexplicably in OS X. If the disk hasn't been used for hours I know there is no issue. On Windows, I can simply decline to run the check. On OS X I just have to sit waiting for 30 minutes while the fsck thrashes my disk. This happens daily, so OS X will rapidly kill my hard drive. (This paragraph has been edited since the answers were posted.)

How can I disable this check? Can I connect via a non-native driver? Can I run something to flip the flag on the disk that tells OS X the disk was improperly disconnected? Can I change disk format? Can I disable whatever it is that sets the flag 'improperly disconnected' when I connect the drive, that is then unset on proper ejection? I'm desperate, as the Mac has a tiny hard disk and now I can't use externals. Any direction, no matter how hacky or improper, gratefully received! I have tried accessing the drive through Windows in VirtualBox or Parallels, but they can't see the drive until OS X has stopped fsck.

I believe File System State is the state/setting I need to ignore/override.

The disk is exFat with Master Boot Record, and OS X is 10.11.3. Update: this has now happened on the other USB socket with a flash disk (I'd only seen this on an HDDs that report themselves as non-removable before).

There isn't an Apple repair centre in the country I live in, the disk isn't used for frequently accessed files, I would do a check if there was a chance of corruption (ie, a disconnection during or shortly after a write to the disk), and I've always declined the check in Windows (for decades) because the only time I've had a corruption is from the check itself.

Best Answer

Open Terminal and enter:

#Get the disk identifier of the ExFAT partition
diskutil list
#Get the UUID of the ExFAT volume with diskXsY being its disk identifier
diskutil info /dev/diskXsY
#Create and edit /etc/fstab 
sudo vifs

Add a line with the following content after activating insert mode (e.g with I)

#Replace the UUID below by the one found earlier!
UUID=2FECDB7A-15F0-36F9-9A47-483B9669D6DC none exfat rw,auto 0 0

Hit esc to leave insert mode. Enter :w! to write the file to disk and :q to quit vifs.

Reboot your Mac.

The last 0 should disable fsck.


An alternative method may be: rename /sbin/fsck_exfat to /sbin/fsck_exfat.paralyzed with:

sudo mv /sbin/fsck_exfat /sbin/fsck_exfat.paralyzed

Since /sbin/fsck_exfat is a link only you may also have to rename the original file: /System/Library/Filesystems/exfat.fs/Contents/Resources/fsck_exfat.


Both methods are not recommended! Instead the USB socket should be repaired.