delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/30/01:46:48

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <E950EF47BA67A548A32EFCD0B90697E8301C61@za-exchange.za.mosaicsoftware.net>
From: Jean Jordaan <Jean AT mosaicsoftware DOT com>
To: "'cygwin AT sources DOT redhat DOT com'" <cygwin AT sources DOT redhat DOT com>
Subject: newbie Q: umount?
Date: Tue, 30 Jan 2001 08:43:25 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)

Hi people

I have a very basic question. Pointers would be appreciated. First,
though: cygwin gets me through the day. I live in bash and Vim. Thank
you all.

The short version: 

How do I unmount a mount? It doesn't look like there is much
documentation here .. 
  $ apropos mount
  sleep (1)            - delay for a specified amount of time
  $ apropos umount
  umount: nothing appropriate

The long version:

I have not fiddled with cygwin's mounts before, and just put up with
  $ cd c: 
whenever I wanted to browse the Windows hierarchy. However, this
becomes irksome when wanting to launch a program using an absolute
path (such as 
  $ c:/programs/htmlpp/htmlpp
) because completion doesn't work after the c:. To get completion,
I have to 
  $ /cygdrive/c/...
and to me this feels a bit counterintuitive and utilitarian. It also
balks at 'cygwin.bat' and 'cygwin.ico' before completing to '/cygdrive'. 

So today I said
  $ mount -s c:/ /c
and got a message saying 'mount: warning - /c does not exist.'
Then I did 
  $ mount
  Device              Directory           Type         Flags
  c:\cygwin\bin       /usr/bin            system       binmode
  c:\cygwin\lib       /usr/lib            system       binmode
  c:\cygwin           /                   system       binmode
  c:                  /c                  system       textmode
Argh, I forgot to set binmode! I want '/c' to be binmode. So I do
  $ umount /c
and
  $ umount -s /c
and get
  umount: /c: No such file or directory
  $ mount
  Device              Directory           Type         Flags
  c:\cygwin\bin       /usr/bin            system       binmode
  c:\cygwin\lib       /usr/lib            system       binmode
  c:\cygwin           /                   system       binmode
  c:                  /c                  system       textmode
Huh? Why isn't '/c' gone?
  $ mkdir /c
  mkdir: cannot make directory `/c': File exists
Huh?? How can '/c' cause both 'No such file or directory' and 'File
exists'? Now I do
  $ mount c: /d
  mount: warning - /d does not exist.
  $ mount
  Device              Directory           Type         Flags
  c:\cygwin\bin       /usr/bin            system       binmode
  c:\cygwin\lib       /usr/lib            system       binmode
  c:\cygwin           /                   system       binmode
  c:                  /d                  user         textmode
  c:                  /c                  system       textmode
  $ umount /d
  $ mount
  Device              Directory           Type         Flags
  c:\cygwin\bin       /usr/bin            system       binmode
  c:\cygwin\lib       /usr/lib            system       binmode
  c:\cygwin           /                   system       binmode
  c:                  /c                  system       textmode
So how come this process works for '/d' and not for '/c'?

Then I became reckless, and deleted the 
  HKLM|Software|Cygnus Solutions|Cygwin|mounts v2|/c
registry key, and quit and restarted bash. Now the registry key has
gone, but the mount point remains! It seems I'm completely missing
something basic. Could someone please put me on the right track?

Regards,
-- 
Jean Jordaan   --    technical writer    --    Mosaic Software

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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