HostOnNet Blog

df: ‘/dev/hugepages’: No such file or directory

Looking for Linux Server Admin or WordPress Expert? We can help.

On a new installation of CloudLinux 7 server, i got following error when running df -h

[root@server46 ~]# df -h
df: ‘/dev/hugepages’: No such file or directory
Filesystem      Size  Used Avail Use% Mounted on
/dev/md2        145G  1.3G  136G   1% /
[root@server46 ~]#

This was caused due to corrupt /etc/mtab file. It is fixed by deleting the file and making it a symlink to /proc/mounts

rm -f /etc/mtab
ln -s /proc/mounts /etc/mtab

previously /home did not mount, may be due to this error. Once this is done and rebooted the server, everything worked properly.

Posted in Linux

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.