Df-h when Df:cannot read table of mounted file systems solution

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.