From owner-freebsd-questions@FreeBSD.ORG Fri Jun 25 12:40:14 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D465C16A4CE for ; Fri, 25 Jun 2004 12:40:14 +0000 (GMT) Received: from internet.potentialtech.com (h-66-167-251-6.phlapafg.covad.net [66.167.251.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id A057A43D1F for ; Fri, 25 Jun 2004 12:40:14 +0000 (GMT) (envelope-from wmoran@potentialtech.com) Received: from working.potentialtech.com (pa-plum-cmts1e-68-68-113-64.pittpa.adelphia.net [68.68.113.64]) by internet.potentialtech.com (Postfix) with ESMTP id BCF4D69A39; Fri, 25 Jun 2004 08:40:13 -0400 (EDT) Date: Fri, 25 Jun 2004 08:40:12 -0400 From: Bill Moran To: "Bigbrother" Message-Id: <20040625084012.1089b96d.wmoran@potentialtech.com> In-Reply-To: <00dc01c45a86$91c99040$e203a8c0@vlsi.gr> References: <00dc01c45a86$91c99040$e203a8c0@vlsi.gr> Organization: Potential Technologies X-Mailer: Sylpheed version 0.9.10 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Strange Files Created, FSCK problems: how to deal without single user mode (/unmounting disc)? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jun 2004 12:40:15 -0000 "Bigbrother" wrote: > > Dear all, > > Today I found out (due to my backup process failure) that > some strange files were created on a users dir. > > Specifically: > > --wx--s-wx 16217 1062905872 1311669378 1061708166 Jan 1 1970 > .irssi > b---rwx--x 16240 root wheel 174, 0x3f590067 Jan 1 1970 > .mc > > These entries were supposed to be directories, but somehow they changed > to something else. > > I tried to remove them: > > rm .irssi > override -wx--s-wx 1062905872/1311669378 sappnd,arch,schg,uappnd,opaque > for .irssi? y > rm: .irssi: Operation not permitted > > rm .mc > override ---rwx--x root/wheel schg,uappnd,nodump for .mc? y > rm: .mc: Operation not permitted You might want to try removing some of those flags ... see 'man chflags' > I fscked the disc (note that his is an active disc with many users) and > the report is located at the end of this email. Because > the disc is read-write active changed are not written on the disc. > > > My questions: > > 1) Have you got any clue how a healthy IDE disc can cause and corrupt > files on the file system? Lots of ways. Misc hardware glitches would be the most common. Folks with admin rights doing things they shouldn't also occurs. I've seen NFS leave files in weird states on occasion, but I've never been able to reproduce the problem. > 2) How can I fix the problem WITHOUT rebooting or without UNMOUNTING > the discs? a) You can't unless you're using 5.x and can run background fsck. b) Since you ran fsck while the disk was mounted, those might not even be real errors, but just inconsistencies due to the filesystem being in use during the fsck. > If I fsck and > instruct to actually fix the errors, will they be fixed, or it > might crash corrupt the whole file system? Don't run fsck on a mounted filesystem. (Exception, you can run background fsck). If you run fsck on a mounted filesystem, all bets are off. > 3) How serious is this problem? Should I start worrying, even though > nothing else strange exist? Last time I had a problem like this, I unmounted the fs, took 15 minutes to fsck it, remounted it and went back to work ... I'm still using that filesystem today (many months and many gigs later). YMMV. -- Bill Moran Potential Technologies http://www.potentialtech.com