HELP - fdisk, 1.6G drive and 2.5G drive CHS handled differently

HELP - fdisk, 1.6G drive and 2.5G drive CHS handled differently

Post by John Alonzo Bre » Tue, 25 Feb 1997 04:00:00



I have Linux installed on a 1.6G drive (WD 31600) (on /dev/hdc).  The
first partition is a 480M DOS partition.  After that are the Linux
partitions.  The BIOS and Linux fdisk correctly detected the "true"
CHS geometry (16 heads, 63 sectors, 3148 cylinders).  I have the BIOS
set for LBA mode and "Large DOS Compatibility" (which I think is the
INT13 CHS translation).  Everything has been working fine since I
installed it in September.

I'm going to replace the 1.6G with a 2.5G (WD 32500) (on /dev/hdb).
The BIOS again detected the geometry (16 heads, 63 sectors, 4960
cylinders).  I created a 480M partition under DOS as before (with DOS
fdisk).  When I went to create the Linux partitions (with Linux
fdisk), fdisk shows the geometry as 128 heads, 63, sectors, 620
cylinders (ie, three bits have been shifted from the cylinder field to
the head field).  I created the Linux partitions and copied all the
files over from the 1.6G (using cpio), and everything seems to work.
I can access the DOS partition, which I consider to be a big test.

Is the different geometry in Linux fdisk going to cause problems?
What'll happen if I create another DOS partition after the Linux ones?
I can force the geometry in fdisk of course, but should I?  Why is a
1.6G's CHS handled differently from a 2.5G?  Does this have to do with
the bug some BIOSes had regarding disks over 2.1G? (I got an update
that supposedly fixes my BIOS, BTW.)

I'm at the point where I can afford to*up the new disk, but I've
got to send the old one back to Western Digital in a couple weeks.
Although I'd prefer not having to repartition and recopy the files if
I can avoid it.

This is the version of fdisk that came with RedHat 3.0.3 (same kernel,
too; 1.2.13, I think).

Thanks.
--
John A. Breen         | I teleported home one night with Ron & Sid & Meg.

                      |                            - Douglas Adams

 
 
 

HELP - fdisk, 1.6G drive and 2.5G drive CHS handled differently

Post by John Alonzo Bre » Thu, 27 Feb 1997 04:00:00


I just had a horrible thought.  Could this be due to something like
EZ-Drive having been previously installed on the disk?  Would that
persist even if partitions were completely recreated?

Also, here's another tidbit.  It's not just fdisk.  Here are the lines
from dmesg:

hdb: WDC AC32500H, 2441MB w/128KB Cache, LBA, CHS=620/128/63,
    MaxMult=16
hdc: WDC AC31600H, 1549MB w/128KB Cache, LBA, CHS=3148/16/63,
    MaxMult=16

--
John A. Breen         | I teleported home one night with Ron & Sid & Meg.

                      |                            - Douglas Adams

 
 
 

HELP - fdisk, 1.6G drive and 2.5G drive CHS handled differently

Post by John Alonzo Bre » Sat, 01 Mar 1997 04:00:00




Quote:>hdb: WDC AC32500H, 2441MB w/128KB Cache, LBA, CHS=620/128/63,
>    MaxMult=16
>hdc: WDC AC31600H, 1549MB w/128KB Cache, LBA, CHS=3148/16/63,
>    MaxMult=16

I know it's bad form to reply to one's own posts, but hell, no one
else is :(.

I had another thought.  These two disks are on different IDE
interfaces.  I seem to recall something when I originally installed
the 1.6G about there being two drivers: hd.c and the newer ide.c.
Could it be that the older one is being used on the primary and the
newer one on the secondary?  Would this explain why hdb is doing CHS
translation and hdc isn't?  Will this cause me problems when I
upgrade to a newer kernel?
--
John A. Breen         | I teleported home one night with Ron & Sid & Meg.

                      |                            - Douglas Adams

 
 
 

1. RH 5.0 install freaks out drive partition table...now can't fdisk the drive!

        Finally installing RH 5 in my journey to move into other OS's
besides OS/2 (getting off the train before it stops
rolling...)...but I've run into a problem.

        Initially, I tried to install RH on my #2 drive (hdb).  It
worked fine, but crashed in the middle of the install.  Now, I
can access the partitions on the disk, but whenever I fdisk the
drive (via OS/2 or DOS), it crashes fdisk (now THAT is something
I wasn't looking for...) and Partition Magic can't touch the disk
(says it's full, get a 'logical chains' partition error (#120)).

        I tried to re-install RH...crashed again--this time with the
following message:

                RPM of XFree86 failed.  Unpacking failed on file:
                                                        /usr/x11r6/man/man1/xrdb.1x:-1:
                no such file or directory.

        I've tried the rescue option off the install diskettes, but I'm
not well versed yet in *nix-ese and couldn't get fdisk to run so
I'm lost there.

        Any help is appreciated.  Vitals are:

        486DX120 (SP3 motherboard)
        2 HDisks--1 gig each, partitioned in the following:

        Disk 1

                Boot Manager
                C:  Win 95 (hidden)
                C:  DOS/win boot
                E:  OS/2 (under hpfs)
                F: and G: -- both hpfs

        Disk 2

                D:  FAT16
                --a 500 meg partition where I was going to put Linux
                --another hpfs
                --unused partition where the swap file was going to go
                --another FAT16 partition

        Thanx for any help in advance!

****************************************
*  Servant of El Elohim                *
*    OS/2 User, (hope to add linux)   *
*     Player of VGAP and SFB           *
*   A gentle easterly breeze           *
*         awaiting an omniscient       *
*             Sonrise...Zephyr Q       *
****************************************

2. Cable Modem Recieve & 288 Send - HOWTO?

3. Ch-Ch-Ch-Changes

4. AltGr does not work

5. lilo fails to install with maxtor 1.6g drive, block size

6. system call error #11 "Resource temoprarily unavailable"

7. Selling IBM Travelstar 6G drive.

8. lex/yacc

9. WD 1.6G IDE Drive

10. 1.6G drives

11. Problems with number of heads from DOS FDISK partitions and Linux fdisk on 8.4 GB drive

12. 13.6G 7200RPM Ultra ATA hard drive with Ultra ATA 66 Controller

13. Linux on 1.6G Drive