bad file descriptor

Dan Nelson dnelson at allantgroup.com
Tue Jun 17 11:01:11 PDT 2003


In the last episode (Jun 17), Jaime said:
> On Tue, 17 Jun 2003, heikki soerum wrote:
> > > zeus# rm "#pico29506#"
> > > rm: #pico29506#: Bad file descriptor
> > > zeus# whoami
> > > root
> >
> > # is usually an special character, I usually delete such files with
> > Midnight Commander (mc shell), another possibility might be to not use
> > "" but rather use an \ backslash before every special character.
> 
> 	I tried that first.  That didn't work, either.  :(

"Bad file descriptor" when trying to access a file usually means
filesystem corruption.  A fsck run should delete it, and if it doesn't
you can use the clri command to zap the inode (dismount the filesystem
first) then run fsck.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list