Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Hannu E K Nevalainen" To: Subject: RE: mount and ln commands Date: Sun, 16 Nov 2003 13:59:08 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 > 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 above) 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. You 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 --END OF MESSAGE-- -- 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/