Linux系统的块大小(Block Size)怎么查看呢?下面总结一些常用的查看块大小(block size)的方法。

 

方法1: fdisk -l查看block size

 

 

[root@KerryDB ~]# fdisk -l /dev/sda1

 

Disk /dev/sda1: 106 MB, 106896384 bytes, 208782 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 4096 bytes

I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Alignment offset: 512 bytes

 

方法2:stat命令查看block size

 

[root@KerryDB ~]# stat / | grep "IO Block"
  Size: 260             Blocks: 0          IO Block: 4096   directory
 
[root@KerryDB ~]# stat -f /
  File: "/"
    ID: fd0000000000 Namelen: 255     Type: xfs
Block size: 4096       Fundamental block size: 4096
Blocks: Total: 13100800   Free: 11998605   Available: 11998605
Inodes: Total: 26214400   Free: 26170926

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
猜你喜欢
  • 2021-11-15
  • 2021-08-16
  • 2021-06-29
  • 2022-01-19
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
相关资源
相似解决方案