From owner-freebsd-fs@FreeBSD.ORG Wed Mar 14 19:22:56 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7547916A401 for ; Wed, 14 Mar 2007 19:22:56 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from mh1.centtech.com (moat3.centtech.com [64.129.166.50]) by mx1.freebsd.org (Postfix) with ESMTP id 4712113C455 for ; Wed, 14 Mar 2007 19:22:56 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from [192.168.42.21] (andersonbox1.centtech.com [192.168.42.21]) by mh1.centtech.com (8.13.8/8.13.8) with ESMTP id l2EJMqQL079341; Wed, 14 Mar 2007 14:22:53 -0500 (CDT) (envelope-from anderson@freebsd.org) Message-ID: <45F84B8C.5030209@freebsd.org> Date: Wed, 14 Mar 2007 14:22:52 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5.0.9 (X11/20070204) MIME-Version: 1.0 To: Stan Behrens References: <45F41514.1090304@kon.de> In-Reply-To: <45F41514.1090304@kon.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.4/2839/Wed Mar 14 04:24:32 2007 on mh1.centtech.com X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=8.0 tests=BAYES_00 autolearn=ham version=3.1.6 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on mh1.centtech.com Cc: freebsd-fs@freebsd.org Subject: Re: fsck_ufs: cannot alloc %u bytes for inoinfo X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2007 19:22:56 -0000 On 03/11/07 09:41, Stan Behrens wrote: > Hi, > > recently i killed my fs with `swapon /dev/ad0s2a` (only a few mbyte got > in) and i`d like to restore it, so i tried to fsck it getting this output: > > # fsck_ufs /dev/ad0s2a > ** /dev/ad0s2a > Cannot find file system superblock > /dev/ad0s2a: INCOMPLETE LABEL: type 4.2BSD fsize 0, frag 0, cpg 0, size > 14952164 > > I looked up `newfs -N -U -n /dev/ad0s2a` for alternative super-blocks. > While trying some random backup-super-block i always get this output: > > # fsck_ufs -b 14677888 /dev/ad0s2a > Alternate super block location: 14677888 > ** /dev/ad0s2a > ** Last Mounted on > ** Phase 1 - Check Blocks and Sizes > fsck_ufs: cannot alloc 3570453704 bytes for inoinfo > > According to Thread > http://lists.freebsd.org/pipermail/freebsd-current/2005-February/047061.html > this still seems to be a problem. > > Some infos: > > # dumpfs /dev/ad0s2a > dumpfs: /dev/ad0s2a: could not read superblock to fill out disk > # uname -r > 6.2-STABLE > # bsdlabel /dev/ad0s2 > # /dev/ad0s2: > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 14952164 1048576 4.2BSD 0 0 0 > b: 1048576 0 swap > c: 16000740 0 unused 0 0 # "raw" part, > don't edit Since you blasted some considerable amount of the file system, fsck is not going to be able to repair it. You'll need to use a tool like /usr/src/tools/tools/recoverdisk or /usr/ports/sysutils/ffs2recov probably to get back what you can. Eric