Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Bind mounts

19 bytes removed, 10:01, 20 September 2010
Read-only bind mounts
mount -n --bind -oremount,ro $VZDIR/root/777/home
In Debian 2.6.32-5-openvz-686 kernel With some kernels 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:
Anonymous user