Ubuntu
找出自動掛載設備的類型
我正在開發一個系統(Ubuntu Precise),其安裝定義
/etc/fstab
如下:/dev/vdb /mnt auto defaults,nobootwait,comment=cloudconfig 0 2
最初我只是想知道它是否是 NFS(由於潛在的 MySQL 鎖定問題)。從 判斷
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" (e.g., devpts, proc and nfs). If /etc/filesystems ends in a line with a single * only, mount will read /proc/filesystems afterwards.
但是,現在出於好奇,我怎樣才能更多地了解它實際上是什麼類型的設備?(對於上下文,這是在 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
嗎?:)