Linux / etc distinction / fstab and / etc / mtab of

The role of / etc / fstab file

Record the information on the computer's hard drive partition, boot linux, when the fsck command to check the partition, and mount the partition mount command, you need the information in the fstab to mount the hard drive and the proper checks.

 

 

The role of / etc / mtab / file

The record is now the system has been mounted file systems, including the establishment of a virtual operating system files, and the / etc / fstab is a system to be loaded.

Whenever mount to mount the partition, umount unmount the partition will dynamically update mtab, the partition information mtab always maintained the current system has been mounted, fdisk, df such procedures, must be read mtab file, to get the current system the partition mounted case, of course, we also can own by reading / proc / mount to get the current mount information

Guess you like

Origin www.cnblogs.com/ghl666/p/12195303.html