Re: fsck_ufs: cannot alloc 3166749884 bytes for inoinfo

From: Don Lewis <truckman_at_FreeBSD.org>
Date: Sun, 27 Feb 2005 18:51:40 -0800 (PST)
On 26 Feb, Kris Kennaway wrote:
> A recent panic left my FS with some serious corruption, which fsck is
> unable to repair:
> 
> # fsck_ufs -b 376512 -fy /var
> Alternate super block location: 376512
> ** /dev/twed0s1e
> ** Last Mounted on
> ** Phase 1 - Check Blocks and Sizes
> fsck_ufs: cannot alloc 3166749884 bytes for inoinfo
> 
> (same holds for any superblock I've tried).

It looks like the problem is that cg_initediblk is corrupted in one of
the cylinder groups.  It should never be larger than fs_ipg, and pass5()
silently enforces this limit.  We could do the same in pass1(), except
that if it ever got set to too small a value, such as 0, fsck would
think a bunch of files were missing.
Received on Mon Feb 28 2005 - 01:51:48 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:29 UTC