Fix Corrupted exFat Drive on Mac

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

exFAT formatting will randomly get corrupted o mac, but the fix is this:

Disk Utility is unable to repair this at first.

Use diskutil list to find the right drive id. You want the id under the IDENTIFIER column.

I will probably be something like disk2s2

Shutdown mac. Start-up in single user mode by holding Command + S

Run sudo fsck_exfat -d <id from above>. e.g. sudo fsck_exfat -d disk1s3

-d is debug so you'll see all your files output as they're processed.

Answer YES if it gives you the prompt Main boot region needs to be updated. Yes/No?

Files should start being listed.

This process may take hours. When you are prompted Mark volume clean?, enter y

Reboot normally.

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.