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 listto 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 -dis debug so you'll see all your files output as they're processed.- Answer
YESif 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.
I'm getting an error saying- "Can't open /dev/rdisk2s2: Resource Busy". What do I do?
I was stuck with "Resource Busy" too, but a comment on the Source link (on craigsmith.id.au) describes how to find and kill the process locking the resource which worked for me.
ps -ax | grep disk2 (but your disk)
13699 ?? 11:52.83 /System/Library/Filesystems/hfs.fs/Contents/Resources/./fsck_hfs -y /dev/disk2s2
sudo kill 13699
Once the offending process is killed, I got an OS prompt about an error mounting the drive (something along the lines of it being mounted in read only mode, don't remember the wording). After that the drive mounted in Finder and Disk Utility and I was able to run "First Aid" using "Disk Utility"
Thank you! This little trick proved a humans experience plus google search is still better than LLMs.