Phenomenon:
[Email protected] ~]# df-h
File system capacity has been used with available percent mount points
/DEV/VDA1 9.9G 3.9G 5.6G 41%/
Tmpfs 3.9G 100K 3.9G 1%/DEV/SHM
/dev/sr0 368K 368K 0 100%/media/cdrom
/dev/vdb 197G 5.9G 181G 4%/mnt
[Email protected]/]# UMOUNT/DEV/VDB
Umount:/mnt:device is busy.
(In some cases useful info about processes
The device is found by lsof (8) or fuser (1))
Reason:
Other processes may be using the/MNT directory.
Workaround:
Close the process that uses the directory, and then Umount.
[Email protected]/]# fuser-m/dev/vdb
/dev/vdb:3052c
[[Email protected]/]# PS aux |grep 3052
Root 2218 0.0 0.0 163052 1648? Sl 0:00 Gnome-keyring-daemon--start
Root 3052 0.0 0.0 108328 1732 PTS/1 ss+ 11:12 0:00-bash
Root 3448 0.0 0.0 6384 708 PTS/5 s+ 12:59 0:00 grep 3052
[Email protected]/]# kill-9 3052
[[Email protected]/]# PS aux |grep 3052
Root 2218 0.0 0.0 163052 1648? Sl 0:00 Gnome-keyring-daemon--start
Root 3453 0.0 0.0 6384 704 PTS/5 s+ 13:00 0:00 grep 3052
[Email protected]/]#
[Email protected]/]# UMOUNT/DEV/VDB
[Email protected]/]# df-h
Filesystem Size used Avail use% mounted on
/DEV/VDA1 9.9G 1.4G 8.0G 15%/
Tmpfs 3.9G 100K 3.9G 1%/DEV/SHM
/dev/sr0 368K 368K 0 100%/media/cdrom
--------------------------------------------------------------------------------------------------------------- ----------------------------------------------------
Another solution ====>
Solution to this problem:
First, find the process and command to use this file, the specific operation code
[Email protected] ~]# lsof |grep/mnt/net1
Lsof:WARNING:can ' t stat () CIFS file System/mnt/net1
Output information may incomplete.
Bash 18841 root cwd unknown/mnt/net1/tddownload/software (Stat:no such Device
Second, then execute the PS command to find the command to execute this process
[Email protected] ~]# Ps-ef|grep 18841
Root 18841 18839 0 Nov29 pts/2 00:00:00/bin/bash-l
Root 29496 25604 0 16:26 pts/0 00:00:00 grep 18841
Iii. forced closure of unrelated processes
[Email protected] ~]# kill-9 18841
Four, then unload the relevant mount
[Email protected] ~]# Umount/mnt/net1
You can then view the Mount command.
Device is busy problem for Linux Umount