Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

After restarting my server I have two directories that are not working. I can see them through ls but when I do ls -l, I get

?---------  ? ?     ?        ?            ? cgi-bin
?---------  ? ?     ?        ?            ? tmp

Trying to cd into either directory results in "no such file or directory". Is there a way I can get these two directories to work again?

share|improve this question
What is the output of ls -ld /path/to/the/directory? – quanta Nov 8 '11 at 5:21
No such file or directory – Matthew Hui Nov 8 '11 at 7:24
up vote 3 down vote accepted

unmount filesystem and run fsck on this drive. or if it is root partition then force fsck on startup. probably filesystem is corrupt

share|improve this answer

It looks like there is something sort of corruption with the directory. You probably need to run fsck on the file system that the directories reside on.

Worse case, you may have to delete those directories and recreate them.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.