How do you force a CIFS connection to unmount

前端 未结 11 1951
借酒劲吻你
借酒劲吻你 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:10

    Try umount -f /mnt/share. Works OK with NFS, never tried with cifs.

    Also, take a look at autofs, it will mount the share only when accessed, and will unmount it afterworlds.

    There is a good tutorial at www.howtoforge.net

提交回复
热议问题