본문 바로가기

리눅스

경로의 파일 시스템 확인

findmnt -T 경로


[root@10.9.8.2 ~]# findmnt -T /lustre
TARGET  SOURCE                  FSTYPE OPTIONS
/lustre 192.168.30.68@tcp:/DATA lustre rw,flock,lazystatfs



[root@10.9.8.2 ~]# findmnt --help

Usage:
 findmnt [options]
 findmnt [options] <device> | <mountpoint>
 findmnt [options] <device> <mountpoint>
 findmnt [options] [--source <device>] [--target <mountpoint>]

Options:
 -s, --fstab            search in static table of filesystems
 -m, --mtab             search in table of mounted filesystems
 -k, --kernel           search in kernel table of mounted
                          filesystems (default)

 -p, --poll[=<list>]    monitor changes in table of mounted filesystems
 -w, --timeout <num>    upper limit in milliseconds that --poll will block

 -A, --all              disable all built-in filters, print all filesystems
 -a, --ascii            use ASCII chars for tree formatting
 -c, --canonicalize     canonicalize printed paths
 -D, --df               imitate the output of df(1)
 -d, --direction <word> direction of search, 'forward' or 'backward'
 -e, --evaluate         convert tags (LABEL,UUID,PARTUUID,PARTLABEL)
                          to device names
 -F, --tab-file <path>  alternative file for --fstab, --mtab or --kernel options
 -f, --first-only       print the first found filesystem only
 -i, --invert           invert the sense of matching
 -l, --list             use list format output
 -N, --task <tid>       use alternative namespace (/proc/<tid>/mountinfo file)
 -n, --noheadings       don't print column headings
 -u, --notruncate       don't truncate text in columns
 -O, --options <list>   limit the set of filesystems by mount options
 -o, --output <list>    the output columns to be shown
 -P, --pairs            use key="value" output format
 -r, --raw              use raw output format
 -t, --types <list>     limit the set of filesystems by FS types
 -v, --nofsroot         don't print [/dir] for bind or btrfs mounts
 -R, --submounts        print all submounts for the matching filesystems
 -S, --source <string>  the device to mount (by name, maj:min,
                          LABEL=, UUID=, PARTUUID=, PARTLABEL=)
 -T, --target <string>  the mountpoint to use

 -h, --help     display this help and exit
 -V, --version  output version information and exit

Available columns:
      SOURCE  source device
      TARGET  mountpoint
      FSTYPE  filesystem type
     OPTIONS  all mount options
 VFS-OPTIONS  VFS specific mount options
  FS-OPTIONS  FS specific mount options
       LABEL  filesystem label
        UUID  filesystem UUID
   PARTLABEL  partition label
    PARTUUID  partition UUID
     MAJ:MIN  major:minor device number
      ACTION  action detected by --poll
  OLD-TARGET  old mountpoint saved by --poll
 OLD-OPTIONS  old mount options saved by --poll
        SIZE  filesystem size
       AVAIL  filesystem size available
        USED  filesystem size used
        USE%  filesystem use percentage
      FSROOT  filesystem root
         TID  task ID
          ID  mount ID
  OPT-FIELDS  optional mount fields
 PROPAGATION  VFS propagation flags
        FREQ  dump(8) frequency in days [fstab only]
      PASSNO  pass number on parallel fsck(8) [fstab only]

For more details see findmnt(8).


'리눅스' 카테고리의 다른 글

하드웨어 조회  (0) 2018.09.11
C 메모리 영역  (0) 2018.06.05