1820485 Members
2407 Online
109624 Solutions
New Discussion юеВ

rm -d permission denied

 
Kevin_194
Advisor

rm -d permission denied

Hi,

we try to rm a directory with rm -d but we get "permission denied" Error.

This directory was an mount directory.
A new umount give the "device is busy" Error now!

What ist the right way to rm this directory and to be sure, that it will not touch the old mountet directory.


Thank you
Kevin
3 REPLIES 3
Fred Ruffet
Honored Contributor

Re: rm -d permission denied

When issuing mount command, is your FS still present ? If yes, you can use "fuser -cu" to localte processes that are running on it (stop or kill).

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
HGN
Honored Contributor

Re: rm -d permission denied

Hi

Check if the mount is still active and no one should on the mount point, then you can unmount it and try and remove the mount point directory. fuser -u will show any process on the mount point which can be terminated and then be removed.

Rgds

Gopi
Kevin_194
Advisor

Re: rm -d permission denied

When issuing mount command, is your FS still present ? If yes, you can use "fuser -cu" to localte processes that are running on it (stop or kill).


Thanks Fred & Gopi