delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/12/02/15:17:35

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <3846D406.1B06BDBD@veritas.com>
Date: Thu, 02 Dec 1999 12:18:14 -0800
From: Bob McGowan <Robert DOT McGowan AT veritas DOT com>
Organization: VERITAS Software
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: earnie_boyd AT yahoo DOT com, cygwin AT sourceware DOT cygnus DOT com
Subject: Re: having trouble mounting Win32 drives to Cygwin paths
References: <19991202184241 DOT 4486 DOT qmail AT web117 DOT yahoomail DOT com>

Earnie Boyd wrote:
> 
> --- Scott A Sumner <sasumner AT juno DOT com> wrote:
> > I just installed Cygwin 1.0 from the CD and I'm having trouble mounting
> > Win32 drives to
> > Cygwin paths.
> >
> > Following the "How can I access other drives?" topic in the faq, I do
> > this:
> >
> >         bash-2.03$ mkdir /c
> >         bash-2.03$ mount c:/ /c
> 
>           bash-2.03$ mount 'c:\' /c
> 
> The first parameter to mount must be in DOS notation.

Earnie, I don't understand.  I have done this (many times) using the
forward slash.  I believe the documentation also says you can do it this
way (however, I have not verified this yet).

The following is copied from a bash session in a DOS box window:

[ramjr]$ mount
Device              Directory           Type         Flags
c:\usr\bob          /home/bob           user         binmode
C:\Cygwin           /                   system       binmode
[ramjr]$ mkdir -p /drv/d
[ramjr]$ mount -b d:/ /drv/d
[ramjr]$ mount
Device              Directory           Type         Flags
c:\usr\bob          /home/bob           user         binmode
C:\Cygwin           /                   system       binmode
d:                  /drv/d              user         binmode
[ramjr]$ ls /drv/d
RECYCLED
[ramjr]$ ls //d
RECYCLED
[ramjr]$

I was curious about the "mount" output listing just "d:" for the Device
column, so I unmounted it and did the following:

[ramjr]$ ls //d
RECYCLED
[ramjr]$ mkdir //d/tst
[ramjr]$ ls //d
RECYCLED  tst
[ramjr]$ mount -b d:/tst /drv/d
[ramjr]$ mount
Device              Directory           Type         Flags
c:\usr\bob          /home/bob           user         binmode
C:\Cygwin           /                   system       binmode
d:\tst              /drv/d              user         binmode
[ramjr]$ ls /drv/d
[ramjr]$ touch //d/tst/new
[ramjr]$ ls /drv/d
new
[ramjr]$

The software changes the path in this case, replacing the forward slash
with a back slash (UNIX -> DOS format).  Perhaps the problem relates to
the first example, where the DOS Device name does not contain a
backslash?

> =====
> Earnie Boyd <mailto:earnie_boyd AT yahoo DOT com>
> Cygwin Newbies, please visit
> <http://www.freeyellow.com/members5/gw32/index.html>
> __________________________________________________
> Do You Yahoo!?
> Thousands of Stores.  Millions of Products.  All in one place.
> Yahoo! Shopping: http://shopping.yahoo.com
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

-- 
Bob McGowan
Staff Software Quality Engineer
VERITAS Software
rmcgowan AT veritas DOT com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019