我们平时对磁盘进行挂载,有时不会指定-t,比如mount /dev/sda1 /mnt
那么问题来了,最终linux是按什么文件系统进行挂载的呢?
我们看下mount的man文档可以发现如下一段话:
If no -t option is given, or if the auto type is specified,
mount will try to guess the desired type. Mount uses the blkid
library for guessing the filesystem type; if that does not turn
up anything that looks familiar, mount will try to read the
file /etc/filesystems, or, if that does not exist,
/proc/filesystems.
如果没有指定-t 和指定-t auto其实效果是一样的,mount会去猜测文件
系统,猜不到的话,去/proc/filesystems里面按个尝试。