一直以来对Solaris中的vfstab和mnttab都没有清晰认识,今天查了资料终于有所收获。
Solaris中的vfstab和mnttab
/etc/vfstab:
可以用户编辑,在系统启动时自动加载的条目,
还可以为一些命令作参照,通过挂接点找到设备路径,例如:mount
/etc/mnttab:
不用不可编辑,系统kernel维护,在执行mount/umount时触发修改
记录了当前系统已经mount的fs
reference:
When a file system is mounted, an entry is maintained in the mounted file system table called /etc/mnttab. The file /etc/mnttab is really a file system that provides read-only access to the table of mounted file systems for the current host. The mount command adds entries to this table, and umount removes entries from this table. The kernel maintains the list in order of mount time. For example, the first mounted file system is first in the list, and the most recently mounted file system is last. When mounted on a mount point, the file system appears as a regular file containing the current mnttab information. Each entry in this table is a line of fields separated by spaces in this form:
<special> <mount_point> <fstype> <options> <time>
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7767687/viewspace-1006188/ ,如需转载,请注明出处,否则将追究法律责任。