delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/02/28/07:15:25

X-Spam-Check-By: sourceware.org
Message-ID: <45E571EB.243D658B@dessent.net>
Date: Wed, 28 Feb 2007 04:13:31 -0800
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Regarding Problems with the mount command inside a script
References: <BAY137-F171D75B0C333613FBA3E81AA810 AT phx DOT gbl>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l1SCFE2G023540

Rakesh Kumar wrote:

> I'm running a command inside Cygwin
> 
> mount -b /cygdrive/c/cygwin/rakesh /cygdrive/c/cygwin/rakesh/usr/cygnus
> 
> But I get the following error…
> 
> mount: /cygdrive/c/cygwin/rakesh/usr/cygnus: Invalid argument
> 
> Is the mount command wrongly given??

Yes.  Take a look at "mount --help".  The first argument is a win32 path
-- that is the whole point of mount table entries, to map a win32 path
to a POSIX path.  And you should not be using /cygdrive like that. 
Assuming that c:/cygwin is mounted as /, then you probably want
something like

mount c:/cygwin/rakesh /usr/cygnus

Brian

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