1. 程式人生 > >“df: cannot read table of mounted file systems”.

“df: cannot read table of mounted file systems”.

“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