This is the mail archive of the 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]
Other format: [Raw text]

RE: mount and ln commands

> From: Erica Ramsey
> Sent: Saturday, November 15, 2003 7:25 PM

> I am having trouble mounting a linking to a directory. The mounted file
> doesn't go to "/" as I specified in the mount command instead it goes to
> /cygdrive/c/Documents\ and\ Settings/erica. What am I doing
> wrong? This is
> what I do:
> $ mount -tf "c:\PalmDev" /PalmDev
> $ ln -s "C:\Palm OS 5 SDK (68K) R3\Palm OS Support" /PalmDev/sdk5r3
> ln: creating symbolic link `/PalmDev/sdk5r3' to `C:\\Palm OS 5 SDK (68K)
> R3\\Palm OS Support': No such file or directory

IMO, use Windows/DOS style paths as little as possible, they're cumbersome
to use correctly to say the least. (I've not tried what you're attempting

The first stone to stumble on; "\" has to be escaped when you enter it at
the bash
prompt; only enclosing your typing withing single quotes avoids this need.
have this problem at least with the ln -s command above.

HELP: Use "/bin/cygpath" for conversion to from DOS/Win paths.

> $ ls /
> Packages  cygwin.bat   cygwin.ico  lib   tmp  var
> bin       cygwin.bat~  etc         sbin  usr
> ** No /PalmDev

 Mount doesn't add this, you will have to add the "mount point" yourself
if you wish it to be visible. (i.e. $ mkdir /PalmDev)

> $ ls /PalmDev
> ls: /PalmDev: No such file or directory

 Hmm? Did you $ mkdir C:\\PalmDev - as written in the mount command above?

> $ ls ../Documents\ and\ Settings/erica
> Application Data  My Documents  Recent      _viminfo
> ntuser.dat.LOG
> Cookies           NTUSER.DAT    SendTo      _vimrc              ntuser.ini
> Desktop           NetHood       Start Menu  _vimrc~
> plugin131.trace
> Favorites         PalmDev <<== It went here!!!
> $ mount
> C:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type system
> (binmo
> de)
> C:\cygwin\bin on /usr/bin type user (binmode)
> C:\cygwin\lib on /usr/lib type user (binmode)
> c:\PalmDev on /PalmDev type system (textmode) <<== ??????
> C:\cygwin on / type user (binmode)
> c: on /cygdrive/c type user (binmode,noumount)
> $ cd /PalmDev
> bash: cd: /PalmDev: No such file or directory
> $ umount /PalmDev

This test ran on Win98, but should be the same on any Win:

$ p=$(cygpath -u "C:\PalmDev"); mkdir $p; ls -land $p
drwxr-xr-x    2 500             0 Nov 16 13:45 /cygdrive/c/PalmDev/

$ mount -tf "C:\PalmDev" /PalmDev

$ echo >/PalmDev/TEST "I'm here!"

$ cat /PalmDev/TEST
I'm here!

$ ls -ld / | grep PalmDev


/Hannu E K Nevalainen, Mariefred, Sweden


Unsubscribe info:
Problem reports:

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