delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/09/04/10:35:24

X-Spam-Check-By: sourceware.org
X-IronPort-AV: E=Sophos;i="4.20,207,1186372800"; d="scan'208";a="1126453"
Subject: Re: Help with mount..
From: Reid Thompson <Reid DOT Thompson AT ateb DOT com>
Reply-To: Reid DOT Thompson AT ateb DOT com
To: gms5002 <gms5002 AT gmail DOT com>
Cc: cygwin AT cygwin DOT com
In-Reply-To: <12478754.post@talk.nabble.com>
References: <12471295 DOT post AT talk DOT nabble DOT com> <fbircg$rvh$1 AT sea DOT gmane DOT org> <12478754 DOT post AT talk DOT nabble DOT com>
Date: Tue, 04 Sep 2007 10:34:15 -0400
Message-Id: <1188916455.20572.26.camel@jhereg>
Mime-Version: 1.0
X-Mailer: Evolution 2.11.91
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

echo 'alias cdbar="cd /cygdrive/foo/bar"' >> .bashrc

On Tue, 2007-09-04 at 07:03 -0700, gms5002 wrote:
> Thanks for the reply Steve.   What I am actually trying to achieve here is to
> be able to access a certain folder (say C:\foo\bar) by typing cd /bar at the
> command prompt.
> 
> 
> 
> Steve Holden wrote:
> > 
> > gms5002 wrote:
> >> Hi - I am having a problem getting mount to work in cygwin.  Here is what
> >> I
> >> am trying to do:
> >> 
> >> Greg AT CHICKEN ~/test
> >> $ pwd
> >> /home/Greg/test
> >> 
> >> Greg AT CHICKEN ~/test
> >> $ mkdir foo
> >> 
> >> Greg AT CHICKEN ~/test
> >> $ mkdir bar
> >> 
> >> Greg AT CHICKEN ~/test
> >> $ vi bar/test
> >> 
> >> Greg AT CHICKEN ~/test
> >> $ ls -l bar
> >> total 0
> >> -rw-r--r-- 1 Greg None 0 Sep  3 23:48 test
> >> 
> >> Greg AT CHICKEN ~/test
> >> $ mount bar foo
> >> mount: foo: Invalid argument
> >> 
> >> Greg AT CHICKEN ~/test
> >> $ mount /home/Greg/test/bar/ /home/Greg/test/foo/
> >> mount: /home/Greg/test/foo/: Invalid argument
> >> 
> >> 
> >> any ideas?
> > 
> > Well you could start by explaining what you think those mounts should 
> > have done. Are you trying for the equivalent of a loopback mount?
> > 
> > Remember that mount is one of the utilities that differs substantially 
> > from its Linux/Unix counterpart. The man page starts:
> > 
> > NAME
> >         mount  -  Display  information  about  mounted  filesystems, or 
> > mount a
> >         filesystem
> > 
> > SYNOPSIS
> >         mount [OPTION] [<win32path> <posixpath>]
> > 
> > but it doesn't give any specifics of what a win32path is supposed to be 
> > and whether relative paths constitute acceptable win32 paths. In 
> > particular the section that reads
> > 
> > """
> > Limitations:  there  is  a  hard-coded limit of 30 mount points.  Also,
> > although you can mount to pathnames that do not start with  "/",  there
> > is no way to make use of such mount points.
> > """
> > 
> > should give you some clue that what you are trying to achieve should 
> > probably be done some way other than what you have tried so far.
> > 
> > regards
> >   Steve
> > -- 
> > Steve Holden        +1 571 484 6266   +1 800 494 3119
> > Holden Web LLC/Ltd           http://www.holdenweb.com
> > Skype: holdenweb      http://del.icio.us/steve.holden
> > --------------- Asciimercial ------------------
> > Get on the web: Blog, lens and tag the Internet
> > Many services currently offer free registration
> > ----------- Thank You for Reading -------------
> > 
> > 
> > --
> > 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/
> > 
> > 
> > 
> 

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