Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Wed, 23 Apr 2003 09:57:15 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: cygwin on a disk? Message-ID: <20030423135715.GB2230@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <3EA6865B DOT 9080205 AT verizon DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i On Wed, Apr 23, 2003 at 02:44:42PM +0100, Sam Edge wrote: >Kevin Soandso wrote in ><3EA6865B DOT 9080205 AT verizon DOT net> >in gmane.os.cygwin on Wed, 23 Apr 2003 08:26:03 -0400: > >> I use cygwin at home and work all the time and I love it. Many thanks to >> all the developers and contributors. >> >> I have a 64MB removable USB drive, about the size of a pen. I would like >> to minimally install cygwin on this drive and and take it from computer >> to computer. The idea is to simply plug the drive into the USB port of >> any Windows machine and have my personal cygwin environment there to >> use. I won't have the same Windows account on these machines (if at >> all), but I'd like to use the same cygwin login and home dir. >> >> Is there something about the way cygwin works that will prevent this? >> Has anyone made "cgywin on a disk" ? >> How could I do this, what do I need? > >There is an issue here, other than reducing the x:\cygwin tree to fit >onto the disc. Mine's rather larger than 64M. ;-) > >The mount table for Cygwin lives in the registry. You'd need to >install a ".reg" file on each new machine before you could start with >at least the following in it. DO NOT MANIPULATE THE REGISTRY DIRECTLY. DO NOT MANIPULATE THE REGISTRY DIRECTLY. DO NOT MANIPULATE THE REGISTRY DIRECTLY. DO NOT MANIPULATE THE REGISTRY DIRECTLY. DO NOT MANIPULATE THE REGISTRY DIRECTLY. DO NOT MANIPULATE THE REGISTRY DIRECTLY. DO NOT MANIPULATE THE REGISTRY DIRECTLY. DO NOT MANIPULATE THE REGISTRY DIRECTLY. DO NOT MANIPULATE THE REGISTRY DIRECTLY. DO NOT MANIPULATE THE REGISTRY DIRECTLY. DO NOT MANIPULATE THE REGISTRY DIRECTLY. DO NOT MANIPULATE THE REGISTRY DIRECTLY. DO NOT MANIPULATE THE REGISTRY DIRECTLY. DO NOT MANIPULATE THE REGISTRY DIRECTLY. DO NOT MANIPULATE THE REGISTRY DIRECTLY. >REGEDIT4 > >[HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2] >"cygdrive prefix"="/cygdrive" >"cygdrive flags"=dword:00000022 > >[HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/] >"native"="C:\\cygwin" >"flags"=dword:0000000a > >[HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts >v2\/usr/bin] >"native"="C:\\cygwin/bin" >"flags"=dword:0000000a > >[HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts >v2\/usr/lib] >"native"="C:\\cygwin/lib" >"flags"=dword:0000000a > >(You could use HKEY_CURRENT_USER instead, I think, if you don't want >to affect every user on the machine.) mount.exe is 19.5K. It's well worth including this in the minimal cygwin installation and not manipulating the registry directly. cgf -- 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/