From owner-freebsd-stable Sun Aug 8 16:32: 1 1999 Delivered-To: freebsd-stable@freebsd.org Received: from io.cts.com (io.cts.com [198.68.174.34]) by hub.freebsd.org (Postfix) with ESMTP id 6840114CA9 for ; Sun, 8 Aug 1999 16:31:58 -0700 (PDT) (envelope-from mdavis@cts.com) Received: from VOYAGER (voyager.cts.com [198.68.174.38]) by io.cts.com (8.9.3/8.9.2) with SMTP id QAA00382; Sun, 8 Aug 1999 16:30:14 -0700 (PDT) (envelope-from mdavis@cts.com) From: "Morgan Davis" To: "Mike Smith" Cc: Subject: RE: Removing files in /lost+found causes panic Date: Sun, 8 Aug 1999 16:30:14 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2918.2701 In-reply-to: <199908082302.QAA13667@dingo.cdrom.com> Importance: Normal Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > It would, of course, have been _really_nice_ if you actually bothered > to give us some details on these files before you nuked them... Sorry, will keep that in mind if it happens again. Getting a clean system back up and running was the main thing on my mind. What steps do you recommend so I can get you the details you need? Not sure if this will be useful, but here's all I can tell you. I became aware of a problem during a tape backup. Dump complained about invalid file references. I stopped the backup when it indicated that the completion time was going to be over 800 hours (normally, it's about an hour). After getting into single user, I ran fsck which found a lot of errors. This put about a dozen files into lost+found directories on two filesystems. The files were mostly small -- between 60 and a couple hundred bytes. They appeared to be from files in /usr/src/contrib and a few in /usr/obj. (Nothing I couldn't restore from a cvsup and a make world). The modes, owner, group, and flags were scrambled nonsense -- there are no files on any healthy system with those attributes. I cleared out all the flags with chflags. I could clear all the modes except the special device type bits (block and character). Any attempt to remove the files resulted in a panic. However, subsequent fsck's would run through everything with no errors (except for the dirty filesystem warning, of course). I booted the FreeBSD install floppies and use the Fixit disk to try to remove the files from there, thinking maybe the fact that they were on the same filesystem as the kernel was the culprit. But after mounting the drives, attempts to remove the files resulted in similar panics. Finally, David Malone's suggestion to use clri + fsck was the magic to clean it all up. --Morgan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message