标签:
1. df -hT命令
-h, --human-readable print sizes in human readable format (e.g., 1K 234M 2G)
-T, --print-type print file system type
[root@rhel7 ~]# df -hT Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/rhel-root xfs 18G 4.5G 13G 26% / devtmpfs devtmpfs 911M 0 911M 0% /dev tmpfs tmpfs 921M 0 921M 0% /dev/shm tmpfs tmpfs 921M 8.4M 912M 1% /run tmpfs tmpfs 921M 0 921M 0% /sys/fs/cgroup /dev/sdb1 ext4 4.8G 20M 4.6G 1% /testdisk /dev/sda1 xfs 497M 124M 374M 25% /boot tmpfs tmpfs 185M 0 185M 0% /run/user/0
xfs是RHEL7版本默认的文件系统类型。
2. 使用parted磁盘管理工具查看
[root@rhel7 ~]# parted GNU Parted 3.1 Using /dev/sda Welcome to GNU Parted! Type ‘help‘ to view a list of commands. (parted) print list Model: ATA VBOX HARDDISK (scsi) Disk /dev/sda: 21.5GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 525MB 524MB primary xfs boot 2 525MB 21.5GB 20.9GB primary lvm Model: ATA VBOX HARDDISK (scsi) Disk /dev/sdb: 5369MB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 5369MB 5368MB primary ext4 Model: ATA VBOX HARDDISK (scsi) Disk /dev/sdc: 2147MB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 106MB 105MB primary linux-swap(v1) Model: Linux device-mapper (linear) (dm) Disk /dev/mapper/rhel-swap: 2147MB Sector size (logical/physical): 512B/512B Partition Table: loop Disk Flags: Number Start End Size File system Flags 1 0.00B 2147MB 2147MB linux-swap(v1) Model: Linux device-mapper (linear) (dm) Disk /dev/mapper/rhel-root: 18.8GB Sector size (logical/physical): 512B/512B Partition Table: loop Disk Flags: Number Start End Size File system Flags 1 0.00B 18.8GB 18.8GB xfs (parted) quit [root@rhel7 ~]#
标签:
原文地址:http://www.cnblogs.com/rusking/p/5740390.html