[vox-tech] Calculating partition sizes

Micah J. Cowan vox-tech@lists.lugod.org
Tue, 13 May 2003 16:32:22 -0700


On Tue, May 13, 2003 at 03:49:29PM -0700, Mark K. Kim wrote:
> Dear all,
> 
> I'm trying to calculate the exact size of each partition (so I can dd it).
> using cfdisk, I found out the partitions are taking up 156295440 sectors.
> I'm assuming 1 sector is 512 bytes, for a total of 80023265280 bytes.  But
> cfdisk is telling me my HDD's size is 80026361856 bytes.  So there's a
> discrepancy of 3096576 bytes.
> 
> So where's this discrepancy coming from?  How much does MBR take up?  What
> else is using up all that space?

I could be wrong, but can't you just dd 'em without specifying the
size? won't e.g. /dev/hda2 EOF when it reaches the end of the 3rd
partition?

-Micah