From owner-freebsd-isp@FreeBSD.ORG Wed Jun 7 15:18:11 2006 Return-Path: X-Original-To: freebsd-isp@freebsd.org Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D2F0816D62B for ; Wed, 7 Jun 2006 13:15:56 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh1.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E39B43D46 for ; Wed, 7 Jun 2006 13:15:56 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.1/8.13.1) with ESMTP id k57DFtWQ043245; Wed, 7 Jun 2006 08:15:55 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <4486D193.3000801@centtech.com> Date: Wed, 07 Jun 2006 08:16:03 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5.0.2 (X11/20060506) MIME-Version: 1.0 To: Robin Elfrink References: <44852CF1.5070300@introweb.nl> <62208.10.20.200.100.1149598242.squirrel@10.20.200.100> <44857BA4.90405@introweb.nl> <56782.10.20.200.100.1149599550.squirrel@10.20.200.100> <4486C4DA.6080905@introweb.nl> In-Reply-To: <4486C4DA.6080905@introweb.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1517/Tue Jun 6 19:05:07 2006 on mh1.centtech.com X-Virus-Status: Clean Cc: freebsd-isp@freebsd.org Subject: Re: Recovery from disk+fs crash X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2006 15:18:16 -0000 Robin Elfrink wrote: > Eric Anderson wrote: > >>>>> root@:~# fsck /dev/da0s1f >>>>> ** /dev/da0s1f (NO WRITE) >>>>> cannot alloc 18446744067446403432 bytes for inphead > > >> You could go in with fsdb and fix the parts manually, but it wouldn't be > > root@:~# fsdb /dev/da0s1f > ** /dev/da0s1f (NO WRITE) > cannot alloc 18446744067446403432 bytes for inphead > fsdb: cannot set up file system '/dev/da0s1f' > > > Following is in fsck's setup.c: > > inphead = (struct inoinfo **)calloc((unsigned)numdirs, > sizeof(struct inoinfo *)); > if (inpsort == NULL || inphead == NULL) { > printf("cannot alloc %u bytes for inphead\n", > (unsigned)numdirs * sizeof(struct inoinfo *)); > goto badsb; > } > > > So I suppose somehow the number of directories somewhere is over the > top. I'm afraid the only thing left is to do hexedit on the disk... > > > Robin Can you run dumpfs on it, and put the output somewhere accessible on the web? Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------