黑帽联盟

 找回密码
 会员注册
查看: 1924|回复: 0

[基础服务] “df: cannot read table of mounted file systems”.

[复制链接]

906

主题

38

听众

3374

积分

管理员

Rank: 9Rank: 9Rank: 9

  • TA的每日心情
    慵懒
    昨天 00:19
  • 签到天数: 1695 天

    [LV.Master]伴坛终老

    执行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

    您需要登录后才可以回帖 登录 | 会员注册

    发布主题 !fastreply! 收藏帖子 返回列表 搜索
    回顶部