Date: Fri, 18 Apr 2014 19:56:04 +0200 From: Polytropon <freebsd@edvax.de> To: Walter Hurry <walterhurry@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Bad file descriptor Message-ID: <20140418195604.d01480f9.freebsd@edvax.de> In-Reply-To: <lirg9p$khs$1@ger.gmane.org> References: <lirg9p$khs$1@ger.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140418195604.d01480f9.freebsd>