Using vzctl to mount and unmount a container
You are able to mount and unmount a container's private area located at /vz/root/ctid
, which provides the container with root filesystem that exists on the server. Mounting and unmounting containers come in handy when you have trouble accessing the filesystem for your container.
Mounting a container
To mount a container, run the following command:
vzctl mount 101
In the previous example, we used the vzctl
command with the mount
option to mount the private area for the container 101
.
Unmounting a container
To unmount a container, run the following command:
vzctl umount 101
In the previous example, we used the vzctl
command with the umount
option to unmount the private area for the container 101
.