1

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?

2
  • 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
3

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

2

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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