delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/01/13/19:27:39

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Tue, 13 Jan 2004 19:26:44 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: jon wild <wild AT fas DOT harvard DOT edu>
cc: cygwin AT cygwin DOT com
Subject: Re: recovering cygwin settings after a Win98 anomaly
In-Reply-To: <Pine.LNX.4.44.0401131828570.14745-100000@ls03.fas.harvard.edu>
Message-ID: <Pine.GSO.4.56.0401131920300.2663@slinky.cs.nyu.edu>
References: <Pine DOT LNX DOT 4 DOT 44 DOT 0401131828570 DOT 14745-100000 AT ls03 DOT fas DOT harvard DOT edu>
MIME-Version: 1.0

On Tue, 13 Jan 2004, jon wild wrote:

> Hello all
>
> This sounds like it should be a FAQ question but I couldn't see it there.
> Sorry in advance if this is tedious.
>
> A few days ago my OS (Win98) inexplicably reverted to a much earlier
> registry version, resetting all program preferences and file associations
> etc. Big headache--and recent registry restore files were all wiped at the
> same time, so I can't fix everything in one fell swoop. The registry was
> reset to a time (4 years ago!) when I didn't have cygwin installed, which
> I presume is the cause of the present problem I am having. Cygwin boots
> into the wrong folder, and won't recognise commands apart from pwd and cd
> (as far as I've checked--no ls etc). If I cd to my home directory and try
> to run one of my executables there, I am told that cywin1.dll doesn't
> exist, though windows sees it fine (in c:\cygwin\bin).
>
> Everything was running v smoothly before the anomaly. Is there a simple
> way I can fix whatever happened? Or will I have to reinstall cygwin from
> scratch? If anyone can point me in the right direction for understanding
> what happened and how to fix it, I'll be grateful. I don't know much about
> the interaction between cygwin and windows, I just use it for compiling
> and running C programs and some batch text-processing, so apologies if the
> question is very basic.
>
> Thanks --Jon Wild

The only thing Cygwin normally stores in the registry at this point are
mounts (technically, there are other things, but if you'd used them, you'd
know how to fix this).

If you've installed in the standard location, try running the following
commands (from c:\cygwin\bin):

mount -s -b --change-cygdrive-prefix "/cygdrive"
mount -f -s -b "C:/cygwin" "/"
mount -f -s -b "C:/cygwin/bin" "/usr/bin"
mount -f -s -b "C:/cygwin/lib" "/usr/lib"

If you've installed X, you should also run

mount -f -s -b "C:/cygwin/usr/X11R6/lib/X11/fonts" "/usr/X11R6/lib/X11/fonts"

If you didn't install in the standard location, change "C:/cygwin" in the
above commands to the location where you installed Cygwin.

Please let the list know if this works for you.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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