Moving /var/cagefs directory

Navigation:  CageFS > Configuration >

Moving /var/cagefs directory

Previous pageReturn to chapter overviewNext page

To move /var/cagefs to another location:

 

$ cagefsctl --disable-cagefs
$ cagefsctl --unmount-all

 

Verify that /var/cagefs.bak directory does not exist (if it exists - change name "cagefs.bak" to something else)

 

$ cp -rp /var/cagefs /new/path/cagefs
$ mv /var/cagefs /var/cagefs.bak
$ ln -s /new/path/cagefs /var/cagefs
$ cagefsctl --enable-cagefs
$ cagefsctl --remount-all

 

Verify that the following command gives empty output:

 

$ cat /proc/mounts | grep cagefs.bak

 

Then you can safely remove /var/cagefs.bak:

 

$ rm -rf /var/cagefs.bak