Regarding Problems with the mount command inside a script

Brian Dessent brian@dessent.net
Wed Feb 28 12:15:00 GMT 2007


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/



More information about the Cygwin mailing list