Monday, October 22, 2012

Mac OSX Terminal : Unmount


force unmount on mac os x

Inspired by: http://loopkid.net/articles/2008/06/27/force-unmount-on-mac-os-x

When using Mac OS X you might have encountered this message.
The disk "foobar" is in use and could not be ejected.
Try quitting appplications and try again.
This message may occur even if you have all closed all programs. The guilty party for this behavious may be Leopard’s FSEvents, which sometimes has a lock on a volume. To force the unmount of a volume just open a Terminal and use umount.
sudo umount -f /Volumes/FooBar
According to a commentator, if that doesn’t work you can also try
sudo diskutil umount force /Volumes/FooBar

No comments:

Post a Comment