Skip to content

Instantly share code, notes, and snippets.

@scottopell
Last active February 7, 2026 21:16
Show Gist options
  • Select an option

  • Save scottopell/595717f0f77ef670f75498bd01f8cab1 to your computer and use it in GitHub Desktop.

Select an option

Save scottopell/595717f0f77ef670f75498bd01f8cab1 to your computer and use it in GitHub Desktop.
Fix corrupted exFAT disk macOS/OSX

exFAT support on macOS seems to have some bugs because my external drives with exFAT formatting will randomly get corrupted.

If Disk Utility is unable to repair, consider trying this:

  1. In Disk Utility, ensure that the drive is not mounted, eject it if it is mounted.
  2. Use diskutil list to find the right drive id.
  3. You want the id under the IDENTIFIER column, it should look like disk1s1
  4. Run sudo fsck_exfat -d <id from above>. eg sudo fsck_exfat -d disk1s3
  5. -d is debug so you'll see all your files output as they're processed.
  6. Answer YES if it gives you the prompt Main boot region needs to be updated. Yes/No?
  7. Open Disk Utility and you should be able to repair here successfully.

See the apple man page below for details on the fsck_exfat utility.

Sources/Extra Reading: https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man8/fsck_exfat.8.html https://craigsmith.id.au/2014/07/06/repairing-a-corrupted-mac-osx-exfat-partition/ https://discussions.apple.com/thread/4154638?tstart=0

@el-j
Copy link

el-j commented Feb 7, 2026

I have an external ssd that was on APFS, got corrupted and got turned into exFAT read-only with some readable data. Any format doesnt work neither on windows nor on mac. Even in the above steps, the fsck_exfat command asks for repair? I type yes, and it errors out with error 16 shown below: image

Sounds Like the device is busy. Have U thrown it out from finder before doing the fsck? Otherwise it might be blocked by this mount. Make sure it's not mounted to do the fsck

@SathwikNadella
Copy link

Sounds Like the device is busy. Have U thrown it out from finder before doing the fsck? Otherwise it might be blocked by this mount. Make sure it's not mounted to do the fsck

Yeah it's not mounted. It's not able to mount actually

image

@el-j
Copy link

el-j commented Feb 7, 2026

Sounds Like the device is busy. Have U thrown it out from finder before doing the fsck? Otherwise it might be blocked by this mount. Make sure it's not mounted to do the fsck

Yeah it's not mounted. It's not able to mount actually

image

I am not sure but I think if U see it there it's some kind of mounted by the os. u have to really unmount it. When this worked for me the disk was not shown any where in any Mac Ui. Then just started 💯 the steps in command line get it to work for me . Best luck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment