How do you force a CIFS connection to unmount

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

    umount -f -t cifs -l /mnt &
    

    Be careful of &, let umount run in background. umount will detach filesystem first, so you will find nothing abount /mnt. If you run df command, then it will umount /mnt forcibly.

提交回复
热议问题