This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Regarding Problems with the mount command inside a script
- From: Brian Dessent <brian at dessent dot net>
- To: cygwin at cygwin dot com
- Date: Wed, 28 Feb 2007 04:13:31 -0800
- Subject: Re: Regarding Problems with the mount command inside a script
- References: <BAY137-F171D75B0C333613FBA3E81AA810@phx.gbl>
- Reply-to: cygwin at cygwin dot com
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/