Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to set cygwin root directory?

Tags:

cygwin

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.

like image 804
user316606 Avatar asked Sep 16 '11 16:09

user316606


People also ask

How do I find my Cygwin path?

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.


1 Answers

Ok, this is really late! But please try the following:

cd /cygdrive

cygdrive is the cygwin/linux equivalent of my computer in windows

like image 101
Shivani Garg Avatar answered Sep 21 '22 12:09

Shivani Garg