IDE mode selection broken in 2.1.11[67]

dbrodsky@cs.ualberta.ca
Fri, 21 Aug 1998 08:02:16 -0600 (MDT)


Hi,

The IDE mode selection code in 2.1.11[67] seems to be broken and hence
also break utilities like lilo and fdisk.

The output for hdparm -i /dev/hda is the same for 2.1.11[167]:

/dev/hda:

Model=WDC AC33100H, FwRev=12.07H12, SerialNo=WD-WT359
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
RawCHS=6136/16/63, TrkSize=57600, SectSize=600, ECCbytes=22
BuffType=3(DualPortCache), BuffSize=128kB, MaxMultSect=16, MultSect=off
DblWordIO=no, maxPIO=2(fast), DMA=yes, maxDMA=0(slow)
CurCHS=6136/16/63, CurSects=6185088, LBA=yes, LBAsects=6185088
tDMA={min:120,rec:120}, DMA modes: mword0 mword1 *mword2
IORDY=on/off, tPIO={min:160,w/IORDY:120}, PIO modes: mode3 mode4

but during boot up I get the following:

in 2.1.111:

Aug 20 18:16:56 matisse kernel: Partition check:
Aug 20 18:16:56 matisse kernel: sda: sda1 sda2
Aug 20 18:16:56 matisse kernel: sdb: sdb1
Aug 20 18:16:56 matisse kernel: hda: hda1 hda2 hda3 hda4
Aug 20 18:16:56 matisse kernel: hdc: hdc1 hdc2 < hdc5 >

in 2.1.117

Aug 20 09:13:06 matisse kernel: Partition check:
Aug 20 09:13:06 matisse kernel: sda: sda1 sda2
Aug 20 09:13:06 matisse kernel: sdb: sdb1
Aug 20 09:13:06 matisse kernel: hda: [LBA] [767/128/63] hda1 hda2 hda3 hda4
Aug 20 09:13:06 matisse kernel: hdc: [LBA] hdc1 hdc2 < hdc5 >

Now in my bios the drive hda is set as CHS not LBA.

This has the nasty effect of breaking lilo and fdisk. When I run lilo under
2.1.11[67] it does not right the boot sector properly and when the system
boots I only get the first two letters and the the system halts, ie LI.
I don't have a lilo error reference handy but I believe that this is a
valid error code. Under 2.1.111 fdisk works fine and dandy because it looks
at the drive using chs but under 2.1.11[67] fdisk does not recognize the
partitions because they have been LBA translated by the looks of it.

Any ideas as to what is wrong?

Thanks
Dima

-- 
Dima Brodsky                                   dbrodsky@cs.ualberta.ca
General Services Building 701
Department of Computing Science                (403) 492-9596/492-7418
University of Alberta, Canada                  (403) 492-1071 (FAX)

Computers are like Old Testament gods; lots of rules and no mercy. (Joseph Campbell)

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html