[vox-tech] Calculating partition sizes

Mike Simons vox-tech@lists.lugod.org
Tue, 13 May 2003 19:30:13 -0400


--fKtH0JUtvN5p2ETH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, May 13, 2003 at 03:49:29PM -0700, Mark K. Kim wrote:
> 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. =20

> 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?

  Generally the MBR takes up the first cylinder, which depending on the=20
mapping can be a large number of sectors...=20

- Can you send the output of "fdisk -l"?

--=20
GPG key: http://simons-clan.com/~msimons/gpg/msimons.asc
Fingerprint: 524D A726 77CB 62C9 4D56  8109 E10C 249F B7FA ACBE

--fKtH0JUtvN5p2ETH
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+wYAF4Qwkn7f6rL4RAsibAJ9vWCe1yhQI6PBuA8C5QPa7zm4NlACgkB+n
YM3Rj/bPzFz34WnF2b3KrIE=
=md6X
-----END PGP SIGNATURE-----

--fKtH0JUtvN5p2ETH--