当前位置: 首页 > 工具软件 > fdisk > 使用案例 >

fdisk详解

陶超
2023-12-01

fdisk -l

Disk /dev/mapper/vgob-data: 20853.8 GB, 20853848801280 bytes, 40730173440 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 131072 bytes / 1441792 bytes

 Disk /dev/mapper/ob_vg-testlv: 107.4 GB, 107374182400 bytes, 209715200 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

physical sector:磁盘的一个物理扇区,目前大硬盘一般为4096bytes(4KB),其他的有512bytes(0.5KB)的。

logical sector:现在physical sector是4096的硬盘往往会把一个physical sector分成8个logical sector,每个512bytes(0.5KB),系统实际操作logical sector。

划分logical sector的原因是有些系统调用还不支持sector为4096bytes(4KB)的磁盘。

 类似资料: