delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/13/09:19:08

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: localhost.localdomain: ronald owned process doing -bs
Date: Thu, 13 Feb 2003 15:27:34 +0100 (CET)
From: Ronald Landheer-Cieslak <ronald AT landheer DOT com>
X-X-Sender: ronald AT localhost DOT localdomain
To: Harald Kierer <Harald DOT Kierer AT astrum DOT de>
cc: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: RE: change /usr ?
In-Reply-To: <8C6D4989662C304087C58904BAB721A54B739E@Hermes.astrum.de>
Message-ID: <Pine.LNX.4.44.0302131519070.28370-100000@localhost.localdomain>
MIME-Version: 1.0

On Thu, 13 Feb 2003, Harald Kierer wrote:

> > Guilaume,
> > 
> > You should think *very* carefully before doing this, but if you are 
> > *really* sure you want to, you can use the mount command to 
> > remount /usr 
> > from c:\cygwin\usr to c:\usr
> > $ mount c:\usr /usr
> > or 
> > $ mount -b c:\usr /usr
> > will do this for you.
> 
> Just a note:
> "c:\usr" will probably give you an "Invalid argument" error.
> Use
> mount c:/usr /usr
> to be sure.
Ah, yeah - I keep forgetting that one... :(

> And since the mount point /usr already exists you might umount
> it first: umount /usr
That won't work - first of all because the mount point /usr doesn't exist 
by default (the c:\cygwin directory contains an usr directory, but there 
is no mount done on it) and second because, even if there *were* a mount 
point /usr, the umount wouldn't (or shouldn't) work because it would be 
"busy" (/usr/bin is mounted over /usr and mount is in /usr/bin).
You might need the -f flag to force the mount, though..

> Oh, and good luck...
He'll sure need it ;)

By the way: there is no problem with changing the name of the c:\cygwin 
directory but you can't do it from within Cygwin. The best (or easiest) 
way to do it is to quit all Cygwin programs, rename your directory and 
re-run Setup to fix your registry. *Do not* edit the registry yourself!
Of course, this is not sure to work either, and none of these procedures 
are even remotely close to advisable, but I guess you already knew that.

Otherwise, what you could do is follow the procedure for un-installing 
Cygwin (which for the moment does require you to edit the registry), move 
or rename the Cygwin directory and run Setup to install over it. That 
*will* work (I've done it when I ran out of disk space) but is not a great 
thing to do either..

Just one question, though: why do you want to mess up your installation 
like this anyway?

rlc


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