mount如果没有指定-t会怎么样?

我们平时对磁盘进行挂载,有时不会指定-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里面按个尝试。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值