Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Mar 2007 16:56:02 -0500
From:      Gary Palmer <gpalmer@freebsd.org>
To:        Stan Behrens <s.behrens@kon.de>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: fsck_ufs: cannot alloc %u bytes for inoinfo
Message-ID:  <20070314215602.GB32936@in-addr.com>
In-Reply-To: <45F85F1B.8050309@kon.de>
References:  <45F41514.1090304@kon.de> <45F84B8C.5030209@freebsd.org> <45F85F1B.8050309@kon.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 14, 2007 at 09:46:19PM +0100, Stan Behrens wrote:
> Thanks for that hint.
> 
> But it's not the dataloss which runs me writing here, it's this 3570453704 
> bytes (means 3.3 gigabytes of ram) it tries to alloc what confuses me.

Don't be confused.  You completely overwrote at least one cylinder
group and probably the direct/indirect blocks relating to the
root inode.  Overwriting the CG alone is enough to make the fs
unrecoverable through fsck, the further damage just adds more
nails to the coffin.

All that the error means is that fsck tried to read in the cylinder group,
got a garbage value for the number of inodes in use and tried to 
allocate enough memory to handle that.  

Could fsck_ffs be smarter about recovering from this?  Possibly.  
However, recovering a filesystem that go so thoroughly toasted is
better left to specialised data recovery tools.

Regards,

Gary



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