Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Situation

I am running a RHEL server via a VM on my laptop. I have a win7 desktop sharing out a folder and the VM on my laptop running RHEL6 has a CIFS windows mount at \mnt\win When I go to unmount the device I get a device is busy message. So I went to my laptop and check to see if there were any users connected to the share, since it listed none I turned off sharing. I went back to my RHEL instance and attempted another umount \mnt\win but received the same error.

Question

What are other alternatives to unmounting a shared drive?

share|improve this question
    
lsof | grep '/mnt/win'? –  quanta Aug 30 '12 at 15:04
    
@quanta Nothing...I am ready to just force this thing to shutdown...with the power button.. –  What'sTheStoryWishBone Aug 30 '12 at 20:29
add comment

closed as off topic by SvW, Michael Hampton, Ward, Scott Pack, Iain Sep 25 '12 at 22:17

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

up vote 2 down vote accepted
umount -lf /mnt/win

If /mnt/win is not being used, umount will wait until it can unmount it.

share|improve this answer
    
Also, if you are in the mounted directory that's considered to be "in use." Change directory to outside the mounted path. –  Aaron Copley Aug 30 '12 at 17:01
    
It never unmounts just sits there forever. @AaronCopley I have tried that as well –  What'sTheStoryWishBone Aug 30 '12 at 20:28
add comment

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