delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/04/04:51:56

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 4 May 2009 10:51:36 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [1.7] Question: running from a portable drive
Message-ID: <20090504085136.GD21324@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <49F82640 DOT 1000401 AT bonhard DOT uklinux DOT net> <gt9ah0$3gm$1 AT ger DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <gt9ah0$3gm$1@ger.gmane.org>
User-Agent: Mutt/1.5.19 (2009-02-20)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Apr 29 12:35, Thorsten Kampe wrote:
> My solution was to determine the drive letter at run time (when plugging 
> in the stick). I use the following to set up the mount table (from a 
> batch file):
> mount -fu %~d0\cygwin     /
> mount -fu %~d0\cygwin/bin /usr/bin
> mount -fu %~d0\cygwin/lib /usr/lib
> mount -fu %temp           /tmp
> 
> In principle this should also work for 1.7 presuming that mount simply 
> writes to fstab instead of the registry.

mount only creates mount points in memory.  It does not write out
permanent information, unless you redirect `mount -m' output to
/etc/fstab.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019