From owner-freebsd-questions@FreeBSD.ORG Fri Feb 25 03:29:18 2005 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 E312516A4CF for ; Fri, 25 Feb 2005 03:29:18 +0000 (GMT) Received: from web51010.mail.yahoo.com (web51010.mail.yahoo.com [206.190.39.129]) by mx1.FreeBSD.org (Postfix) with SMTP id 6E9B643D6A for ; Fri, 25 Feb 2005 03:29:18 +0000 (GMT) (envelope-from tfcheng@yahoo.com) Received: (qmail 26922 invoked by uid 60001); 25 Feb 2005 03:29:17 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=Qy1MHFrknwO05irD4ilOS6ZjCu6PrxfuWaN8aO51uQ+ThbeGaL++dJmbPOrykLQq2FAYNo5/VvU6aTr2wywg+SNl8aTN+ewbAcnXOVShJT+Xa4h4YjJCCwlda/6okjpH1Pn3a9wYS7d36/xhGrOFzxLhNfHx86bFnfn58UK+pvQ= ; Message-ID: <20050225032917.26920.qmail@web51010.mail.yahoo.com> Received: from [69.113.106.60] by web51010.mail.yahoo.com via HTTP; Fri, 25 Feb 2005 11:29:17 CST Date: Fri, 25 Feb 2005 11:29:17 +0800 (CST) From: "T.F. Cheng" To: Dan Nelson In-Reply-To: <20050225032032.GE60363@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Transfer-Encoding: 8bit cc: FreeBSD cc: Piter Subject: Re: Directory not empty 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 Feb 2005 03:29:19 -0000 man, you are right, I now recall there was a crash during the last portupgrade. And there is " /dev/ad0s1f: UNEXPECTED SOFT UPDATE INCONSISTENCY; RUN fsck MANUALLY." in my /var/log. Guess the mystery is solved. Then why do I have to reboot first then run bgfsck? Can I run this myself without rebooting? thanks! --- Dan Nelson 寫道: > In the last episode (Feb 25), T.F. Cheng said: > > yeah, it's weird. I found that I can rename it (to > tmp) then I tried > > to del it: > > > rm -fr tmp > > rm: tmp/qt-x11-free-3.3.4/doc: Directory not empty > > rm: tmp/qt-x11-free-3.3.4/src: Directory not empty > > Do you use softupdates, and did your system happen > to crash after a > portupgrade? I bet if you cd into > tmp/qt-x11-free-3.3.4/doc and run ls > -la, you'll see something like: > > $ ls -la > total 2 > drwx------ 4 dan dan 512 Feb 22 11:00 ./ > drwxr-xr-x 3 dan dan 512 Feb 22 11:00 ../ > > The "." entry should have 2 links in an empty > directory (one here, and > one in the parent directory). That's caused be a > failed background > fsck, which is supposed to reset bad link counts > after a crash. If you > check /var/log/messages, you might see something > like this: > > PARTIALLY TRUNCATED INODE I=316179 > UNEXPECTED SOFT UPDATE INCONSISTENCY; RUN fsck > MANUALLY. > > Try rebooting and letting the bgfsck run again, or > boot into > single-user mode and run fsck -p on the filesystem. > > -- > Dan Nelson > dnelson@allantgroup.com > ===== Best Regards, Tsu-Fan Cheng _________________________________________________________ Do You Yahoo!? 登記免費的 @yahoo.com 中文電子郵件 @ http://chinese.mail.yahoo.com Get your free @yahoo.com address at http://chinese.mail.yahoo.com