How to find nos. of cyl in HD ?

How to find nos. of cyl in HD ?

Post by Nishikant Kapo » Thu, 12 Dec 1996 04:00:00



Hi there

I am absolutely new to Linux. Infact, I haven't even installed it on my PC yet,
though, I've acquired all the necessary FAQs & HOWTOs and the Slackware (3.0).
While going thru the partitioning of HD using FIPS, I'm not able to figure out
the cylinders start,end for my different partitions. I have a Cyrix P66+ with
16MB RAM, 2.1GB IDE HD with WINDOWS95 on it and I am trying to have the
partitions as follows:

Partition_1   100 MB  for Linux native /  (root partition)
Partition_2   1.1 GB  for DOS
Partition_3   30  MB  for Linux swap
Partition_4   870 MB  for Linux native /usr

I understand that Linux root partition must start below 1024 or else
it will not boot thru LILO (is it OK to have it right in the beginning ?).

Now, how do I know how many cylinders are there in this HD ? The
"CMOS SETUP UTILITY" (pressing DEL during DOS boot up) displays :

Primary Master:

Options  Size   Cyls  Head  Precomp  Landz  Sector  Mode
--------------------------------------------------------
2(Y)     2112   1023   64      0      4091   63     LBA
1        2112   4092   16    65535    4091   63     Normal
3        2112   2046   32    65535    4091   63     Large

Is it correct to assume that all the three are same with
different formats ('cos Cyls*Heads=65472 for all). If so, then
which is the correct nos. of cylinders for my HD ?

I'm not sure how but I have a feeling that my HD has 4092 cylinders
(since DOS can't handle more that 1024, we don't see them)and if this
is correct, then is it correct to have following four primary
partitions.

partition   Begin   Start   End    Type
  1           1       1      200   Linux native / (100MB)
  2         201     201     2400   DOS (1.1 GB)
  3        2401    2401     2460   Linux swap (30MB)
  4        2461    2461     4092   Linux native /usr (870MB)

Is it do_able thru FIPS ?  I did try running FIPS and got the
following display but could not proceed much as I didn't know what
to make out of it.

Old partition         cylinder           New partition
   803.2MB              408                1208.8MB

Since my HD is 2.1GB, these numbers did not make much sense to me.
(I thought my HD was a single partition, all of which was being used
 in primary partition_1 for DOS+Windows95 !!)

I am sure this problem has already been addressed before  but I'd really
appreciate if someone cud repeat the solution.

Thanks
Nishi

 
 
 

How to find nos. of cyl in HD ?

Post by Ulrich Müll » Sun, 22 Dec 1996 04:00:00




>Hi there

>I am absolutely new to Linux. Infact, I haven't even installed it on my PC yet,
>though, I've acquired all the necessary FAQs & HOWTOs and the Slackware (3.0).
>While going thru the partitioning of HD using FIPS, I'm not able to figure out
>the cylinders start,end for my different partitions. I have a Cyrix P66+ with
>16MB RAM, 2.1GB IDE HD with WINDOWS95 on it and I am trying to have the
>partitions as follows:

>Partition_1   100 MB  for Linux native /  (root partition)
>Partition_2   1.1 GB  for DOS
>Partition_3   30  MB  for Linux swap
>Partition_4   870 MB  for Linux native /usr

>I understand that Linux root partition must start below 1024 or else
>it will not boot thru LILO (is it OK to have it right in the beginning ?).

>Now, how do I know how many cylinders are there in this HD ? The
>"CMOS SETUP UTILITY" (pressing DEL during DOS boot up) displays :

>Primary Master:

>Options  Size   Cyls  Head  Precomp  Landz  Sector  Mode
>--------------------------------------------------------
>2(Y)     2112   1023   64      0      4091   63     LBA
>1        2112   4092   16    65535    4091   63     Normal
>3        2112   2046   32    65535    4091   63     Large

>Is it correct to assume that all the three are same with
>different formats ('cos Cyls*Heads=65472 for all). If so, then
>which is the correct nos. of cylinders for my HD ?

YES, but the Mode 'Normal' means that it's the values (nearly)
unmodified by the hardware electronics. If you enable LBA-Mode,
the build-in AT-Bus Controller will accept the values of the Mode
'LBA'. This Mode is used for DOS working on Partitions bigger than
DOS's 'natural' CHS (Cylinder/Head/Sector)-System uses (INT 13 -
AH:02). CHS: 1024*17*64 = 544 MB. The Head-count in normal mode
doesn't exceed the 17-Head barrier and the information of C&S has
to fit in one 16-Bit register.
Quote:

>I'm not sure how but I have a feeling that my HD has 4092 cylinders
>(since DOS can't handle more that 1024, we don't see them)and if this
>is correct, then is it correct to have following four primary
>partitions.

>partition   Begin   Start   End    Type
>  1           1       1      200   Linux native / (100MB)
>  2         201     201     2400   DOS (1.1 GB)
>  3        2401    2401     2460   Linux swap (30MB)
>  4        2461    2461     4092   Linux native /usr (870MB)

Yes, but only in normal mode. If you would run DOS on that big
partition, you'ld need a special driver loading into DOS or a
system-BIOS that supports switching your AT-Bus Controller
to LBA-Mode - last one's normally done. So DOS's FDISK will
create a partition table with the values of Mode 'LBA', and really
the above table would be wrong. Next you do is booting Linux out of
the partition 'Linux native'. Linux (LILO) will boot with the values
of the partion table, therefore nothing goes wrong. But if you look
with Linux' fdisk into the partition table, this program will report
that your partions will not end on cylinder boundaries because it
reads only the values of the mode 'Normal' (that's really normal for
it) and compares them to the socalled wrong Mode-'LBA' values of the
partition table.
Quote:

>Is it do_able thru FIPS ?  I did try running FIPS and got the
>following display but could not proceed much as I didn't know what
>to make out of it.

>Old partition         cylinder           New partition
>   803.2MB              408                1208.8MB

I don't know what it is, that FIPS. Maybe a software for partitioning
HD's. If the values are read in linux, they're mostly calculated in
Mode 'Normal'. You have to be very careful in handling partitions in
linux. Whenever you want to change the partition tables use the same
program which created them!
Quote:>Since my HD is 2.1GB, these numbers did not make much sense to me.
>(I thought my HD was a single partition, all of which was being used
> in primary partition_1 for DOS+Windows95 !!)

So use LBA with DOS's FDISK, later format the partitions with
system-specific tools (fsformat, format (DOS/OS/2), idono).
Quote:

>I am sure this problem has already been addressed before  but I'd really
>appreciate if someone cud repeat the solution.

Better's pray it off every hour.

- Show quoted text -

Quote:

>Thanks
>Nishi


 
 
 

1. Adding PSVP hd=cyl,hd,sec param to lilo

As the subject sugests, I have an IBM PS Valuepoint and I am tired of have to
always say the following at the boot: prompt:

linux hd=1009,12,55 hd=685,16,38

I have two disks, one 320MB and one 210MB and the slackware distribution v1.0
on cd-rom (purchased from Walnut Creek if that is of any use.)

Basically, what I would like is to specify those parameters either in the
kernel or in the lilo header so I don't have to type them anymore.  I have not
been able to find specific directions in any of the docs and I hoped someone
out there could clue me in (as I am without!)


 my wife checks her mail more often than I can.

Thanks!

               Sometimes there just aren't enough rocks! - Forrest Gump


2. Trident TGUI9400CXi problems

3. Installing lilo on a >1024 cyl SCSI HD?

4. Using Telnet without supplying a password

5. Help with HD >1024 Cyls

6. Linux fdisk only reads 1024 cylinders

7. Can someone summarize HD +1024 cyl issue with detail?

8. help: multiple nfsd and biod

9. Linux install problems > 1024 cyl hd...

10. HD w/ > 1024 Cyl.

11. 1024 cyl HD limit/High Sierra cdrom format questions

12. Need help with installing LILO on HD with > 1023 cyl's

13. hd params, >1024 cyl, boot disk problem