https://blog.csdn.net/terryliu98/article/details/26479359
[root@kvm ~]# fdisk -l /dev/sdc
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Disk /dev/sdc: 21.5 GB, 21474836480 bytes, 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: gpt
Disk identifier: DCB37AAA-FB15-4537-BFCC-8F43971AA619
# Start End Size Type Name
1 2048 19531775 9.3G Microsoft basic
[root@kvm ~]# tune2fs -l /dev/sdc1 |grep "Block size"
Block size: 4096
一个block是4K,也就是说我所使用的文件系统中1个块是由连续的8个扇区组成。
19531775-2048+1=19529728 扇区/8=2441216块kx4K=9764864K/1024/1024=9.3125G