Thanks,
Larry Barnes
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>
cc: (bcc: Mike Kapsak/HNS)
Subject: formula to convert sectors to MB and GB
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]
> 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
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 "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
> 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
>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.
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
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