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

Igor Pechtchanski pechtcha@cs.nyu.edu
Sat Oct 8 04:06:00 GMT 2005


On Fri, 7 Oct 2005, Todd Shoenfelt wrote:

> I've recently installed Cygwin to my XP machine for
> the first time.  When I launch the bash window, I get:
>
> <snip>
> mkdir: cannot create directory `/cygdrive/h': 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/h': No such file or directory
> /usr/bin/install: cannot create directory `/cygdrive/h': No such file or directory
> /usr/bin/install: cannot create directory `/cygdrive/h': No such file or directory
> bash: cd: /cygdrive/h: No such file or directory
>
> todd@host /etc/skel
> </snip>
>
> It looks like Cygwin is trying to store some session data.  I do end up
> getting a functioning command line, but the 'h' directory isn't created.
> Cygwin is installed here: C:/cygwin/cygdrive.  I've done 'mkdir
> C:/cygwin/cygdrive/h', but the error persists.  How do I get these
> messages to go away?

First, this is a general Cygwin issue, and has nothing to do with
Cygwin/X.  I'm redirecting this reply to the main Cygwin list -- please
remove <cygwin-xfree at cygwin dot com> from further discussion.  Note
that the cygwin-xfree list adds an extra Reply-To, so you'll have to
manually remove it if you get this message via that list.

Whenever you first run the Cygwin shell as a new user, some skeleton files
are copied into your home directory automatically.  The home directory (or
$HOME in Unix-speak) is determined according to the rules described at
<http://cygwin.com/faq/faq-nochunks.html#faq.setup.home>.

/cygdrive is a virtual directory, which is the parent directory for all
Windows drive letters.  IOW, even though "/" is "C:/cygwin", "/cygdrive/h"
is NOT "C:/cygwin/cygdrive/h", it's "H:/".

For some reason, Cygwin thinks your $HOME is /cygdrive/h (or "H:\").  If
you do have the HOME environment variable set in Windows, that could
explain your problem.  If you don't have the "H:" drive, simply unset the
HOME variable in the Windows environment -- it'll be set appropriately by
Cygwin.  If you do have the "H:" drive occasionally (e.g., it's a network
drive), and some other program needs this setting of the HOME environment
variable, you can edit /cygwin.bat to unset HOME before starting the
Cygwin shell.

HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

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