Ubuntu, how to unmount remote shared drive if the share is down?
Matthew Martinez
I have a remote share on another computer which is currently down.
The command I used to mount is:
sudo mount //10.10.100.100/files /home/user/remoteDir/ -o username=user,password=pass,dir_mode=777,file_mode=777I cannot unmount through the gui as it says the device is busy, because it is down and I cannot find the correct syntax to unmount it from the terminal as I always get some error.
The reason I want to unmount is because the system is running really slow with the server being down and I am hoping mounting will fix it, and I cannot restart the system at the moment.
Thanks.
Updates:
I tried umount and smbmount for the share and keep getting command not found?
I tried umount again and this time the command work, but I got an error saying device is busy.
1 Answer
sudo umount -l /home/user/remoteDir/Seems to have worked.
I found the solution here:
Are there any issues or alternatives to using the -l switch?
2