HostOnNet Blog

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

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