From owner-freebsd-isp@FreeBSD.ORG Wed Jun 7 13:15:51 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 A809216DC63 for ; Wed, 7 Jun 2006 12:21:49 +0000 (UTC) (envelope-from elfrink@introweb.nl) Received: from relay.introweb.nl (relay.introweb.nl [80.65.96.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4455843D46 for ; Wed, 7 Jun 2006 12:21:48 +0000 (GMT) (envelope-from elfrink@introweb.nl) Received: from smtp.introweb.nl (frontend1.mailcluster.introweb.intern [192.168.4.31]) by relay3.introweb.nl (Postfix) with ESMTP id 67319C3849; Wed, 7 Jun 2006 14:21:47 +0200 (CEST) Received: from [192.168.0.26] (mail.introweb.net [80.65.97.195]) by frontend1.mailcluster.introweb.intern (Postfix) with ESMTP id 554841BAC11; Wed, 7 Jun 2006 14:23:43 +0200 (CEST) Message-ID: <4486C4DA.6080905@introweb.nl> Date: Wed, 07 Jun 2006 14:21:46 +0200 From: Robin Elfrink User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Eric Anderson 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> In-Reply-To: <56782.10.20.200.100.1149599550.squirrel@10.20.200.100> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 13:16:08 -0000 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