黑帽联盟

标题: “df: cannot read table of mounted file systems”. [打印本页]

作者: 定位    时间: 2017-8-3 19:53
标题: “df: cannot read table of mounted file systems”.
执行df命令出现错误:“df: cannot read table of mounted file systems”.


“df -l” returned an error: “df: cannot read table of mounted file systems”. I looked at my “/etc/mtab” file – empty! I did a “fdisk -l” and saw my partitions there, then proceeded to create a new mtab from my /proc/mount:
grep -v rootfs /proc/mounts > /etc/mtab

当出现以上错误时,只要运行一下以下命令即可。
grep -v rootfs /proc/mounts > /etc/mtab






欢迎光临 黑帽联盟 (https://bbs.cnblackhat.com/) Powered by Discuz! X2.5