df 命令no file systems processed

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了df 命令no file systems processed相关的知识,希望对你有一定的参考价值。



故障现象:

    执行df -h以及df -i检查磁盘信息是,无法返回结果,报df : no file systems processed错误


原因分析:

    在执行 df 命令时,会读取 /etc/mtab 文件中的挂载信息,才能获取到当前系统中的分区的挂载情况。而 /etc/mtab 文件是在 mount 挂载分区、umount 卸载分区等操作时动态更新的,同时它也与 /proc/mount 中的挂载信息相同。当 /etc/mtab 中的内容存在异常导致与 /proc/mount 不同步时,就会导致执行 df 时出现前述报错。


解决方法:

    同步/proc/mounts信息到/etc/mtab

   

 cat /proc/mounts > /etc/mtab




本文出自 “自助者天助!” 博客,请务必保留此出处http://chenyicai.blog.51cto.com/1593876/1933687

以上是关于df 命令no file systems processed的主要内容,如果未能解决你的问题,请参考以下文章

07 df 命令

Linux基础:df命令总结

adb 删除文件时提示Read-only file system问题not in /proc/mounts

原创Linux基础之常用命令

Linux使用命令CD时候使用tab报-bash: cannot create temp file for here-document: No space left on

Linux使用命令CD时候使用tab报-bash: cannot create temp file for here-document: No space left on