Umount Device Failure with Device or resource is busy error message

See this blog. Might be a few reasons:

  • Device is busy with open files. Use “lsof /mnt/test” to show which file is opened by which process (assume /mnt/test is the mounting point). Then use “kill -9 pids” to stop the processes.
  • NFS kernel server is exporting directories on the device. Use “/etc/init.d/nfs-kernel-server stop” to stop the server.
  • Loopback is set backed by a file. Use “losetup -a” to see which loopback device and the file is open then use “umount file” to umount the file and “losetup -d <loopback>” to stop the loopback.
  • A swap file exists on the path. See “/proc/swap”. Then stop the swap.
  • Disk failure.
Advertisements

About minghuasweblog

a long time coder
This entry was posted in All, Hardware and tagged , , , . Bookmark the permalink.

One Response to Umount Device Failure with Device or resource is busy error message

  1. Jake says:

    lsof /mnt/test: no such file or directory
    /proc/swap: no such file or directory

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s