This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Error creating files in /tmp
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Alastair Burnett <ally_burnett at yahoo dot co dot uk>
- Cc: cygwin at cygwin dot com
- Date: Mon, 24 Oct 2005 11:15:50 -0400 (EDT)
- Subject: Re: Error creating files in /tmp
- References: <20051023194156.55971.qmail@web25702.mail.ukl.yahoo.com>
- Reply-to: cygwin at cygwin dot com
On Sun, 23 Oct 2005, Alastair Burnett wrote:
> Hi,
>
> I have an 'interesting' problem - we have some software tools which
> require cygwin. For various reasons, we can't install cygwin on a local
> machine - all that the tools require is the cygwin1.dll and bash.exe, in
> theory at least.
>
> The tools and cygwin dependancies are all running from a mapped network
> drive - say f:\tools\bin.
>
> Now, when I run the tools from another mapped drive - say a g: drive, I
> initially got the error about not being able to find a /tmp directory,
> so I simply did 'mkdir /tmp' and got past this. However, now the tools
> bail out because it can't create a file in /tmp - which is the problem
> I'm having. Anyone got any idea how to get round this - as I mention, we
> can't do a full install of cygwin on the local machine, which would
> solve the problem quite easily.
>
> If I start a bash shell (i.e. from f:\tools\bin) then I'm able to create
> files without any problem - so I'm not sure why I get this error when
> using the tools I'm working with ...
As Brian pointed out, you don't have a mount table. AFAIK, for Windows to
be usable at all, at least the user registry should be writeable, so
nothing prevents you from adding user mounts. Try
mount -u -b f:/tools /
mount -u -b f:/tools/bin /usr/bin
mount -u -b f:/tools/lib /usr/lib
mount -u -b c:/temp /tmp
(the first three are needed for Cygwin to function properly, the last one
can be changed to point to a local directory that you have write access
to, unless you want a shared /tmp).
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/