解决 df: no file systems processed
背景介绍
Linux 运维开发时,在使用 df 命令时,偶尔会遇到以下报错:
df: no file systems processed"
或者
“df:未处理文件系统”
解决方法
- 
root 权限下,执行 #cat /proc/mounts > /etc/mtab命令。
- 
让 /etc/mtab 与 /proc/mount 内容同步,然后再使用 df -h就可以看到恢复正常了。
Linux 运维开发时,在使用 df 命令时,偶尔会遇到以下报错:
df: no file systems processed"
或者
“df:未处理文件系统”
root 权限下,执行 #cat /proc/mounts > /etc/mtab 命令。
让 /etc/mtab 与 /proc/mount 内容同步,然后再使用 df -h 就可以看到恢复正常了。