From owner-freebsd-fs@FreeBSD.ORG Thu Dec 31 00:12:03 2009 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E296C1065676; Thu, 31 Dec 2009 00:12:03 +0000 (UTC) (envelope-from mckusick@mckusick.com) Received: from chez.mckusick.com (chez.mckusick.com [64.81.247.49]) by mx1.freebsd.org (Postfix) with ESMTP id A32B88FC12; Thu, 31 Dec 2009 00:12:03 +0000 (UTC) Received: from chez.mckusick.com (localhost [127.0.0.1]) by chez.mckusick.com (8.14.3/8.14.3) with ESMTP id nBV0BfPm024346; Wed, 30 Dec 2009 16:11:41 -0800 (PST) (envelope-from mckusick@chez.mckusick.com) Message-Id: <200912310011.nBV0BfPm024346@chez.mckusick.com> To: Dan Strick In-reply-to: <200912302300.nBUN0GEl004499@mist.nodomain> Date: Wed, 30 Dec 2009 16:11:41 -0800 From: Kirk McKusick Cc: freebsd-fs@freebsd.org, bug-followup@freebsd.org, mla@mist.nodomain Subject: Re: kern/141992: fsck cannot repair file system in which it finds an error 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: Thu, 31 Dec 2009 00:12:04 -0000 > Date: Wed, 30 Dec 2009 15:00:16 -0800 (PST) > From: Dan Strick > To: mckusick@mckusick.com > In-Reply-To: <200912301731.nBUHV720089853@chez.mckusick.com> > Cc: freebsd-fs@freebsd.org, bug-followup@freebsd.org, mla@mist.nodomain > Subject: Re: kern/141992: fsck cannot repair file system in which it finds > an error > X-BeenThere: freebsd-fs@freebsd.org > > > From mckusick@mckusick.com Wed Dec 30 09:45:41 2009 > > To: Dan Strick > > Subject: Re: kern/141992: fsck cannot repair file system in ... > > Date: Wed, 30 Dec 2009 09:31:07 -0800 > > > > Thanks.The thing that immediately jumps out at me is that the filesystem > > is UFS1 format (which would make it 4.X vintage unless you specifically > > requested UFS1 when you built it). The new code to fix cylinder groups > > in fsck can only fix UFS2 filesystems. So the problem is that it is > > unhappy with cylinder group 48, then tries to fix it and finds that > > it cannot do anything. At a minimum it should just not do its check > > for bad cylinder groups in UFS1 filesystems. > > The file system was probably created by FreeBSD 4.10, the first version > of FreeBSD that would run on my machine. Yes, quite believeable. > Perhaps when the new fsck finds a bad UFS1 cylinder group and cannot > fix it, the new fsck should simply explain its limitation and recommend > copying the UFS1 file system contents to a new UFS2 file system. That is what I will probably do unless an easy fix for UFS1 presents itself. > > Is there a chance that I can either (1) get a copy of the mdconfig > > disk image so I can work out a solution here, or (2) get a login > > on your machine so I can poke at things there. > > > > Kirk McKusick > > I have prepared a new file system by deleting all files in the old file > system, creating a huge file containing only zeros, and deleting the > huge file. The new file system gzips nicely and still has the bad > cylinder group. The new file system is about 16 MB compressed (almost > 9 GB uncompressed). How should I send it to you? > > Dan Strick > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" Excellent. I wish all folks that reported bugs could provide such help as you have :-) Do you have a web server on which you could put it from which I could do a download? Or an ftp server? If not, I'll create a guest account for you on my machine and let you download to that. ~Kirk