From owner-freebsd-questions Wed Dec 24 14:52:38 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA05461 for questions-outgoing; Wed, 24 Dec 1997 14:52:38 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from gdi.uoregon.edu (cisco-ts12-line10.uoregon.edu [128.223.150.142]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA05455 for ; Wed, 24 Dec 1997 14:52:32 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.7/8.8.8) with SMTP id OAA10125; Wed, 24 Dec 1997 14:52:21 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Date: Wed, 24 Dec 1997 14:52:21 -0800 (PST) From: Doug White X-Sender: dwhite@localhost Reply-To: Doug White To: John Frader cc: freebsd-questions@FreeBSD.ORG Subject: Re: Bad file descriptor? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Tue, 23 Dec 1997, John Frader wrote: > Thanks for the info. > > What would have caused it to become corrupted? Disk or system crash. > On Mon, 22 Dec 1997, Doug White wrote: > > > On Mon, 22 Dec 1997, John Frader wrote: > > > > > Below is what I started getting in the system security messages. > > > Could anyone tell me what this means? If I do a ls in /dev I don't see ch0 > > > but if I do a ls -l, I get the same thing /dev/ch0: Bad file descriptor > > > > > > checking setuid files and devices: > > > find: /dev/ch0: Bad file descriptor > > > > Your /dev/ch0 file is corrupted. If you don't use the SCSI tape changer, > > you can simply remove the file. If you do, then remove /dev/ch0 then run > > `/dev/MAKEDEV ch0'. Since you can't rm it (from your other msg), you may have to use ls -i to find the file inode and clri to manually remove it, then run fsck to kick it out to /lost+found. That is a tricky and potentially dangerous procedure however. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major