A reminder to myself » OSX http://simionbaws.ro Stuff I might need later. Mon, 06 Jul 2015 13:25:52 +0000 en-US hourly 1 http://wordpress.org/?v=4.3.1 OSX Disk Utility Erasing/Formatting stuck at “Unmounting disk …”, “Couldn’t unmount disk” http://simionbaws.ro/osx/osx-disk-utility-erasingformatting-stuck-at-unmounting-disk-couldnt-unmount-disk/ http://simionbaws.ro/osx/osx-disk-utility-erasingformatting-stuck-at-unmounting-disk-couldnt-unmount-disk/#comments Mon, 15 Jun 2015 07:23:08 +0000 http://simionbaws.ro/?p=466 If you are trying to format/erase a disk and disk utility/diskUtil is stuck at “unmounting disk”, probably “fsck_hfs” is stuck in a loop, trying to repair it before mounting.

couldnt-unmount-disk-disk-utility-error

I’ve seen solutions where you must boot from an external operating system, bla blah. Too complicated and time consuming.

To fix this fast and easy, start formatting, wait for “unmounting disk” message to appear, then go to Terminal, find the process with the following command

ps ax | grep fsck_hfs

You’ll get something like

simion@Simions-MacBook-Pro:~$ ps ax | grep fsck_hfs
 3693   ??  U      1:32.61 /System/Library/Filesystems/hfs.fs/Contents/Resources/./fsck_hfs -y /dev/disk2s2
 3984 s000  S+     0:00.00 grep fsck_hfs

Then … kill the process with

sudo kill 3693

Then it should continue automatically with formatting the drive.

Note that you must do this before disk utility gives the error message “Could not unmount disk”.

]]>
http://simionbaws.ro/osx/osx-disk-utility-erasingformatting-stuck-at-unmounting-disk-couldnt-unmount-disk/feed/ 0