quick lesson in calculating disk space needed

Rick Stevens rstevens at vitalstream.com
Tue May 11 22:09:23 UTC 2004


Rick Stevens wrote:
> Dana Holland wrote:
> 
>> If my fdisk -l looks like this:
>>
>> Disk /dev/sda: 255 heads, 63 sectors, 35694 cylinders
>> Units = cylinders of 16065 * 512 bytes
>>
>>    Device Boot    Start       End    Blocks   Id  System
>> /dev/sda1             1         5     40131   de  Dell Utility
>> /dev/sda2             6       332   2626627+  8e  Linux LVM
>> /dev/sda3   *       333       345    104422+  83  Linux
>> /dev/sda4           346     35694 283940842+   f  Win95 Ext'd (LBA)
>> /dev/sda5           346     21245 167879218+  83  Linux
>> /dev/sda6         21246     28211  55954363+  83  Linux
>> /dev/sda7         28212     35178  55962396   83  Linux
>> /dev/sda8         35179     35309   1052226   83  Linux
>> /dev/sda9         35310     35440   1052226   83  Linux
>> /dev/sda10        35441     35694   2040223+  82  Linux swap
>>
>> Would it be correct to calculate the amount of disk space on my system 
>> by multiplying 16065 times 512, and then multiplying that result by 
>> 35694?
> 
> 
> Yes.  I read that as a 294GB hard drive.  Under FC1, the calculations
> are done for you:
> 
> [root at prophead tmp]# fdisk -l /dev/hda
> 
> Disk /dev/hda: 163.9 GB, 163928604672 bytes
> 255 heads, 63 sectors/track, 19929 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> 
>    Device Boot    Start       End    Blocks   Id  System
> /dev/hda1   *         1       131   1052226   83  Linux
> /dev/hda2           132      5353  41945715   83  Linux
> /dev/hda3          5354     10575  41945715   83  Linux
> /dev/hda4         10576     19929  75136005    f  Win95 Ext'd (LBA)
> /dev/hda5         10576     11097   4192933+  83  Linux
> /dev/hda6         11098     11228   1052226   82  Linux swap
> /dev/hda7         11229     19929  69890751   83  Linux

Oh, and I forgot to mention that virtually ALL LBA and SCSI drives will
have 16065 blocks per cylinder.  That's the maximum head count (255)
times the maximum sectors-per-track (63) = 16065 sectors/cylinder.
The variance is in how many cylinders you have.

I hope that all makes sense to you.  Many people get confused.
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens at vitalstream.com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-      A day for firm decisions!!!   Well, then again, maybe not!    -
----------------------------------------------------------------------





More information about the Redhat-install-list mailing list