From owner-freebsd-questions Sun Aug 24 19:32:32 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA09112 for questions-outgoing; Sun, 24 Aug 1997 19:32:32 -0700 (PDT) Received: from gdi.uoregon.edu (cisco-ts10-line11.uoregon.edu [128.223.150.109]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA09107 for ; Sun, 24 Aug 1997 19:32:29 -0700 (PDT) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.5/8.8.5) with SMTP id TAA01813; Sun, 24 Aug 1997 19:31:58 -0700 (PDT) Date: Sun, 24 Aug 1997 19:31:58 -0700 (PDT) From: Doug White X-Sender: dwhite@localhost Reply-To: Doug White To: Mario Sergio Fujikawa Ferreira cc: freebsd-questions@FreeBSD.ORG Subject: Re: IDE Drives Greater Than 2048MBytes In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sat, 23 Aug 1997, Doug White wrote: > On Tue, 19 Aug 1997, Mario Sergio Fujikawa Ferreira wrote: > > > > > Will FreeBSD support a partition over 2048MBytes in length, or is this > > > > just a problem with the bad block scanning program? > > > > > > freeBSD will have no problem, it must be a bug in bad144. This is the > > > first time I've heard of this. > > > > I've seen the same odd behavior. It happened with 3 different systems I > > tried to work with. > > Whenever I tried a partition size over 2048Mb the bad144 check crashed. By the way, I submitted a PR and someone sent me back a patch. You'll have to compile it and test it for yourself since I don't have any disks to test it with at current. This was from Bruce Evans (bde@freebsd.org). The gnats bug ID is bin/4366 if you want to look it up on the web pages. Subject: Re: bin/4366: Submission >>Description: > > bad144 crashes after it begins checking past 2048 megabytes on a large >hard disk. Manifested when using sysinstall's 'V' option on a large disk. Try this (untested) fix. Bruce diff -c2 bad144.c~ bad144.c *** bad144.c~ Sat Dec 2 16:36:52 1995 --- bad144.c Tue Aug 19 21:13:27 1997 *************** *** 142,146 **** } ! lseek(f, curr_sec * ss, L_SET); if ((n = read(f, buf, ss)) != ss) { --- 142,146 ---- } ! lseek(f, (off_t)ss * curr_sec, SEEK_SET); if ((n = read(f, buf, ss)) != ss) { Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major Spam routed to /dev/null by Procmail | Death to Cyberpromo