Mount Point busy
Text File is busy
In those cases you need to find out all the processes which are still accessing those paths or files which can be done using lsof or fuser command.
For example you want to find out all the process which are using /mnt
# fuser -uvm /mnt
USER PID ACCESS COMMAND
/mnt: root 7899 ..c.. (root)bash
or you can also use
# lsof /mnt
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
bash 7899 root cwd DIR 0,18 4096 535032 /mnt (192.168.1.11:/work)
In case you are pretty sure you want to kill all the process using /mnt run the below command
# fuser -km /mnt
# fuser -uvm /mnt
So now none of the processes are using /mnt and it can be safely unmounted.
Search for deleted processes occupying the filesystemAgain I have seen cases where there are some deleted process which still lock the files unless their parent process or application relating to that process is completely executed. To view those files you might need to use extra parameters like as shown below
When +L is followed by a number, only files having a link count less than that number will be listed. (No number may follow -L.) A specification of the form +L1 will select open files that have been unlinked. A specification of the form +aL1 <file_system> will select unlinked open files on the specified file system.
How to keep a track of all the commands run by any user in Linux
How do you check Linux machine is Physical or Virtual remotely?
df shows 100% full partition even when there is space on the disk
How to check the lock status of any user account in Linux
Follow the below links for more tutorialsHow to configure iscsi target using Red Hat Linux
What are the different types of Virtual Web Hosting in Apache
Comparison and Difference between VMFS 3 and VMFS 5
How to configure PXE boot server in Linux using Red Hat 6
How to secure Apache web server in Linux using password (.htaccess)
How to register Red Hat Linux with RHN (Red Hat Network )
15 tips to enhance security of your Linux machine
How does a DNS query works when you type a URL on your browser?
How to create password less ssh connection for multiple non-root users
How to create user without useradd command in Linux
How to give normal user root privileges using sudo in Linux/Unix
How to do Ethernet/NIC bonding/teaming in Red Hat Linux
How to install/uninstall/upgrade rpm package with/without dependencies
Why is Linux more secure than windows and any other OS
What is the difference between "su" and "su -" in Linux?