delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/09/23/11:12:12

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <48D911CC.2080001@cygwin.com>
Date: Tue, 23 Sep 2008 11:57:00 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070505 Remi/2.0.0.0-3.fc4.remi Lightning/0.8 Thunderbird/2.0.0.0 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: slow filesystem access mc start take sometimes 1 sec sometimes upto 7 sec or sometimes more
References: <yam11223 DOT 2647 DOT 284500888 AT mail DOT gmx DOT net>
In-Reply-To: <yam11223.2647.284500888@mail.gmx.net>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Bernd Roesch wrote:
> Hello Larry
> 
> On 22.09.08, you wrote:
> 
> 
>>> So i think its illegal to change the homedir on the bat file ?
>> No, it's not.  I don't have an explanation for the behavior you're
>> seeing.
>>
>> Your solution will work, though it has the disadvantage of setting
>> HOME for all Cygwin users and it won't work for 'ssh', if you ever
>> decide to use that.  An alternative that should do the same thing
>> and avoid the problems I mentioned above is to use the '-p' flag
>> to 'mkpasswd'.  If you're concerned that you'll forget to add the
> 
> I add now the set HOME line in cygwin.bat again and remove export HOME line
> in etc/profile

I was actually suggesting that you not set "HOME" in 'cygwin.bat'.

> when i choose -p /cygdrive/e/amiga/amidevcpp/
> 
> then the dirs in passwd files are
> 
> /cygdrive/e/amiga/amidevcpp/administrator
> /cygdrive/e/amiga/amidevcpp/bernd
> /cygdrive/e/amiga/amidevcpp/aspnet
> /cygdrive/e/amiga/amidevcpp/gast
> /cygdrive/e/amiga/amidevcpp/hilfeassistent
> 
> i create all dirs by hand and do 
> mkpasswd -l -p /cygdrive/e/amiga/amidevcpp/
> 
> again.
> 
> I start a new bash and problem is same slow.homedir is in
> /cygdrive/e/amiga/amidevcpp
> then i remove the set HOME line in cygwin.bat again.start is fast
> 
> now there come a errror about group, passwd and some files are copy.
> i am not sure what i exactly do, wy it work after the error, but now the
> homepath is in e/amiga/amidevcpp/bernd 
> dir and start fast.

I can't help you with the error you speak of because I don't know what the
problem is or when you see it.  You'll need to be more explicit if this is
a problem that you want the list to help diagnose.

> also i can now add the set HOME=e/amiga/amidevcpp/bernd line in cygwin.bat
> and it work fast
> 
> But when i now change the set HOME line in cygwin.bat to another dir, then
> it work slow.
> So on my system, it is impossible to change the HOME path in cygwin.bat.if
> you have a winxp with SP3 maybe you can try out what happen on your
> system.maybe it is not good to change windows HOME, maybe the WLAN driver
> use HOME.
> i have a devolo wlan USB stick

If any driver is using an environment variable in its operation, it is
seriously broken.  But I believe you're drawing the wrong conclusion here.

> or maybe add to FAQ in slowdown entry, that there can be problems that on
> some system set HOME in cygwin.bat cause slowdown.
> also that problems can occur if the windows home dir have . in name and
> passwd should create with mkpasswd -l -p /cygdrive/drive......

'.' as a directory in a path signifies the "current" directory.  You don't
want to specify this for any path in your '/etc/passwd' file.  As for the
slowdown you experienced, I explained earlier in this thread why that
happened.  It has nothing to do with setting HOME but rather has to do with
the directory you set as your home and the access you have to it.

> i also dont be sure if the installer always create on install new correct
> passwd file and seetings.

The postinstall script that's responsible for creating the '/etc/passwd' and
'/etc/group' files will only create these files if they don't already exist.

> i delete my passwd file 1 try before i change the local package path to same
> as home path(i choose in installer), but the passwd file is not recreate. 

Don't download all the packages to the same directory as you plan to use to
install Cygwin.

> maybe a option in installer(by default not active) recreate allways all
> setting/passwd files is usefull ?

No, that shouldn't be necessary AFAICS.


-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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