Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Jun 1999 21:10:46 -0400 (EDT)
From:      John Baldwin <jobaldwi@vt.edu>
To:        kip@lyris.com
Cc:        freebsd-stable@FreeBSD.ORG, "Brandon Hicks-www.gatekeep.net" <freebsd@unreal.gatekeep.net>, Matt White <mwhite@donet.com>
Subject:   RE: FreeBSD 3.2 install and large IDE drives
Message-ID:  <199906210110.VAA12810@smtp3.erols.com>
In-Reply-To: <Pine.SOL.4.05.9906201733010.14514-100000@luna>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <jobaldwi@vt.edu> -- 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906210110.VAA12810>