How do you force a CIFS connection to unmount

前端 未结 11 1927
借酒劲吻你
借酒劲吻你 2021-01-29 17:32

I have a CIFS share mounted on a Linux machine. The CIFS server is down, or the internet connection is down, and anything that touches the CIFS mount now takes several minutes

11条回答
  •  遥遥无期
    2021-01-29 18:20

    This works for me (Ubuntu 13.10 Desktop to an Ubuntu 14.04 Server) :-

     sudo umount -f /mnt/my_share
    

    Mounted with

     sudo mount -t cifs -o username=me,password=mine //192.168.0.111/serv_share /mnt/my_share
    

    where serv_share is that set up and pointed to in the smb.conf file.

提交回复
热议问题