How to Fix umount target is busy in Linux

Some of the error on Linux is annoying and the “umount target is busy” error is one of the them. It normally occurs while you try to umount a filesystem or drive in Linux. It happens when you are trying to mount a device or filesystem that is being used by the some process in Linux. It occurs to prevent data loss in Linux.  In this tutorial, we will gudie you through the process to fix umount target is busy in Linux.

How to Fix umount target is busy in Linux

There are multiple ways to to fix umount target is busy error in Linux.

1. Using fuser –  Kill processes accessing the file

In this method, we will take the help of fuser command. It normally identify the processes which are accessing sockets or files on filesystems. Run the following command with -m option to list down the all processes that is accessing the files or mount point on the file system in a tabular format.

fuser -mv /media/dsk

After figuring out the processes that is using the file on the mounted filesystem, You can use the following kill command to delete or terminate those processes.

fuser -kmv /media/dsk

2. Using lsof – Find and Kill the processes using the file

In this method, we will use  lsof  command to display the all open files and the processes associated with them and kill them afterward. Run the following command to find PID (process id) corresponding to the mount point.

lsof /media/dsk or lsof  | grep '/media/dsk'

Now, Run the kill process to terminate the particular process:

kill -9 3522
kill -9 4001

3. Lazy unmount

Lazy unmounting command removes all references to the detached file system when the process holding or occupying particular filesystem or the mount is no longer using it or holding it. Once no processes are accessing the unmounted file system, the umount command executes and actually detaches the file system. To lazy unmount run the command with  -l option followed by the mount path:

umount -l

4. Force unmount to Fix “umount target is busy” in Linux

You can use this option if you are trying to unmount an NFS filesystem in Linux. Force unmount will detach the server mount point by terminating the running processes.

unmount -f /path/to/busy-nfs-mount

0 comments

  1. Interactive games serve as a favored source of amusement for millions people globally.
    Such experiences provide compelling worlds and interactive interaction, often letting players to interact with others in real time.
    Given an extensive variety of genres, there is something for each taste, be it casual or competitive gaming.
    https://homirussia.ru/cozy/853-responsible-gambling-tools-and-resources-for-players.html

  2. Web-based games serve as a popular type of leisure for numerous players globally.
    These games present engaging adventures and social connection, often allowing gamers to compete with fellow players in real time.
    With a vast range of genres, one can find something for every taste, whether light or competitive gaming.
    https://fashionista.femalemoda.ru/7U9H4hHBgITd/

  3. Virtual games represent a widely enjoyed form of recreation for millions users across the globe.
    These games deliver engaging worlds and community connection, frequently allowing users to connect with friends synchronously.
    Featuring an extensive selection of styles, there is a title for any taste, be it casual or intense gaming.
    https://b7.chenews.ru/g1fuNqjp0iaU/

  4. Digital games are a favored source of pastime for numerous users around the world.
    They present compelling gameplay and interactive connection, frequently letting users to compete with people instantaneously.
    Given an extensive range of genres, one can find a title for all player, whether casual or competitive gaming.
    https://homegeek.omskdaily.ru/aD2HecsP7Lxa/

  5. Web-based games are a prevalent type of entertainment for numerous players around the world.
    These games deliver compelling worlds and interactive interaction, often letting users to connect with friends instantaneously.
    Given an extensive variety of categories, one can find a title for all taste, be it relaxed or intense gaming.
    https://energiadoma.ru/full-read/128-the-impact-of-live-dealer-games-on-superbet-casino-s-overall-player-engagement.html

  6. Web-based games constitute a popular type of entertainment for millions people around the world.
    They present engaging worlds and interactive engagement, frequently enabling players to interact with people synchronously.
    Featuring a diverse variety of styles, one can find something for any taste, whether light or competitive engagement.
    https://uipnz.ru/article/1570.html

Leave a comment

Your email address will not be published. Required fields are marked *