X-Spam-Check-By: sourceware.org Message-ID: <46507611.2E1DFFE0@dessent.net> Date: Sun, 20 May 2007 09:23:45 -0700 From: Brian Dessent X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: How to uniformly point to the root of a drive? References: <46506BA1 DOT C3502CCD AT dessent DOT net> <0a3801c79af6$c32395b0$2e08a8c0 AT CAM DOT ARTIMI DOT COM> <46507312 DOT 2EDBD2A5 AT dessent DOT net> <0a3901c79afa$41cf13a0$2e08a8c0 AT CAM DOT ARTIMI DOT COM> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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/