From owner-freebsd-questions@FreeBSD.ORG Tue Jun 17 07:14:34 2003 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 8853E37B401 for ; Tue, 17 Jun 2003 07:14:34 -0700 (PDT) Received: from pa-plum1b-166.pit.adelphia.net (pa-plum1b-217.pit.adelphia.net [24.53.161.217]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4AEE43FBF for ; Tue, 17 Jun 2003 07:14:33 -0700 (PDT) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com (working [172.16.0.95]) h5HEEXOg005511; Tue, 17 Jun 2003 10:14:33 -0400 (EDT) (envelope-from wmoran@potentialtech.com) Message-ID: <3EEF2249.5000205@potentialtech.com> Date: Tue, 17 Jun 2003 10:14:33 -0400 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030429 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jaime References: <20030617090348.G94567@malkav.snowmoon.com> In-Reply-To: <20030617090348.G94567@malkav.snowmoon.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: bad file descriptor 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: Tue, 17 Jun 2003 14:14:34 -0000 Jaime wrote: > Can anyone explain this? It looks like I can't delete a given > file. This file has been causing weird errors with just about everything, > including tar, rm, ls -l, etc. It resides on a vinum RAID-5 array, which > is the only strange thing I can think of about it. > > zeus# ls > #pico29506# .login .shrc cdtashirt.jpg > .addressbook .login_conf .spamassassin cdtashirtstitch.jpg > .addressbook.lu .mail_aliases December 2002 Newsletter.docs dead.letter > .aspell.en.prepl .mailrc Documents mail > .aspell.en.pws .pinerc Lawrence.JPG mbox > .aspell.english.prepl .profile October 2002 Newsletter.doc public_html > .aspell.english.pws .qmail.backup.from.cyrus October 2002 Newsletter.doc. > .cshrc .rhosts acker > zeus# rm "#pico29506#" > rm: #pico29506#: Bad file descriptor > zeus# whoami > root That looks like a recovery file from the pico editor. It's unlikely, but possible that your system crashed during a pico editing session and left this file behind with a broken file descriptor. If such is the case, fsck might be able to fix it. Try unmounting the filesystem (or booting into single user mode if you must) and running 'fsck -f'. Once it's finished and you've rebooted the system, see if you can then delete the file. -- Bill Moran Potential Technologies http://www.potentialtech.com