[Solved] Disk Utility Stuck on Wait Partition Activate

ยท ยท 196 words ยท 1 minute read

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.

Disk Utility is unable to repair this at first, but the fix is this:

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

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

Error : Can’t open /dev/rdisk2s2: Resource Busy ๐Ÿ”—

If you got an error saying “Can’t open /dev/rdisk2s2: Resource Busy”. Then, you need to kill the process which keeping the disk busy. Here are the steps.

  • Know the process ID which kepping the disk busy.
ps -ax | grep rdisk2s2
12686 ?? 10:42.83 /System/Library/Filesystems/hfs.fs/Contents/Resources/./fsck_hfs -y /dev/rdisk2s2
  • Terminate the unwanted process like this.
sudo kill 12686

Sources & Extra Reading: