[svc][op]磁盘(结构)容量计算

时间:2023-03-09 16:56:46
[svc][op]磁盘(结构)容量计算

磁盘结构和容量计算

[svc][op]磁盘(结构)容量计算

[svc][op]磁盘(结构)容量计算

[svc][op]磁盘(结构)容量计算

[svc][op]磁盘(结构)容量计算

fdisk -l显示信息详解

[root@www.linuxidc.com ~]# fdisk -l
Disk /dev/sda: 10.7 GB, bytes
heads, sectors/track, cylinders
Units = cylinders of * = bytes
Sector size (logical/physical): bytes / bytes
I/O size (minimum/optimal): bytes / bytes
Disk identifier: 0x00044938
Device Boot Start End Blocks Id System
/dev/sda1 * Linux
Partition does not end on cylinder boundary.
/dev/sda2 Linux
Partition does not end on cylinder boundary.
/dev/sda3 Linux swap / Solaris
Partition does not end on cylinder boundary.
/dev/sda4 Extended
/dev/sda5 Linux

解析:

Disk /dev/sda: 10.7 GB,  bytes
块设备名称为/dev/sda,此设备的大小为10.7GB,这个数字不是特别精确,我系统是10GB; bytes这是转换成字节后的大小,即:///=10GB (注:bytes=B,表示"字节",bit=b,表示"位")
heads, sectors/track, cylinders
heads:表示磁头数为255
sectors/track:表示每磁道上有63个扇区
cylinders:表示共有1305个柱面,柱面是分区的最小单位
Units = cylinders of * = bytes =* 因为每一个磁头都是在同一个柱面的,63表示每个磁道上的扇区数量,这两个数的乘积表示一个柱面上的扇区数量;所以16065*512表示一个柱面的大小是8225280字节 Sector size (logical/physical): bytes / bytes表示一个扇区的大小是512字节

总结:

所以一个磁盘的大小=一个柱面大小*柱面的总数=磁头数量*每个磁道上的扇区数*一个扇区大小*柱面总数
即:磁盘大小=*=10733990400bytes=.99GB=***
上例中显示出我们的磁盘只有1305个柱面,但下边的分区信息中出现了1306个柱面数,不必太在意,linux显示的这些数据不会十分精确。 fidisk
start end 开始柱面--到---结束柱面。