By default, cygwin maps my c:\ as /cygrive/c and this is causing some programs some issues. How can I permanently map c:\ to /?

The cygwin c documentation is really hard to follow... I have no idea what to look for.

I'm using the latest Cygwin.


You can't map DOS "c:" to Cygwin "/". Cygwin needs its own root directory to be the root. You could map it to "/c" if you wanted. Since this solution won't work, why not instead post the problem you're having with "some programs", which can probably be solved? It would also be good to name the programs.

| improve this answer | |
  • Unfortunately I can't remember the exact program, but it it did have to do with a Windows program run from bash and it did not like the /cygdrive/c part. How can i change to '/c' ? – Ayman Apr 12 '11 at 14:22
  • I doubt a Windows program that gets its origin path from Bash would like "/" either. – CarlF Apr 12 '11 at 15:47
  • That is the "good" thing. a Windows program does accept / in the path. Not in the command prompt, but you can pass it using script or config files and it would work. – Ayman Apr 12 '11 at 16:11

You can only make C:\ the same as / by installing Cygwin into C:\. It's discouraged, but it does work.

| improve this answer | |

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.