exFAT support on macOS seems to have some bugs because my external drives with exFAT formatting will randomly get corrupted.
Disk Utility is unable to repair this at first, but the fix is this:
- Use
diskutil list
to find the right drive id. - You want the id under the IDENTIFIER column, it should look like
disk1s1
- Run
sudo fsck_exfat -d <id from above>
. egsudo 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 promptMain boot region needs to be updated. Yes/No?
- 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
@krsnk — Did you try from the Terminal:
diskutil list
The volumes listed should show your disk ("rdisk2s1") and possibly its partitions.
Then, copy paste this (replace "disk2") in the example below with your disk's or partition's name (of course, remove "(but your disk)").
you should get the process number keeping your disk busy:
13699 ?? 11:52.83 /System/Library/Filesystems/hfs.fs/Contents/Resources/./fsck_hfs -y /dev/disk2s2
Then execute:
sudo kill 13699
In the example above, "13699" refers to the process currently busy, but it should be a different number on your machine.
After killing the process, the drive should mount, with a Finder's warning.