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: How to uniformly point to the root of a drive?


* Dave Korn (Sun, 20 May 2007 17:16:43 +0100)
> On 20 May 2007 17:11, Brian Dessent wrote:
> > Dave Korn wrote:
> > 
> >>   This relies on the mountpoints being set correctly, which might not work
> >> if your drive letter changes ...
> > 
> > Well if that is the case and / points to the wrong dir then I don't see
> > how you can be using Cygwin at all,
> 
>   I'm not sure exactly what Thorsten is looking for in his original question,

Something like "cat /cygdrive/g/autorun.inf" from a shell script. 

> so I don't know if it's relevant here or not, but it might be useful for a
> portable installation to have a way to detect the drive letter so as to be
> able to (re)assign the mountpoints (e.g. from Cygwin.bat) before starting up a
> shell or other cygwin app.

I already do that (something like "mount -fu %~d0\cygwin /") in a 
batch script. Unfortunately the %~d0" trick is a Cmd thing so I can't 
directly use it from bash or zsh.

> USB stick drive letters change very often...

That exactly is my problem...

Thorsten


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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