This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Accessing folders elsewhere than C:\cygwin
- From: Andrew Schulman <schulman dot andrew at epamail dot epa dot gov>
- To: cygwin at cygwin dot com
- Date: Wed, 09 Feb 2011 10:53:11 -0500
- Subject: Re: Accessing folders elsewhere than C:\cygwin
- References: <4D52A7DD.7080208@bonhard.uklinux.net>
> I have Cygwin mounted conventionally under Q:\cygwin.
> I would like to access files under Q:\else.
> But (for example) ls ../../.. only ever attains \cygwin (and lower).
> I can use ls /cygdrive/q/else/ (and lower) but this means knowing the
> drive name (in this case Q:)
Well at some level you're going to have to know the drive name - either in
the path you specify, or in a mount point or a symlink.
> I don't much want to change mount points which are currently
> conventionally defined.
> Is there a way I can get to Q:\else without knowing the drive name Q:?
You don't have to change any existing mount points, but you can add a new
one in /etc/fstab, e.g.
Q:/else /else some_fs binary 0 0
Or create a symlink:
ln -s /cygdrive/Q/else /else
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple