HostOnNet Blog

Device or resource busy

Looking for Linux Server Admin or WordPress Expert? We can help.

When i try to move a folder, i get following error

[root@server78 ~]# mv /usr/share/cagefs-skeleton /usr/share/cagefs-skeleton.bak
mv: cannot move ‘/usr/share/cagefs-skeleton’ to ‘/usr/share/cagefs-skeleton.bak’: Device or resource busy
[root@server78 ~]# 

First see if this folder is mounted with command

cat /proc/mounts | grep cagefs-skeleton

If it is mounted, you need to unmount it first before renaming.

To see which program access the folder, use lsof command

lsof +D /usr/share/cagefs-skeleton

Posted in Linux

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.