How to uniformly point to the root of a drive?

Brian Dessent
Sun May 20 16:37:00 GMT 2007

Dave Korn wrote:

>   I'm not sure exactly what Thorsten is looking for in his original question,
> 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.  USB stick drive letters change very often...

Yes, there is a very real need for that kind of adjustment in such a
situation, but you'd have to do it using native/batch scripting since
trying to start a bash shell with /usr pointing off into empty space
will probably not end well.  Since the question seemed to be looking for
the POSIX form of the rootdir I assumed that the mount tables had
already been frobbed.


Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list