Messages in this thread | | | Date | 30 Jan 99 01:48:12 MET | From | Willem van Mourik <> | Subject | Re: PROBLEM: Illegal IDE probing |
| |
Hello,
dwguest@win.tue.nl wrote: ] ] Here the 'hdparm' outputs you have asked for: ] ] hdparm -I /dev/hda ] RawCHS=3121/16/63, CurCHS=3121/16/63, CurSects=3145968, LBA=yes, LBAsects=15728688 ] ] linux 2.0.36: hdparm -i /dev/hda ] RawCHS=3121/16/63, CurCHS=3121/16/63, CurSects=3145968, LBA=yes, LBAsects=3145968 ] ] linux 2.2.1: hdparm -i /dev/hda ] RawCHS=15603/16/63, CurCHS=3900/64/63, CurSects=15728688, LBA=yes, LBAsects=15728688 ] ]Very good. That makes it all clear. ]Yes, it was painful, it hurt the eye, to see the changes made ]to the geometry code by our new IDE maintainer. By now it is ]clear that every single change was buggy. ] ]Please remove the lines ] ] /* ] * This is a split test for drives less than 8 Gig only. ] * Drives less than 8GB sometimes declare that they have 15 heads. ] * This is an accounting trick (0-15) == (1-16), just an initial ] * zero point difference. ] */ ] if ((id->lba_capacity < 16514064) && (lba_sects > chs_sects) && ] ((id->heads == 15) || (id->heads == 16)) && (id->sectors == 63)) { ] if (id->heads == 15) ] id->cyls = lba_sects / (15 * 63); /* correct cyls */ ] if (id->heads == 16) ] id->cyls = lba_sects / (16 * 63); /* correct cyls */ ] return 1; /* lba_capacity is our only option */ ] } ] ]from ide-disk.c, and report on whether this solves the size problem.
This solves the the size problem. See here the message log entries:
Jan 30 01:01:22 willem kernel: hda: SAMSUNG WNR-31601A (1600MB), 1536MB w/256kB Cache, CHS=780/64/63 Jan 30 01:01:22 willem kernel: hdc: QUANTUM Bigfoot TX8.0AT, 7665MB w/69kB Cache, CHS=15574/16/63, (U)DMA
Thanks,
Willem
____________________________________________________________________ Get free e-mail and a permanent address at http://www.netaddress.com/?N=1
- 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.tux.org/lkml/
| |