OpenVZ Forum


Home » General » Support » `df` doesn't show any filesystems inside a Gentoo VE
`df` doesn't show any filesystems inside a Gentoo VE [message #24714] Sat, 08 December 2007 06:42 Go to next message
mfyahya is currently offline  mfyahya
Messages: 2
Registered: December 2007
Junior Member
I filed a bug here: http://bugzilla.openvz.org/show_bug.cgi?id=751

I have 5GB allotted to my Gentoo VE, and everything works well, except that df only reports:

# df
df: no file systems processed


I recompiled everything with `emerge -e system` but the problem persists.
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 next 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
Re: `df` doesn't show any filesystems inside a Gentoo VE [message #24728 is a reply to message #24715] Sat, 08 December 2007 10:51 Go to previous message
mfyahya is currently offline  mfyahya
Messages: 2
Registered: December 2007
Junior Member
Thanks very much for the clear explanation. That fixed it Smile

Previous Topic: Problem vzyum 101 install yum
Next Topic: load average: 0.50, 0.50, 0.38
Goto Forum:
  


Current Time: Sat Nov 09 03:20:51 GMT 2024

Total time taken to generate the page: 0.03230 seconds