Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a Windows share mounted in OSX 10.9 Finder (through +K) that acts bizarre every so often (can't log in sometimes, randomly disconnects from the GUI claiming it can't access the mounted volume).

Usually I have to reboot to force-disconnect this mounted SMB drive; is there a way to do it through terminal? (Like say, using mount?)

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Try using umount:

umount -f /your/mountpoint

(-f forcibly removes the mount point)

share|improve this answer
    
Yep! That's it-- thanks! –  remus Dec 25 '13 at 5:54

Try...

  1. diskutil unmountDisk force /Volumes/DISK_NAME

  2. diskutil unmount /dev/disk0

To get the disk0, which is the Identifier, you can run diskutil list in terminal to see which one it is. See http://osxdaily.com/2013/05/13/mount-unmount-drives-from-the-command-line-in-mac-os-x/

share|improve this answer
    
Don't see why this needs to get downvoted, as it is a viable solution. –  Aaron Dec 25 '13 at 5:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.