delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/11/03/08:38:40

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3BE3F344.3010407@cportcorp.com>
Date: Sat, 03 Nov 2001 08:38:12 -0500
From: Peter Buckley <peter DOT buckley AT cportcorp DOT com>
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1
X-Accept-Language: en-us
MIME-Version: 1.0
To: Peter Rasmussen <raz AT zip DOT com DOT au>
CC: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Command not found
References: <000001c1643c$63e2ae20$020aa8c0 AT computer>

How did you uninstall/reinstall/relocate? Cygwin, when installed with 
setup.exe, creates default mount tables that are stored in the registry 
under HKLM/software/cygnus/...

It could be that the mount values in the registry point to the old 
location of your /usr/bin directory, and so when the path gets set when 
you start a bash shell, it is looking in the wrong place and can't find 
any commands.

 From a bash prompt, type /cygdrive/c/place-you-reinstalled-cygwin/bin/mount

It should tell you what the mount points are. If you see something like

C:\Program Files\cygwin mounted to / type system
C:\Program Files\cygwin\bin mounted to /usr/bin type system

Then you need to change your mount points. You can do this by typing the 
full path to your new cygwin install to call "umount" and "mount" to 
unmount the old stuff and mount the new, correct locations. I recommend 
using mount -bs C:/cygwin /
this will mount in binary mode and make a system mount (important for 
some programs). Note that for unmounting "type system" mounts, you type 
"umount -s <mount-point>".

HTH,
Peter

Peter Rasmussen wrote:

> Hello
> 
> Re: Command not found
> 
> On uninstalling and reinstalling Cygwin in a new location on my computer
> various commands like ls, pwd, make info no longer work.
> 
> I made the initial mistake of installing Cygwin in my "Program Files"
> directory.  On learning that it has a problem with spaces in the path name.
> I relocated it.  Is there a directory log of some sort that I have to remove
> to fix this?  What do you recommend?  My computer specifications are below.
> 
> Thanks for your time.
> 
> Cheers
> 
> Peter
> 
> I am running:
> Windows 98 on
> Gateway
> 333Mhz
> 64 Mb Memory
> 3.5 Gig hard drive (system)
> 22 Gig hard drive (other)
> 4MB ATI Rage Pro AGP Graphics Accelerator
> SoundBlaster Audio PCT 64V
> GVC 56K PCI modem
> 
> 
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 
> 



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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