How do you force a CIFS connection to unmount

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

    There's a -f option to umount that you can try:

    umount -f /mnt/fileshare
    

    Are you specifying the '-t cifs' option to mount? Also make sure you're not specifying the 'hard' option to mount.

    You may also want to consider fusesmb, since the filesystem will be running in userspace you can kill it just like any other process.

提交回复
热议问题