When running cygwin, it has it's internal virtual filesystem mappings which are visible to linux programs (well, ports) running inside cygwin. Accessing the host windows filesystem from within cygwin is easy, but what about the other way around? If I needed to somehow mount the virtual cygwin filesystem as a windows drive or ntfs folder or similar? Are there ready solutions?


Use cygpath -w cygwin-pathname to convert from a Cygwin path to a regular Windows path. For example, cygpath -w /cygdrive/c/Users will print C:\Users.

  • Yeah but I would like to access the whole "/", not just "/cygdrive/". – Cray Oct 29 '12 at 13:09
  • 3
    The Windows equivalent to Cygwin's / is C:\cygwin with all the individual drives under the Cygwin /cydrive directory. For example, /cygdrive/c means C:\ . If you're really annoyed by the cygdrive stuff (as I would be!) perhaps you might consider my own Hamilton C shell hamiltonlabs.com/Cshell.htm, which actually was written for Windows and understands drive letters directly. – Nicole Hamilton Oct 29 '12 at 23:02

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.