Date: Thu, 22 Jul 2004 19:14:23 +0200 From: Ruben de Groot <mail25@bzerk.org> To: Tuc <tuc@ttsg.com> Cc: freebsd-questions@freebsd.org Subject: Re: File descriptor issue Message-ID: <20040722171423.GA26596@ei.bzerk.org> In-Reply-To: <200407221559.i6MFxEbc085842@himinbjorg.tucs-beachin-obx-house.com> References: <200407221559.i6MFxEbc085842@himinbjorg.tucs-beachin-obx-house.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 22, 2004 at 11:59:13AM -0400, Tuc typed: > Hi, > > Having a weird problem. > > %df > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/da0s1a 516062 112528 362250 24% / > /dev/da1s1e 70566166 7792 64913082 0% /data > /dev/da2s1e 35283058 1430 32458984 0% /logs > /dev/da0s1f 516062 16 474762 0% /tmp > /dev/da0s1g 31669682 3640150 25495958 12% /usr > /dev/da0s1e 516062 8086 466692 2% /var > procfs 4 4 0 100% /proc > > %cd /logs > %ls > 20040705 20040707 20040709 20040711 20040713 > 20040706 20040708 20040710 20040712 lost+found > > %cd 20040705 > %ls > www17-00_access_log > > > %ls -la > ls: www17-00_access_log: Bad file descriptor > total 4 > drwxr-xr-x 2 root wheel 512 Jul 12 23:59 . > drwxr-xr-x 12 root wheel 512 Jul 13 00:00 .. > > > What happened with this file? How do I "delete" it so I can delete > the directory too, otherwise : > > %rm -rf 20040705 > rm: 20040705/www17-00_access_log: Bad file descriptor > rm: 20040705: Directory not empty You probably want to run fsck on your /logs filesystem. Did you have a power failure or unclear shutdown? Ruben
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040722171423.GA26596>