umount的一些解决方法

date
Nov 12, 2021
slug
10041
status
Published
tags
Linux
summary
type
Post
如果
#> umount /mnt/win
umount: it seems /mnt/win is mounted multiple times
解决:
sudo umount /mnt/win
如果:
sudo umount /mnt/win
umount: /mnt/win: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
解决:
fuser -cuk /mnt/win
Options:
-c
    Same as -m option, used for POSIX compatibility.

-u, --user
    Append the user name of the process owner to each PID.

-k, --kill
    Kill  processes accessing the file. Unless changed with -SIGNAL, SIGKILL is sent. An fuser process never kills itself, but may kill other fuser processes. The  effective  user  ID  of  the  process executing fuser is set to its real user ID before attempting to kill.kill.

-m NAME, --mount NAME
    NAME specifies a file on a mounted file system or a block device that is  mounted.  All  processes accessing  files  on  that  file  system  are  listed.   If  a  directory file is specified, it is automatically changed to NAME/. to use any file system that might be mounted on that directory.

© Wen Bo 2021 - 2022