This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Regarding Problems with the mount command inside a script


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]