nix, shell, perl, php, mysql and mac os x tips and tricks

Thursday, January 26, 2012

a few ways to force-unmount a disk image in OS X

Not that you should ever have to do this or anything.
sudo umount -f /Volumes/Yourdisk
sudo diskutil umount force /Volumes/Yourdisk
For this one you need to first get the disk location with the mount or df command:
hdiutil eject -force /dev/disk2sX

No comments:

Post a Comment