关于硬盘容量的计算
[root@xxxxxxx]# /sbin/fdisk -l
Disk /dev/hda: 40.0 GB, 40020664320 bytes
240 heads, 63 sectors/track, 5169 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 18 136048+ 83 Linux
/dev/hda2 19 5031 37898280 83 Linux
/dev/hda3 5032 5169 1043280 82 Linux swap
每一块是1K,我不知道Units是什么东西,姑且认为是系统保留的空间。做一下计算:
(136048+3789280+1043280)*1024=40015470592
40015470592+7741440=40023212032>;40020664320
所以应该怎么算才能对上40020664320bytes的帐呢?不知道各位机器上的结果如何。
另外,/dev/hda1的blocks数旁边的加号是什么意思呢?