(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version




What is this stuff?

If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):



From - Fri Aug  4 05:59:43 2000
Newsgroups: comp.unix.sco.misc
Path: news.randori.com!korova.insync.net!news.maxwell.syr.edu!newsfeed.direct.ca!look.ca!feed3.news.psi.net!united!bokonon!stephen
From: stephen@bokonon.ussinc.com (Stephen M. Dunn)
Subject: Re: 1024 Cyls or Mb's?
Organization: Followers of Bokonon
Date: Fri, 4 Aug 2000 02:24:05 GMT
Message-ID: <FyqxC5.47s@bokonon.ussinc.com> 
References: <8m142g$31$1@neptunium.btinternet.com> <cds9osg5s8tq55qu75vfv3gpe5b90od2mf@4ax.com> <8mch8l$h1s$1@neptunium.btinternet.com> 
Xref: news.randori.com comp.unix.sco.misc:64039
X-Mozilla-Status: 8010
X-Mozilla-Status2: 00000000

In article <8mch8l$h1s$1@neptunium.btinternet.com> "Steve Morris" <Stephen.Morris@btinternet.com> writes:
$Thanks for the info, but how exactly do I determine where on my disk the
$1024th cyc lies? (i.e what Mb on the disk).

   First, some background so that you understand the answer I'm
giving - it's usually easier to remember stuff if you can understand
it.



   In the Good Old Days, when the numbers of heads, cylinders, and
sectors per track printed on the hard drive and/or its manual were
what the software used, this was straightforward.

   With SCSI, though, the geometry the OS sees is entirely unrelated
to the actual geometry of the hard drive.  From a SCSI perspective,
the hard drive is a one-dimensional stream of blocks numbered from
0 through whatever, rather than a three-dimensional array of
blocks numbered from (0,0,0) through whatever.  This actually makes
more sense; it permits zone-bit recording (where outer tracks have
more sectors to make better use of the physical size of the tracks)
and automatic substitution of bad tracks (no more bad track lists
to handle).  It could also enable me to devise a storage medium
that acts like a hard drive but is fundamentally different;
as long as I can represent it as a collection of blocks, any
SCSI host adapter can use it as if it were a hard drive.

   The cylinders, heads, and sectors the OS sees are whatever the
host adapter presents.  In the old days, most host adapters
mapped things so that each cylinder was a megabyte, so the
first 1024 cylinders were the first gigabyte.

   As hard drives got larger, and it became more common for
people to use hard drives that were over 1024 logical cylinders
with this mapping, host adapter manufacturers started playing
around with larger logical cylinders.  If your host adapter's
BIOS or setup utility gives you the option of DOS vs. extended
mappings, that's why - the DOS mapping gives you the traditional
1 MB cylinders (so that DOS is happy) and the extended mapping
gives you larger cylinders (to make more advanced OSes happy).  The
manual probably won't tell you exactly what the mapping is.

   ATA drives in LBA mode work much like SCSI drives, but at
least you usually get to set and/or examine their mappings
in your machine's BIOS.

   If you've already got Unix installed, or if you can wait
until you start the installation, Unix will tell you what the
logical layout of your hard drive is.  The following lines are
from ATA drives but you'll see something similar for SCSI:



%disk     0x01F0-0x01F7  14   -  type=W0 unit=0 cyls=1025 hds=255 secs=63
%disk     0x0170-0x0177  15   -  type=W1 unit=1 cyls=944 hds=14 secs=40

   The first drive is an 8 GB (approx.) ATA drive in LBA mode.
The PC reports it as 1025 cylinders x 255 heads x 63 sectors.
So on this drive, I'm free to put the boot filesystem anywhere
except the very end.

   The second drive is a 270 MB (approx.) ATA drive in traditional
CHS mode.  The PC reports it as 944 cylinders x 14 heads x 40
sectors.  Back when this was my boot drive, I was free to put the
boot filesystem anywhere I wanted on it.

   If you were to see a line like this:

%disk     0x01F0-0x01F7  14   -  type=W0 unit=0 cyls=2200 hds=255 secs=63

that would be an 18 GB (approx.) drive, and you could put the boot
filesystem anywhere in the first 8 GB of it.
-- 
Stephen M. Dunn                       <stephen@bokonon.ussinc.com>
>>>------------> http://staff.ussinc.com/~steved/ <------------<<<
------------------------------------------------------------------
 Say hi to my cat -- http://staff.ussinc.com/~steved/photos/toby/




Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



/Bofcusm/462.html copyright 1997-2004 (various authors) All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.



More:
       - OSR5
       - Bofcusm


Unix/Linux Consultants

Skills Tests

Guest Post Here











My Favorites

Change Congress