From owner-freebsd-questions@FreeBSD.ORG Fri Apr 18 17:57:21 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7AA8E939 for ; Fri, 18 Apr 2014 17:57:21 +0000 (UTC) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3EBA21BD1 for ; Fri, 18 Apr 2014 17:57:21 +0000 (UTC) Received: from r56.edvax.de (port-92-195-108-40.dynamic.qsc.de [92.195.108.40]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 2DE6A3CE50; Fri, 18 Apr 2014 19:57:13 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id s3IHu4V7002007; Fri, 18 Apr 2014 19:56:04 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 18 Apr 2014 19:56:04 +0200 From: Polytropon To: Walter Hurry Subject: Re: Bad file descriptor Message-Id: <20140418195604.d01480f9.freebsd@edvax.de> In-Reply-To: References: Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Apr 2014 17:57:21 -0000 On Fri, 18 Apr 2014 15:27:53 +0000 (UTC), Walter Hurry wrote: > FreeBSD 9.2-RELEASE > > I have a handful of files in a subdirectory of /usr/ports/multimedia/ > gstreamer/work, which show up as 'Bad file descriptor'. It appears that I > am unable to delete them. This sounds familiar - like file system corruption. > /usr/ports is on my root partition/slice, which is ufs with journalling. > > On rebooting, it says the partition/slice is clean, so checking is > skipped. A check should be forced anyway. Use "fsck -f" to do so. > I gather that the way to fix this is to run fsck with the -f option. Is > this correct? If so, how do I get / unmounted? Or is there a way to force > a check on reboot before mounting? The easiest way is to boot from optical media (CD or DVD #1) or USB stick. It _may_ be possible to boot into single user mode (use "boot -s" after reboot) where / is mounted r/o. There is no way to unmount / while the system is running, even in single user mode this is problematic, so a second (live) system seems to be the safest way. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...