This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

newbie Q: umount?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]