fdisk -l显示信息详解
2017-06-19 12:06
417 查看
fdisk -l显示信息详解
解析:
Disk /dev/sda: 10.7 GB, 10737418240 bytes
块设备名称为/dev/sda,此设备的大小为10.7GB,这个数字不是特别精确,我系统是10GB;10737418240 bytes这是转换成字节后的大小,即:10737418240/1024/1024/1024=10GB (注:bytes=B,表示“字节”,bit=b,表示“位”)
255 heads, 63 sectors/track, 1305 cylinders
255 heads:表示磁头数为255
63 sectors/track:表示每磁道上有63个扇区
1305 cylinders:表示共有1305个柱面,柱面是分区的最小单位
Units = cylinders of 16065 * 512 = 8225280 bytes
16065=255*63 因为每一个磁头都是在同一个柱面的,63表示每个磁道上的扇区数量,这两个数的乘积表示一个柱面上的扇区数量;所以16065*512表示一个柱面的大小是8225280字节
Sector size (logical/physical): 512 bytes / 512 bytes
表示一个扇区的大小是512字节
总结:所以一个磁盘的大小=一个柱面大小柱面的总数=磁头数量每个磁道上的扇区数一个扇区大小柱面总数
即:磁盘大小=8225280*1305=10733990400bytes=9.99GB=255*63*512*1305
上例中显示出我们的磁盘只有1305个柱面,但下边的分区信息中出现了1306个柱面数,不必太在意,linux显示
4000
的这些数据不会十分精确。
[root@www.linuxidc.com ~]# fdisk -l Disk /dev/sda: 10.7 GB, 10737418240 bytes 255 heads, 63 sectors/track, 1305 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00044938 Device Boot Start End Blocks Id System /dev/sda1 * 1 638 5120000 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 638 893 2048000 83 Linux Partition 2 does not end on cylinder boundary. /dev/sda3 893 1020 1024000 82 Linux swap / Solaris Partition 3 does not end on cylinder boundary. /dev/sda4 1020 1306 2292736 5 Extended /dev/sda5 1021 1306 2291712 83 Linux
解析:
Disk /dev/sda: 10.7 GB, 10737418240 bytes
块设备名称为/dev/sda,此设备的大小为10.7GB,这个数字不是特别精确,我系统是10GB;10737418240 bytes这是转换成字节后的大小,即:10737418240/1024/1024/1024=10GB (注:bytes=B,表示“字节”,bit=b,表示“位”)
255 heads, 63 sectors/track, 1305 cylinders
255 heads:表示磁头数为255
63 sectors/track:表示每磁道上有63个扇区
1305 cylinders:表示共有1305个柱面,柱面是分区的最小单位
Units = cylinders of 16065 * 512 = 8225280 bytes
16065=255*63 因为每一个磁头都是在同一个柱面的,63表示每个磁道上的扇区数量,这两个数的乘积表示一个柱面上的扇区数量;所以16065*512表示一个柱面的大小是8225280字节
Sector size (logical/physical): 512 bytes / 512 bytes
表示一个扇区的大小是512字节
总结:所以一个磁盘的大小=一个柱面大小柱面的总数=磁头数量每个磁道上的扇区数一个扇区大小柱面总数
即:磁盘大小=8225280*1305=10733990400bytes=9.99GB=255*63*512*1305
上例中显示出我们的磁盘只有1305个柱面,但下边的分区信息中出现了1306个柱面数,不必太在意,linux显示
4000
的这些数据不会十分精确。
相关文章推荐
- fdisk -l显示信息详解
- fdisk -l显示信息详解
- fdisk -l 显示信息详解
- fdisk -l显示信息详解
- fdisk -l显示信息详解
- fdisk -l显示信息详解
- fdisk -l显示信息详解
- 关于谷歌地图添加多标注且每个标注上显示信息窗体详解
- linux dmesg命令参数及用法详解(linux显示开机信息命令) .
- 华为Display interface的显示信息详解
- 华为Display interface的显示信息详解
- linux dmesg命令参数及用法详解(linux显示开机信息命令)
- df命令_Linux df 命令用法详解:显示磁盘的相关信息
- dmesg显示开机信息命令详解
- who命令_Linux who 命令用法详解:显示目前登录系统的用户信息
- w命令_Linux w 命令用法详解:显示目前登入系统的用户信息
- ethtool命令_Linux ethtool 命令用法详解:显示或修改以太网卡的配置信息
- lpq命令_Linux lpq 命令用法详解:显示打印队列中的打印任务的状态信息
- readelf命令_Linux readelf 命令用法详解:用于显示elf格式文件的信息
- Android 定位详解(显示自己想要的定位信息)