fdisk -l,显示硬盘分区情况。为什么有的分区的大小的 旁边有个+号

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
helloworld222
帖子: 577
注册时间: 2008-11-17 13:46

Re: fdisk -l,显示硬盘分区情况。为什么有的分区的大小的 旁边有个+号

#16

帖子 helloworld222 » 2009-01-08 12:42

ttand 写了:细节体现一个人的品质啊。

我们以前怎么都没注意到呢?
还没有等到答案啊!
daniel.supremacy
帖子: 133
注册时间: 2008-12-12 15:35

Re: fdisk -l,显示硬盘分区情况。为什么有的分区的大小的 旁边有个+号

#17

帖子 daniel.supremacy » 2009-01-08 16:33

lihaidong 写了:楼上强大,你保证正确吗 :em06
差不多,但是没说明白,这里添上详细的信息...

代码: 全选

man sfdisk
List Partitions
The second type of invocation: sfdisk -l [options] device will list the partitions on this device. If the device
argument is omitted, the partitions on all hard disks are listed.
% sfdisk -l /dev/hdc

Disk /dev/hdc: 16 heads, 63 sectors, 2045 cylinders
Units = cylinders of 516096 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/hdc1 0+ 406 407- 205096+ 83 Linux native
/dev/hdc2 407 813 407 205128 83 Linux native
/dev/hdc3 814 2044 1231 620424 83 Linux native
/dev/hdc4 0 - 0 0 0 Empty
%
The trailing - and + signs indicate that rounding has taken place, and that the actual value is slightly less
(more). To see the exact values, ask for a listing with sectors as unit.
回复了才发现,已经有人回答了挖
kamasamikon 写了:man sfdisk
头像
xvholly
帖子: 81
注册时间: 2008-08-19 17:01
来自: HHU&NEU

Re: fdisk -l,显示硬盘分区情况。为什么有的分区的大小的 旁边有个+号

#18

帖子 xvholly » 2009-02-13 22:56

分区在硬盘上是以sector来分配的,fdisk -l缺省是以block为单位来显示的。当分区的大小不是正好是block的整数倍的时候,block(缺省是1024byte)的数量就不是整数,比如 /dev/hda2,就显示成10241437+,"+"表示还有小数部分。
来源:http://doc.linuxpk.com/5596.html
噬魂月白
帖子: 12
注册时间: 2009-02-14 8:01

Re: fdisk -l,显示硬盘分区情况。为什么有的分区的大小的 旁边有个+号

#19

帖子 噬魂月白 » 2009-02-14 8:24

就像现在有些网友打大点的数字比如10000112他喜欢打成10000000+
不过这个精确到小数点吧
ArchLiunx
回复