Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

bad file descriptors

What does it mean when I 'ls' a directory and I get
/directoryname/filename: Bad file descriptor ?

Thanks
Anna

Powermac G4, Mac OS X (10.4)

Posted on Apr 11, 2006 4:08 PM

Reply
2 replies

Apr 12, 2006 2:02 PM in response to annibee

Hi, Anna.

Per this page, a Bad File Descriptor (EBADF error) is
"A file descriptor argument was out of range, referred to no open file, or a read (write) request was made to a file that was only open for writing (reading)."
This would tend to imply that either the file in question, or the volume's directory, is corrupted.

See:

1. My "Resolving Disk, Permission, and Cache Corruption" FAQ. Perform the steps therein in the order specified.

2. My "Finding corrupted files" FAQ.

Good luck!

😉 Dr. Smoke
Author: Troubleshooting Mac® OS X

---
Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:

I may receive some form of compensation, financial or otherwise, from my recommendation or link.

bad file descriptors

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.