Changes

Jump to: navigation, search

Bind mounts

268 bytes added, 09:56, 20 September 2010
Read-only bind mounts
In Debian 2.6.32-5-openvz-686 kernel you need to add the sourcedirectory also: mount -n --bind -oremount,ro '''/home''' $VZDIR/root/777/home
 
Sometimes it is usefull to have a folder read-only mounted in a VPS, but also be able to put files in that directory. If you want that, just create an other directory and simlink the read only files into that folder:
 
mkdir /addfileshere
ln -s /home/* /addfileshere/
== See also ==
Anonymous user

Navigation menu