X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <48D7C9C6.6000607@cygwin.com>
Date: Mon, 22 Sep 2008 12:37:26 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
Reply-To: cygwin@cygwin.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@cygwin.com
Subject: Re: slow filesystem access mc start take sometimes 1 sec sometimes       upto 7 sec or sometimes more
References: <yam11221.1796.281386776@mail.gmx.net>
In-Reply-To: <yam11221.1796.281386776@mail.gmx.net>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Bernd Roesch wrote:
> Hello Larry
> 
> On 21.09.08, you wrote:
> 
> thanks to your help, i find now out whats problem.it seem not allowed to
> change
> in the cygwin.bat file the HOME dir.
> 
> here it is suggestet to do.also on other pages.so i first get not in mind,
> that this is problem.
> 
> http://www.jabadaw.co.uk/maverik/cygwin.html
> 
> """""
> Using wordpad, create a .bat file for starting cygwin:
> 
> .....
> SET HOME=C:\CYGWIN\HOME\KEATESM
> SET CYGWIN=tty binmode
> CD %HOME%
> bash
> """""
> 
> Because i dont like HOME in my home dir on drive c, i add the line in
> cygwin.bat
> 
> set HOME=E:\amiga\amidevcpp
> 
> I use the dir i install cygwin, and it is no windows homedir. 
> 
> and when i remove this line in cygwin.bat , cygwin work always fast.but
> because my etc dir is not there, i add in etc/profile a line export
> HOME=e:/amiga/amidevcpp
> 
> then all work ok.i dont want now my hand modified passwd file and do
> 
> mkpasswd -l > etc/passwd 
> 
> the passwd is create on correct place.
> After bash restart, bash, mc etc all work fast now.
> 
> 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
flag and its option text if you run 'mkpasswd' again, you can always
create a mkpasswd alias that includes what you want/need.

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

