Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Gentoo template creation

16 bytes added, 15:56, 8 December 2008
m
Fixed Path
The container's root filesystem is mounted by the host system, not the guest — and therefore root fs will not appear in <code>/etc/mtab</code>. It will lead to a non-working <code>df</code> command. To fix, link /etc/mtab to /proc/mounts.
<pre>
rm -f /var/lib/vz/private/777/etc/mtabln -s /proc/mounts /var/lib/vz/private/777/etc/mtab
</pre>
After replacing <code>/etc/mtab</code> with a symlink to <code>/proc/mounts</code>, you will always have up-to-date information of what is mounted in <code>/etc/mtab</code>.
10
edits