delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/11/15/13:27:08

X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: RE: Re: Cygwin Environment from ThumbDrive
Date: Wed, 15 Nov 2006 13:26:46 -0500
Message-ID: <31DDB7BE4BF41D4888D41709C476B6570416935E@NIHCESMLBX5.nih.gov>
In-Reply-To: <ejfhht$kun$1@sea.gmane.org>
From: "Buchbinder, Barry \(NIH/NIAID\) [E]" <BBuchbinder AT niaid DOT nih DOT gov>
To: <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id kAFIR5dD029465

Thorsten Kampe wrote on Wednesday, November 15, 2006 12:08 PM:

> * Bodger (Tue, 14 Nov 2006 14:16:06 -0800 (PST))
>> How possible would it be to:
>> 
>> 1) Install a Cygwin environment into a Thumbdrive, including /home,
>> /usr etc.
> 
> Just install it (or copy it from an existing installation).
> 
>> 2) With the help of some crafty shell scripts, be available from most
>> Windows boxes by plugging the thumb drive in and running the
>> environment from there?
> 
> rem  Make cygwin mounts
> mount -fu %~d0\cygwin     /
> mount -fu %~d0\cygwin/bin /usr/bin
> mount -fu %~d0\cygwin/lib /usr/lib
> 
> mkpasswd -lc > \cygwin\etc\passwd
> mkgroup  -lc > \cygwin\etc\group

"%~d0" does not substitute for me on XP/cmd.  How's it supposed to work?

- Barry

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