From owner-freebsd-stable Sun Jun 20 18:59:16 1999 Delivered-To: freebsd-stable@freebsd.org Received: from luna.lyris.net (luna.shelby.com [207.90.155.6]) by hub.freebsd.org (Postfix) with ESMTP id 2FFE714E97 for ; Sun, 20 Jun 1999 18:59:13 -0700 (PDT) (envelope-from kip@lyris.com) Received: from luna.shelby.com by luna.lyris.net (8.9.1b+Sun/SMI-SVR4) id SAA15281; Sun, 20 Jun 1999 18:52:25 -0700 (PDT) Received: from (luna.shelby.com [207.90.155.6]) by luna.shelby.com with SMTP (MailShield v1.50); Sun, 20 Jun 1999 18:52:25 -0700 Date: Sun, 20 Jun 1999 18:52:24 -0700 (PDT) From: X-Sender: kip@luna To: John Baldwin Cc: freebsd-stable@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG, "Brandon Hicks-www.gatekeep.net" , Matt White Subject: RE: FreeBSD 3.2 install and large IDE drives In-Reply-To: <199906210110.VAA12810@smtp3.erols.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SMTP-HELO: luna X-SMTP-MAIL-FROM: kip@lyris.com X-SMTP-RCPT-TO: jobaldwi@vt.edu,freebsd-stable@FreeBSD.ORG,freebsd-stable@FreeBSD.ORG,freebsd@unreal.gatekeep.net,mwhite@donet.com X-SMTP-PEER-INFO: luna.shelby.com [207.90.155.6] Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG If you disable LBA won't that limit the size of the bootable portion of the drive to the first 1024 cylinders? -Kip On Sun, 20 Jun 1999, John Baldwin wrote: > I think you just hit a weird coincidence. If you multiply the numbers, you > find that 16 * 34960 = 559360 and 255 * 2193 = 559215, which is only off by > 145 * 63 = 9135 sectors, or about 4.46 Meg.. hardly space to quibble over when > you've got 17Gig lying around. Why does it do this? Unless I am wrong, these > are the numbers returned when using LBA. Try turning LBA off in your BIOS and > see if it gets it right. You can also try turning LBA on by by setting the > flags on the wd0 and wd1 devices to 0x10001000. Thus, this is not necessarily > a bug (unless LBA should be turned on for GENERIC maybe?) in sysinstall, but a > quirk of ATA/IDE that we have to live with. > > On 21-Jun-99 kip@lyris.com wrote: > > Tell me where I can find the source and I will take a look at it. > > No promises. That is a lot lower level than I am used to dealing with. > > -Kip > > I looked in /usr/src/release/sysinstall/{disk.c,label.c} and > /usr/src/lib/libdisk/libdisk.h, it's using unsigned everywhere, AFAICT. > > Matt White said: > >> > >Hello... > >> > > > >> > >I may have uncovered a problem in the FreeBSD 3.2 install. > >> > > > >> > >I recently bought a new 18GB IDE drive, and I'm trying to install FreeBSD > >> > >3.2 into one of the partitions. When I run the FreeBSD "fdisk" (not sure > >> > >what's it actually called) during part of the install, it doesn't detect > >> my > >> > >drive settings correctly, and thus thinks I'm okay of disk space. > >> > > > >> > >It's detecting it like this: > >> > > > >> > > - 255 Heads > >> > > - 2193 Cyls > >> > > - 63 Sectors > >> > > > >> > >And in reality is has: > >> > > > >> > > - 16 Heads > >> > > - 34960 Cyls > >> > > - 63 Sectors > >> > > > >> > > > >> > >I can't help but notice that 34960 - 2193 is the "magical" number 32767. > >> > > > >> > >The drive is detected correctly at boot time, which leads me to believe > >> the > >> > >OS itself is fine, but it's the "fdisk" program that has the problem. > >> When > >> > >I set the drive geometry manually it takes it, but it still doesn't see > >> > that > >> > >I have 7GB of unpartitioned space. > >> > > > >> > >Any ideas? > >> > > > >> > >Matt > > --- > > John Baldwin -- http://members.freedomnet.com/~jbaldwin/ > PGP Key: http://members.freedomnet.com/~jbaldwin/pgpkey.asc > "Power Users Use the Power to Serve!" - http://www.freebsd.org > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message