Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

formula to convert sectors to MB and GB

10,710 views
Skip to first unread message

TechServ TechServ

unread,
Mar 31, 1999, 3:00:00 AM3/31/99
to HP30...@raven.utc.edu
Does anyone have the formula for converting number of sectors to number of megabytes (MB) and number of gigabytes (GB) and could you share it with me?

Thanks,

Larry Barnes


Michael Kapsak

unread,
Mar 31, 1999, 3:00:00 AM3/31/99
to HP30...@raven.utc.edu
Larry,

You can find the formulas in the "System Software Maint. Guides", in
the estimating disc space chapter.
to convert MBytes to Sectors:

Mbytes x 1,000,000 / Sectors = # of sectors

or

Sectors x 256 / 1,000,000 = # of MBytes

Mike

TechServ TechServ <TECH...@QUALMED.COM> on 03/31/99 02:45:02 PM

Please respond to TechServ TechServ <TECH...@QUALMED.COM>

To: HP30...@RAVEN.UTC.EDU

cc: (bcc: Mike Kapsak/HNS)

Subject: formula to convert sectors to MB and GB

Jeff Woods

unread,
Mar 31, 1999, 3:00:00 AM3/31/99
to HP30...@raven.utc.edu
Hi, Larry.

At 3/31/99 12:45 PM -0700, TechServ TechServ wrote:
>Does anyone have the formula for converting number of sectors to number of
>megabytes (MB) and number of gigabytes (GB) and could you share it with me?

There are 2^8 (256) bytes per sector on MPE. There are 2^20 (1024^2, not
10^6 no matter what data storage vendors think) bytes per MB and 2^30
(1024^3, not 10^9) bytes per GB. Therefore, there are 2^12 (4*1024=4096)
sectors per MB and 2^22 (4*1024^2=4096*1024= 4,194,304) sectors per GB. To
convert from MB to sectors, multiply by 4096. To convert from GB to
sectors, multiply by 4194304 (or, cheat by using 4096*1024 which I find
much easier to remember). To convert from sectors to MB or GB, divide by
the appropriate number.

For "quick and dirty" approximate calculations, 4000 and 4000000 are
convenient factors, but the amount of error increases as the numbers get
higher.

P.S. If this isn't in the FAQ, it should be.
--
Jeff Woods
jdw...@bga.com [PGP key available here via finger]


Wirt Atmar

unread,
Mar 31, 1999, 3:00:00 AM3/31/99
to HP30...@raven.utc.edu
Jeff Woods writes:

> There are 2^8 (256) bytes per sector on MPE. There are 2^20 (1024^2, not
> 10^6 no matter what data storage vendors think) bytes per MB and 2^30
> (1024^3, not 10^9) bytes per GB.

I've been meaning to mention this for quite some time, but it keeps slipping
my mind. I only recently found out that we're all a bunch of hicks on this
newsgroup. In 1994, it was proposed to the Comité Consultative d'Unités (CCU)
of the Bureau International des Poids et Mesures (BIPM) that the terms "kilo",
"mega" and "giga" be done away with for computer terminalogy. These terms
would be reserved solely for the standard decimal units, 10^3, 10^6, and 10^9,
respectively.

In their place will be the terms "kibibyte", "mebibyte", and "gibibyte",
standing for kilobinary, megabinary, and gigabinary (2^10, 2^20, 2^30),
respectively (or "kibioctet", "mebioctet" or "gibioctet" if you're in France).

In the five years since this has been proposed, the proposal seems to be
slowly catching on -- and I, for one, think that it's time we got our act
together. The next time you order a disk, be sure to ask for a 4.3 gibibyte
drive and prove to the world that you are not only suave but debonair.

Wirt Atmar


Tim Ericson

unread,
Mar 31, 1999, 3:00:00 AM3/31/99
to HP30...@raven.utc.edu
Wirt Atmar wrote:
>
> In their place will be the terms "kibibyte", "mebibyte", and
> "gibibyte", standing for kilobinary, megabinary, and gigabinary
> (2^10, 2^20, 2^30), respectively (or "kibioctet", "mebioctet"
> or "gibioctet" if you're in France).
>
> In the five years since this has been proposed, the proposal
> seems to be slowly catching on -- and I, for one, think that
> it's time we got our act together. The next time you order a
> disk, be sure to ask for a 4.3 gibibyte drive and prove to the
> world that you are not only suave but debonair.

Waitjustadarnminute, McGee... (Tim checks his calendar...)

It's not April 1st here - hmmm, maybe on the Atmarian calendar?

+-------------------------------------------------------------------+
My mind is my own, as are my ideas and opinions.
My heart, body, and soul, however, all belong to others. Tim.
+-------------------------------------------------------------------+
Tim Ericson tericson 503-526-4440 (my direct number)
Sr. Systems Analyst at denkor DenKor Dental Management Corp.
(& Systems Manager) dot com http://www.denkor.com
Programming HP3000s since 1983! Quality dental care since 1970!
+-------------------------------------------------------------------+
UDCs and Command Files: http://www.denkor.com/hp3000/command_files
+-------------------------------------------------------------------+


Lee Gunter

unread,
Mar 31, 1999, 3:00:00 AM3/31/99
to HP30...@raven.utc.edu
Heck!! Up here in Ory-gone, we just say, "Gimmeabyte". Does this new
standard mean we now have to, instead, say, "Gibimeabyte"?
"Mebiyoullgibimeabyte"? Seems like a lotta Euro hogwash to me (right,
Cooter?). :-)

Lee "34 hours and counting already this week, but no apologies" Gunter


From: Wirt Atmar <Wirt...@AOL.COM> on 03/31/99 01:20 PM

Please respond to Wirt...@AOL.COM


To: HP30...@RAVEN.UTC.EDU
cc: (bcc: Lee Gunter/BCBSO/TBG)
Subject: Re: formula to convert sectors to MB and GB


Jeff Woods writes:

> There are 2^8 (256) bytes per sector on MPE. There are 2^20 (1024^2, not
> 10^6 no matter what data storage vendors think) bytes per MB and 2^30
> (1024^3, not 10^9) bytes per GB.

I've been meaning to mention this for quite some time, but it keeps
slipping
my mind. I only recently found out that we're all a bunch of hicks on this

newsgroup. In 1994, it was proposed to the Comit? Consultative d'Unit?s


(CCU)
of the Bureau International des Poids et Mesures (BIPM) that the terms
"kilo",
"mega" and "giga" be done away with for computer terminalogy. These terms
would be reserved solely for the standard decimal units, 10^3, 10^6, and
10^9,
respectively.

In their place will be the terms "kibibyte", "mebibyte", and "gibibyte",


standing for kilobinary, megabinary, and gigabinary (2^10, 2^20, 2^30),
respectively (or "kibioctet", "mebioctet" or "gibioctet" if you're in
France).

In the five years since this has been proposed, the proposal seems to be
slowly catching on -- and I, for one, think that it's time we got our act
together. The next time you order a disk, be sure to ask for a 4.3 gibibyte
drive and prove to the world that you are not only suave but debonair.

Wirt Atmar


Wirt Atmar

unread,
Mar 31, 1999, 3:00:00 AM3/31/99
to HP30...@raven.utc.edu
Tim writes,

> Waitjustadarnminute, McGee... (Tim checks his calendar...)
>
> It's not April 1st here - hmmm, maybe on the Atmarian calendar?

Heck, it's not even Friday on the Atmarian calendar!

In this case, it's one of those April Fool's jokes that comes a day early --
and happens to be true. See for example:

http://www.il.iucr.org/iucr-top/cexec/rep95/idcns.htm

Wirt


Bruce Toback

unread,
Mar 31, 1999, 3:00:00 AM3/31/99
to HP30...@raven.utc.edu
Wirt Atmar writes:

>I only recently found out that we're all a bunch of hicks on this

>newsgroup. In 1994, it was proposed to the ComitÈ Consultative d'UnitÈs (CCU)


>of the Bureau International des Poids et Mesures (BIPM) that the terms
>"kilo",
>"mega" and "giga" be done away with for computer terminalogy. These terms
>would be reserved solely for the standard decimal units, 10^3, 10^6, and
>10^9,
>respectively.
>
>In their place will be the terms "kibibyte", "mebibyte", and "gibibyte",
>standing for kilobinary, megabinary, and gigabinary (2^10, 2^20, 2^30),

>respectively ...


>
>In the five years since this has been proposed, the proposal seems to be
>slowly catching on -- and I, for one, think that it's time we got our act
>together. The next time you order a disk, be sure to ask for a 4.3 gibibyte
>drive and prove to the world that you are not only suave but debonair.

Actually, it was proposed five years ago but not approved until a couple
of months ago. So we're not as far behind the times as Wirt thinks. For
more information on US adoption of the standard, see

<http://www.nist.gov/public_affairs/techbeat/tb9903.htm#Information
Technology>

The terms have now been adopted by the US National Institute of Standards
and Technology.

-- Bruce


--------------------------------------------------------------------------
Bruce Toback Tel: (602) 996-8601| My candle burns at both ends;
OPT, Inc. (800) 858-4507| It will not last the night;
11801 N. Tatum Blvd. Ste. 142 | But ah, my foes, and oh, my friends -
Phoenix AZ 85028 | It gives a lovely light.
btoback AT optc.com | -- Edna St. Vincent Millay
Mail sent to adin...@optc.com will be inspected for a
fee of US$250. Mailing to said address constitutes agreement to
pay, including collection costs.


Dirickson Robert S (Steve) KPWA

unread,
Mar 31, 1999, 3:00:00 AM3/31/99
to HP30...@raven.utc.edu
> In their place will be the terms "kibibyte", "mebibyte", and
> "gibibyte",

Actually not all that far-fetched; why, mah noo kitty jes gib me a byte las'
nite. 'Coarse, ah thumped her nose good fer doin' it....

Steve


Tom Hula

unread,
Apr 1, 1999, 3:00:00 AM4/1/99
to
If I have a 300,000 sector file:
(300,000 x 256) / 1,048,576 = 73.24 megabytes

If I have a 2031 megabyte diskdrive:
(2,031 x 1,048,576) / 256 = 8,318,976 sectors

Tom Hula

TechServ TechServ wrote:
>
> Does anyone have the formula for converting number of sectors to number of megabytes (MB) and number of gigabytes (GB) and could you share it with me?
>

> Thanks,
>
> Larry Barnes

Tom Hula

unread,
Apr 1, 1999, 3:00:00 AM4/1/99
to
Excuse my last post. I read the question but jumped to conclusions and
assumed it was a request for MB to sectors and back. Good thing I
wasn't in charge of calculating trajectories for the Apollo missions...

Tom Hula

unread,
Apr 1, 1999, 3:00:00 AM4/1/99
to
I take it back...where do I sign up for NASA? I did read the question
correctly.

Peter Chong Sr. Systems Analyst (MRP/ERP)

unread,
Apr 1, 1999, 3:00:00 AM4/1/99
to
I usually divide by 4 and change power sign to Next 2**10
.....
like 200 sector aprx 50 kb ( 200 / 4 ) and (2**0) change to (2**10) kilo
300K sector aprx 75 Mbytes ( 300 / 4 ) and change k (2**10) to
(2**20) Mega
50 M sector aprx 12.5 Byte (50 / 4 ) and slide up next 2^10 Mega to
giga.
....
....
TechServ TechServ <TECH...@QUALMED.COM> wrote in message
news:F4B1826B1A21D211AEC...@dogbert.csillc.com...

David Warner david_warner@hp.com

unread,
Apr 1, 1999, 3:00:00 AM4/1/99
to HP30...@raven.utc.edu
BDY.TXT
0 new messages