This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: cygdrive prefix


Vincent R. sent the following at Wednesday, September 16, 2009 12:09 PM
>> Vincent R. wrote:
>>> Is there any good reason to force user to use /cygdrive/ before
>>> accessing a drive?
>
>Ok I see your point but I find it weird to complicate things by adding
>/cygdrive.  Maybe some people are crazy enough to create folders with one
>letter at filesystem root but that's not my case so typing /c means I
>want to access C drive.

I'm not sure that people have explicitly answered you original question.

Cygwin "out of the box":

To get to c:\windows:
	$ cd /cygdrive/c/windows
To get to c:\cygwin:
	$ cd /cygdrive/c/cygwin
or	$ cd /

Now do the following (in cygwin 1.5; I don't know how ver. 1.7 works)
(though you might want to add some other flags, e.g., -b or -u)

	$ mount --change-cygdrive-prefix "/"

To get to c:\windows
	$ cd /c/windows
To get to c:\cygwin
	$ cd /c/cygwin
or	$ cd /

Does that help?  It seems to me that you can get what you want.

You might want to read the following
  http://cygwin.com/faq/faq-nochunks.html#faq.using.accessing-drives
  http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
  http://cygwin.com/cygwin-ug-net/using.html#mount-table
  http://cygwin.com/cygwin-ug-net/using-utils.html#mount

- Barry
  Disclaimer: Statements made herein are not made on behalf of NIAID.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]