kern/141992: fsck cannot repair file system in which it finds
an error
Kirk McKusick
mckusick at mckusick.com
Thu Dec 31 00:12:04 UTC 2009
> Date: Wed, 30 Dec 2009 15:00:16 -0800 (PST)
> From: Dan Strick <mla_strick at att.net>
> To: mckusick at mckusick.com
> In-Reply-To: <200912301731.nBUHV720089853 at chez.mckusick.com>
> Cc: freebsd-fs at freebsd.org, bug-followup at freebsd.org, mla at mist.nodomain
> Subject: Re: kern/141992: fsck cannot repair file system in which it finds
> an error
> X-BeenThere: freebsd-fs at freebsd.org
>
> > From mckusick at mckusick.com Wed Dec 30 09:45:41 2009
> > To: Dan Strick <mla_strick at att.net>
> > 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at 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
More information about the freebsd-fs
mailing list