• VMware

    Learn about VMware virtualization for its products like vsphere ESX and ESXi, vCenter Server, VMware View, VMware P2V and many more

  • Linux

    Step by step configuration tutorials for many of the Linux services like DNS, DHCP, FTP, Samba4 etc including many tips and tricks in Red Hat Linux.

  • Database

    Learn installation and configuration of databases like Oracle, My SQL, Postgresql, etc including many other related tutorials in Linux.

  • Life always offers you a second chance ... Its called tomorrow !!!

    Monday, October 15, 2012

    Forcefully Unmounting: Mount point is busy

    Trying to forcefully unmount any device like NFS or CD-ROM and getting an error or 'mount point is busy' ?

    Mount point is busy
    Text file is busy
    This is the case most of the time where most beginners restart the machine to kill those processes which are accessing the device due to which they are unable to unmount.

    The only thing you need to do is find those processes which are trying to access that device and kill them.
    There are various ways to do so among which I will show you some which I know and use to do the same.

    NOTE: If the mount point is for NFS, clear the NFS entry from mtab
    # vi /etc/mtab
    # lsof | grep (mount point)
    this will show you the process IDs which are accessing the mount point. Once you get the process IDs you can kill them manually.
    # kill -9 (process ID)
    This command is useful if a particular file is shown as busy rather than a directory.
    # fuser -km (filename)
    -k kill the process accessing the mentioned file
    -m specifies the file on a mounted file system or a block device i.e. mounted

    Once done you can unmount the device
    # umount (mount point)

    Follow the below links for more tutorials

    How 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?


    Post a Comment