OpenVZ Forum


Home » General » Support » `df` doesn't show any filesystems inside a Gentoo VE
Re: `df` doesn't show any filesystems inside a Gentoo VE [message #24715 is a reply to message #24714] Sat, 08 December 2007 07:04 Go to previous messageGo to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

On a usual Linux system, all the filesystems are mounted using mount, which leaves an appropriate entry in /etc/mtab. df when uses /etc/mtab to get a hint on what is mounted.

In a VE, root filesystem is mounted from the host system, thus no record about / in VE's /etc/mtab, thus df shows nothing.

You can fix that by linking /etc/mtab to /proc/mounts (which is basically showing the same thing but from the kernel's POV), or add an appropriate entry to /etc/mtab directly (cat /proc/mounts > /etc/mtab would be sufficient I guess).


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
 
Read Message
Read Message
Read Message
Previous Topic: Problem vzyum 101 install yum
Next Topic: load average: 0.50, 0.50, 0.38
Goto Forum:
  


Current Time: Mon Jul 14 20:07:20 GMT 2025

Total time taken to generate the page: 0.01534 seconds