Can I remove VirtFS folder after umounting it ?

egyption

Registered
May 2, 2013
2
0
1
cPanel Access Level
Root Administrator
I have removed all Jailed Shell permissions for all accounts
And I have umounted all jailed folders, by using this command

Code:
for i in `cat /proc/mounts | grep /home/virtfs | cut -d ' ' -f 2 ` ; do umount $i ; done
And with this command
Code:
/scripts/clear_orphaned_virtfs_mounts
Now, Can I remove /home/virtfs, Or should I let it ?

Thanks a lot
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Hello :)

I recommend reading the following document in full:

cPanel - VirtFS

In particular, this warning message is important:

Warning: If you run the rm command on any file or directory within /home/virtfs that is still mounted, you will also delete all of the files stored in the directory to which it is mounted. This will render your server nonfunctional. We do not recommend that you attempt to remove any of these files or directories in this way.


Thank you.