This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: How to uniformly point to the root of a drive?
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.
Brian
--
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/