• linux下查看文件系统类型


    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 ~]# 
  • 相关阅读:
    Mysql字符串字段判断是否包含某个字符串的方法
    mysql中用group_concat把selct中的数据列表转换成逗号分隔的字符串
    iview中对列标题头进行格式渲染render
    iview中父组件的数据通过props属性传值给子组件
    iview分页问题
    iview实现国际化
    MySQL查询优化:GROUP BY
    使用@ContextConfiguration替换@SpringBootTest
    WebAppConfiguration in Spring Tests
    使用@ContextConfiguration或者@ContextWebConfiguration注解调用resource文件夹下面的yml文件
  • 原文地址:https://www.cnblogs.com/rusking/p/5740390.html
Copyright © 2020-2023  润新知