Hot For Coding

umount 提示 device is busy 解决方法


[root@qttc mydata]# umount /mydata     
umount: /mydata: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))


[root@qttc mydata]# fuser -m -v /mydata
                     USER        PID ACCESS COMMAND
/mydata:             root      16016 ..c.. bash
                     root      25011 ..c.. bash


[root@qttc mydata]# kill -9 16016


[root@qttc ~]# umount /mydata


[root@qttc /]# fuser --help
No process specification given
Usage: fuser [ -a | -s | -c ] [ -n SPACE ] [ -SIGNAL ] [ -kimuv ] NAME...
             [ - ] [ -n SPACE ] [ -SIGNAL ] [ -kimuv ] NAME...
       fuser -l
       fuser -V
Show which processes use the named files, sockets, or filesystems.
    -a        display unused files too
    -c        mounted FS
    -f        silently ignored (for POSIX compatibility)
    -i        ask before killing (ignored without -k)
    -k        kill processes accessing the named file
    -l        list available signal names
    -m        show all processes using the named filesystems
    -n SPACE  search in this name space (file, udp, or tcp)
    -s        silent operation
    -SIGNAL   send this signal instead of SIGKILL
    -u        display user IDs
    -v        verbose output
    -V        display version information
    -4        search IPv4 sockets only
    -6        search IPv6 sockets only
    -         reset options
  udp/tcp names: [local_port][,[rmt_host][,[rmt_port]]]

TITLE: umount 提示 device is busy 解决方法


NOTE: 原创内容,转载请注明出自琼台博客