Check Mounted Filesystem
2 min read

Check Mounted Filesystem

  • findmnt
$ findmnt 
TARGET                                SOURCE                         FSTYPE         OPTIONS
/                                     /dev/sdb2                      xfs            rw,relatime,attr2,inode64,noquota
├─/sys                                sysfs                          sysfs          rw,nosuid,nodev,noexec,relatime
│ ├─/sys/kernel/security              securityfs                     securityfs     rw,nosuid,nodev,noexec,relatime
│ ├─/sys/fs/cgroup                    tmpfs                          tmpfs          ro,nosuid,nodev,noexec,mode=755
│ │ ├─/sys/fs/cgroup/systemd          cgroup                         cgroup         rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd
│ │ ├─/sys/fs/cgroup/blkio            cgroup                         cgroup         rw,nosuid,nodev,noexec,relatime,blkio
│ │ ├─/sys/fs/cgroup/pids             cgroup                         cgroup         rw,nosuid,nodev,noexec,relatime,pids
│ │ ├─/sys/fs/cgroup/memory           cgroup                         cgroup         rw,nosuid,nodev,noexec,relatime,memory
│ │ ├─/sys/fs/cgroup/cpu,cpuacct      cgroup                         cgroup         rw,nosuid,nodev,noexec,relatime,cpuacct,cpu
│ │ ├─/sys/fs/cgroup/freezer          cgroup                         cgroup         rw,nosuid,nodev,noexec,relatime,freezer
│ │ ├─/sys/fs/cgroup/net_cls,net_prio cgroup                         cgroup         rw,nosuid,nodev,noexec,relatime,net_prio,net_cls
│ │ ├─/sys/fs/cgroup/hugetlb          cgroup                         cgroup         rw,nosuid,nodev,noexec,relatime,hugetlb
│ │ ├─/sys/fs/cgroup/cpuset           cgroup                         cgroup         rw,nosuid,nodev,noexec,relatime,cpuset
│ │ ├─/sys/fs/cgroup/perf_event       cgroup                         cgroup         rw,nosuid,nodev,noexec,relatime,perf_event
│ │ └─/sys/fs/cgroup/devices          cgroup                         cgroup         rw,nosuid,nodev,noexec,relatime,devices
│ ├─/sys/fs/pstore                    pstore                         pstore         rw,nosuid,nodev,noexec,relatime
│ ├─/sys/kernel/config                configfs                       configfs       rw,relatime
│ ├─/sys/kernel/debug                 debugfs                        debugfs        rw,relatime
│ └─/sys/fs/fuse/connections          fusectl                        fusectl        rw,relatime
├─/proc                               proc                           proc           rw,nosuid,nodev,noexec,relatime
│ └─/proc/sys/fs/binfmt_misc          systemd-1                      autofs         rw,relatime,fd=25,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=35183
│   └─/proc/sys/fs/binfmt_misc        binfmt_misc                    binfmt_misc    rw,relatime
├─/dev                                devtmpfs                       devtmpfs       rw,nosuid,size=65901120k,nr_inodes=16475280,mode=755
│ ├─/dev/shm                          tmpfs                          tmpfs          rw,nosuid,nodev
│ ├─/dev/pts                          devpts                         devpts         rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000
│ ├─/dev/mqueue                       mqueue                         mqueue         rw,relatime
│ └─/dev/hugepages                    hugetlbfs                      hugetlbfs      rw,relatime
├─/run                                tmpfs                          tmpfs          rw,nosuid,nodev,mode=755
│ └─/run/user/0                       tmpfs                          tmpfs          rw,nosuid,nodev,relatime,size=13182388k,mode=700
├─/boot                               /dev/sdb1                      xfs            rw,relatime,attr2,inode64,noquota
├─/mnt/brick1                         /dev/sda                       xfs            rw,relatime,attr2,inode64,noquota
├─/var/lib/nfs/rpc_pipefs             sunrpc                         rpc_pipefs     rw,relatime
└─/gluster-yk                         glusterfs.local:/gluster-yk fuse.glusterfs rw,relatime,user_id=0,group_id=0,default_permissions,allow_other,max_read=13107
  • findmnt define fstype
# findmnt -t xfs
TARGET        SOURCE    FSTYPE OPTIONS
/             /dev/sdb2 xfs    rw,relatime,attr2,inode64,noquota
├─/boot       /dev/sdb1 xfs    rw,relatime,attr2,inode64,noquota
└─/mnt/brick1 /dev/sda  xfs    rw,relatime,attr2,inode64,noquota
  • df -T
# df -T
Filesystem                     Type           1K-blocks      Used Available Use% Mounted on
devtmpfs                       devtmpfs        65901120         0  65901120   0% /dev
tmpfs                          tmpfs           65911932         0  65911932   0% /dev/shm
tmpfs                          tmpfs           65911932      9980  65901952   1% /run
tmpfs                          tmpfs           65911932         0  65911932   0% /sys/fs/cgroup
/dev/sdb2                      xfs            111917680  75458104  36459576  68% /
/dev/sdb1                      xfs              1038336    301944    736392  30% /boot
/dev/sda                       xfs            234324184 174395852  59928332  75% /mnt/brick1
tmpfs                          tmpfs           13182388         0  13182388   0% /run/user/0
glusterfs.local:/gluster-yk fuse.glusterfs 468648368 389114228  79534140  84% /gluster-yk