To force unmount a OSX Disk with a terminal command please open Terminal.APP from your Applications folder.
Enter the following command:
sudo diskutil unmount force /volumes/volumename
After this command you have to enter your admin password and the Disk is unmounted.