我正在使用在/etc/fstab定义的一个系统(Ubuntu Precise),如下所示:
/dev/vdb /mnt auto defaults,nobootwait,comment=cloudconfig 0 2
最初我只是想知道它是否是NFS(由于潜在的MySQLlocking问题)。 从man mount来看,这不是:
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. All of the filesystem types listed there will be tried, except for those that are labeled "nodev" (eg, devpts, proc and nfs). If /etc/filesystems ends in a line with a single * only, mount will read /proc/filesystems afterwards.
但是,现在出于好奇,我怎么能find更多关于它实际上是什么types的设备? (就上下文而言,这是一个在OpenStack上运行的VM,该设备是从某处挂载的60Gb分配 – 但我不知道如何)
编辑在这里包括答案:
$ mount /dev/vdb on /mnt type ext3 (rw,_netdev) $ df -T /dev/vdb ext3 61927420 2936068 55845624 5% /mnt
你会满意只是df -T /mnt吗? 🙂