linux 中查看不同分区所属的文件系统
001、lsblk -f命令
[root@PC1 /]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 120G 0 disk ├─sda1 8:1 0 500M 0 part /boot ├─sda2 8:2 0 19.5G 0 part │ ├─rhel-root 253:0 0 17.5G 0 lvm / │ └─rhel-swap 253:1 0 2G 0 lvm [SWAP] └─sda3 8:3 0 100G 0 part sr0 11:0 1 3.5G 0 rom /media/cdrom [root@PC1 /]# lsblk -f NAME FSTYPE LABEL UUID MOUNTPOINT sda ├─sda1 xfs d36200c1-6519-4b61-b668-7e6a2638bc5f /boot ├─sda2 LVM2_mem gkGLTC-sBFW-vzat-s6ao-Tss7-ha5E-0bje6k │ ├─rhel-root xfs 0215b3fc-9e70-4b80-bc20-d316ee86dcb9 / │ └─rhel-swap swap dd12ffb4-3668-481e-95a3-25bc8df93f1f [SWAP] └─sda3 xfs b6dfbc62-e781-4dd2-b1cc-9aa01e602f16 sr0 iso9660 RHEL-7.0 Server.x86_64 2014-05-07-03-58-46-00 /media/cdr
002、df命令
[root@PC1 /]# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/rhel-root 18348032 3308368 15039664 19% / devtmpfs 1925240 0 1925240 0% /dev tmpfs 1934520 140 1934380 1% /dev/shm tmpfs 1934520 9028 1925492 1% /run tmpfs 1934520 0 1934520 0% /sys/fs/cgroup /dev/sr0 3654720 3654720 0 100% /media/cdrom /dev/sda1 508588 121216 387372 24% /boot [root@PC1 /]# df -T Filesystem Type 1K-blocks Used Available Use% Mounted on /dev/mapper/rhel-root xfs 18348032 3308368 15039664 19% / devtmpfs devtmpfs 1925240 0 1925240 0% /dev tmpfs tmpfs 1934520 140 1934380 1% /dev/shm tmpfs tmpfs 1934520 9028 1925492 1% /run tmpfs tmpfs 1934520 0 1934520 0% /sys/fs/cgroup /dev/sr0 iso9660 3654720 3654720 0 100% /media/cdrom /dev/sda1 xfs 508588 121216 387372 24% /boot
003、blkid命令
[root@PC1 /]# blkid /dev/sda1: UUID="d36200c1-6519-4b61-b668-7e6a2638bc5f" TYPE="xfs" /dev/sda2: UUID="gkGLTC-sBFW-vzat-s6ao-Tss7-ha5E-0bje6k" TYPE="LVM2_member" /dev/sda3: UUID="b6dfbc62-e781-4dd2-b1cc-9aa01e602f16" TYPE="xfs" /dev/sr0: UUID="2014-05-07-03-58-46-00" LABEL="RHEL-7.0 Server.x86_64" TYPE="iso9660" PTTYPE="dos" /dev/mapper/rhel-root: UUID="0215b3fc-9e70-4b80-bc20-d316ee86dcb9" TYPE="xfs" /dev/mapper/rhel-swap: UUID="dd12ffb4-3668-481e-95a3-25bc8df93f1f" TYPE="swap"