已挂载
[root@DouyuTest01 composetest2]# df -T |grep -v tmpfs
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/vda1 ext4 71083032 14254816 53194248 22% /
未挂载
##法一:
[root@DouyuTest01 composetest2]# parted --help
-l, --list lists partition layout on all block devices
[root@DouyuTest01 composetest2]# parted -l
……
Number Start End Size Type File system Flags
1 1049kB 74.1GB 74.1GB primary ext4 boot
##法二:
[root@DouyuTest01 composetest2]# lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
sr0
vda
└─vda1 ext4 / 0aa3affc-3964-4faa-a79f-71714fa914eb /
##法三:
[root@DouyuTest01 composetest2]# file -s /dev/vda1
/dev/vda1: Linux rev 1.0 ext4 filesystem data, UUID=0aa3affc-3964-4faa-a79f-71714fa914eb (needs journal recovery) (extents) (64bit) (large files) (h
uge files)