OK, this is a stupid question. But how do set correct root directory in cygwin? Is this something that should have been done at install time? It should be set to d:\cygwin but currently it points to c:\ and because of that \bin, \etc and other folders do not exist. Thanks.
Edit: Looks like the registry key for rootdir has changed few times between versions (I assume). On the working box I have in "HKLM\SOFTWARE\Wow6432Node\Cygwin\setup\" key "rootdir" that points to rootdir. On the non-working box I have completely different path: "HKLM\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2/" and key "native" with value "d:\cygwin".
I think I will give up now. Thanks for the people who tried to help below.
For Windows 10, a quick access is to enter "Edit the system environment variables" in the Start Search of Windows and click the button "Environment Variables". Change the PATH variable (double-click on it or Select and Edit), and add the path where your Cywgwin is, e.g. C:\cygwin\bin.
Ok, this is really late! But please try the following:
cd /cygdrive
cygdrive is the cygwin/linux equivalent of my computer in windows
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With