Ruben Laguna's blog

Sep 4, 2006 - 1 minute read - Comments - click cygdrive cygwin directory drive file permission reading troubleshoot Uncategorized windows

Cygwin problem: Can't access /cygdrive/c

I’ve lost my ability to see my c: drive from cygwin. when I do

$ cd c:


$ cd /cygdrive/c

all goes ok. But if I do

$ ls

then it complains

ecerulm@rlm-ecb4fe6cda1 /cygdrive/c $ ls
ls: reading directory .: No such file or directory

I found something at this forum and also here So it seems that I screwed up permission (maybe it related to some automatic windows update). So after checking my username and group are the right on with

$ id

I noticed that I can perform

$ cd /cygdrive/c/Documents\ And\ Settings

and see the contents of that directory so I must be some problem with the permission at the root folder c:

So I right-click the c drive and click on Properties. In the security tab added permission to “Read & execute” to Everyone but I didn’t solve the problem so I guess I have to live with this little annoyance.