mkdir: cannot create directory `/cygdrive/u': No such file or directory

Larry Hall (Cygwin) reply-to-list-only-lh@cygwin.com
Fri Nov 17 22:29:00 GMT 2006


PoWah Wong wrote:
>     * From: "Larry Hall (Cygwin)" <reply-to-list-only-lh at cygwin dot com>
>     * To: cygwin at cygwin dot com
>     * Date: Fri, 17 Nov 2006 12:04:47 -0500
>     * Subject: Re: mkdir: cannot create directory `/cygdrive/u': No such file or directory
>     * References: <20061117163224.83187.qmail@web56308.mail.re3.yahoo.com>
>     * Reply-to: cygwin at cygwin dot com
> 
> PoWah Wong wrote:
> 
>     After clicking the Cygwin icon on my windows XP desktop, this message appeared:
> 
>     mkdir: cannot create directory `/cygdrive/u': No such file or directory
>     Copying skeleton files.
>     These files are for the user to personalise
>     their cygwin experience.
> 
> 
>     These will never be overwritten.
> 
>     /usr/bin/install: cannot create directory /cygdrive/u: No such file or directory
>     /usr/bin/install: cannot create directory /cygdrive/u: No such file or directory
>     /usr/bin/install: cannot create directory /cygdrive/u: No such file or directory
>     bash: cd: /cygdrive/u: No such file or directory
> 
> 
>     powah@ROSE /etc/skel
> 
>     $
> 
>     Somehow Cygwin depend on the network drive U is connected.
>     Is there a way to change the dependence from drive U to drive C?
> 
> 
> 
> 1. Change your Windows domain user to have another "home" directory.
> 
> 2. Edit your '/etc/passwd' file to point to the directory you want
>    to be your home.
> 
> 
> 3. Recreate your '/etc/passwd' file telling it to use a different
>    path for your home (see 'man mkpasswd' for details on switches to
>    do this).
> 
> 
> Only (1) is transparent across all invocations of 'mkpasswd'.
> 
> 
> --
> Larry Hall                              http://www.rfk.com
> RFK Partners, Inc.                      (508) 893-9779 - RFK Office
> 216 Dalton Rd.                          (508) 893-9889 - FAX
> Holliston, MA 01746
> 
> ----------------------------------------------------------------------------------------------------------------------------------
> 
> I use Windows XP Home.
> How to change Windows domain user to have another "home" directory?


You have to talk to you domain admin.


> I added the "HOME" and "HOMEDRIVE" environment variables by the "Control Panel", the message "/usr/bin/install: cannot create directory /cygdrive/u: No such file or directory" disappeared.
> However, it still want to use /cygdrive/u for ssh.
> 
> $ ssh root@172.20.11.200
> Could not create directory '/cygdrive/u/.ssh'.


Cygwin will only look at $HOME.  $HOMEDRIVE is extraneous for Cygwin.

'ssh' can't look at environment variables.  It's a chicken-and-egg thing.
That's why I recommended making changes to your '/etc/passwd' file.  'ssh'
only looks at the home directory mentioned there.


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

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



More information about the Cygwin mailing list