Appears df:cannot read table of mounted file systems, using Grep-v rootfs/proc/mounts >/etc/mtab After resolution, this way to do the next record.
Here's a look at the differences and connections between/etc/fstab and/etc/mtab.
The role of the/etc/fstab file records information about the hard disk partition on the computer, and when Linux is started, the fsck command to check the partition and Mount command to mount the partition require the information in the fstab to properly check and mount the hard disk.
The role of the/etc/mtab file is that the system is now loaded with file systems, including virtual files created by the operating system, and/etc/fstab is ready for loading.
Whenever mount Mount partition, Umount unload partition, will dynamically update mtab,mtab always maintain the current system mounted partition information, FDISK, DF Such programs, must read the mTAB file, in order to obtain the current system in the partition mount situation. Of course we can also get the current mount information by reading/proc/mount.
When viewing/etc/mtab, the contents of the file were empty, which is why the problem occurred.
Df-h when Df:cannot read table of mounted file systems solution