delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/12/10:51:42

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Matthew Woehlke <mw_triad AT users DOT sourceforge DOT net>
Subject: Re: when to use a ln or a mount
Date: Mon, 12 Mar 2007 09:49:33 -0600
Lines: 34
Message-ID: <et3sqe$vdc$1@sea.gmane.org>
References: <Xns98F17521F7E4Bzzappergmailcom AT 80 DOT 91 DOT 229 DOT 5>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.4.0
In-Reply-To: <Xns98F17521F7E4Bzzappergmailcom@80.91.229.5>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

zzapper wrote:
> Hi,
> In my confused mind ln and mount seem to achieve the same thing.
> In my case I want to have an easy to type path(s) to my old pc
> 
> so I typed:-
> 
> mount -f -u -b "//dell25/c/" "/o"
> 
> but I also tested
> 
> ln -s //dell25/c/ /old
> 
> In the Cygwin context does one method have any advatanges over the over?

One is probably faster (meaning how long it takes to resolve the Cygwin 
path to one Windows understands), though I couldn't tell you which. Also 
unless you are running configure scripts, or doing something else that 
needs to do such conversions thousands of times, quickly, you won't 
notice a difference.

In the UNIX world the convention is to use symlinks often and binds 
infrequently (although I wouldn't consider this particular case a 
"bind"). There is also a limit to the number of mounts you can do on Cygwin.

In this case, what you are doing is effective to mounting a remote file 
system, so "mount" would be traditional (and also your only choice on 
most UNIX's, which don't understand UNC paths). However, as you've 
noticed, either one works on Cygwin. :-)

-- 
Matthew
Emacs is a nice OS - but it lacks a good text editor.
That's why I am using Vim.  -- Anonymous


--
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/

- Raw text -


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