public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: tar a filesystem outside of /cygwin
@ 2000-12-12  9:35 Earnie Boyd
  2000-12-12 10:31 ` John F. Davis
  0 siblings, 1 reply; 19+ messages in thread
From: Earnie Boyd @ 2000-12-12  9:35 UTC (permalink / raw)
  To: John F. Davis, cygwin

--- "John F. Davis" <davis@skink.net> wrote:
> Hello
> 
> I am trying to tar a filesystem outside of /cygwin.  I saw in the faq
> the note about not installing cygwin in the c:/ direcotry.  Copying the
> filesystem outside /cygwin to /cygwin so I can do a tar is not an option.
> This is a rather large filesystem I am trying to tar.
> 
> Any other ideas?
> 

If I have c:\cygwin and c:\foo and I want to access c:\foo with the Cygwin
structure I would simply
  mkdir /foo
  mount [-b] [-s] c:/foo /foo
  tar -cf foo.tar /foo
:).  If you're not familiar with the mount command please reference the
documentation at http://cygwin.com .

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd@yahoo.com

---         < http://earniesystems.safeshopper.com >         ---
--- Cygwin: POSIX on Windows < http://gw32.freeyellow.com/ > ---
---   Minimalist GNU for Windows < http://www.mingw.org/ >   ---

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: tar a filesystem outside of /cygwin
  2000-12-12  9:35 tar a filesystem outside of /cygwin Earnie Boyd
@ 2000-12-12 10:31 ` John F. Davis
  2000-12-12 10:39   ` Christopher Faylor
  2000-12-12 10:41   ` Larry Hall (RFK Partners, Inc)
  0 siblings, 2 replies; 19+ messages in thread
From: John F. Davis @ 2000-12-12 10:31 UTC (permalink / raw)
  To: cygwin

On Tue, Dec 12, 2000 at 09:35:19AM -0800, Earnie Boyd wrote:
> --- "John F. Davis" <davis@skink.net> wrote:
> > Hello
> > 
> > I am trying to tar a filesystem outside of /cygwin.  I saw in the faq
> > the note about not installing cygwin in the c:/ direcotry.  Copying the
> > filesystem outside /cygwin to /cygwin so I can do a tar is not an option.
> > This is a rather large filesystem I am trying to tar.
> > 
> > Any other ideas?
> > 
> 
> If I have c:\cygwin and c:\foo and I want to access c:\foo with the Cygwin
> structure I would simply
>   mkdir /foo
>   mount [-b] [-s] c:/foo /foo
>   tar -cf foo.tar /foo
> :).  If you're not familiar with the mount command please reference the
> documentation at http://cygwin.com .
> 
> Cheers,
> 
> =====
> Earnie Boyd
> mailto:earnie_boyd@yahoo.com

Hello

That does it.  Here is my setup.

/cygwin is where cygnus is installed.
/progs is where I have a large filesystem I want to backup with tar.

mkdir /progs
mount c:/progs /progs
and then I can tar it.

Any particular reason why I can't mount a filesystem in /home?
i.e., cd /home/davis
mkdir progs
mount c:/progs /progs
The mount says, "mount: progs: Invalid argument


John

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: tar a filesystem outside of /cygwin
  2000-12-12 10:31 ` John F. Davis
@ 2000-12-12 10:39   ` Christopher Faylor
  2000-12-12 10:41   ` Larry Hall (RFK Partners, Inc)
  1 sibling, 0 replies; 19+ messages in thread
From: Christopher Faylor @ 2000-12-12 10:39 UTC (permalink / raw)
  To: cygwin

On Tue, Dec 12, 2000 at 01:30:37PM -0500, John F. Davis wrote:
>On Tue, Dec 12, 2000 at 09:35:19AM -0800, Earnie Boyd wrote:
>> --- "John F. Davis" <davis@skink.net> wrote:
>> > Hello
>> > 
>> > I am trying to tar a filesystem outside of /cygwin.  I saw in the faq
>> > the note about not installing cygwin in the c:/ direcotry.  Copying the
>> > filesystem outside /cygwin to /cygwin so I can do a tar is not an option.
>> > This is a rather large filesystem I am trying to tar.
>> > 
>> > Any other ideas?
>> > 
>> 
>> If I have c:\cygwin and c:\foo and I want to access c:\foo with the Cygwin
>> structure I would simply
>>   mkdir /foo
>>   mount [-b] [-s] c:/foo /foo
>>   tar -cf foo.tar /foo
>> :).  If you're not familiar with the mount command please reference the
>> documentation at http://cygwin.com .
>> 
>> Cheers,
>> 
>> =====
>> Earnie Boyd
>> mailto:earnie_boyd@yahoo.com
>
>Hello
>
>That does it.  Here is my setup.
>
>/cygwin is where cygnus is installed.
>/progs is where I have a large filesystem I want to backup with tar.
>
>mkdir /progs
>mount c:/progs /progs
>and then I can tar it.
>
>Any particular reason why I can't mount a filesystem in /home?
>i.e., cd /home/davis
>mkdir progs
>mount c:/progs /progs
>The mount says, "mount: progs: Invalid argument

That would indicate that you've already mounted '/progs'.
Just type 'mount' and you should see that.

To rectify, either use the '-f' switch to mount or 'umount /progs'
first.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: tar a filesystem outside of /cygwin
  2000-12-12 10:31 ` John F. Davis
  2000-12-12 10:39   ` Christopher Faylor
@ 2000-12-12 10:41   ` Larry Hall (RFK Partners, Inc)
  2000-12-12 10:58     ` Christopher Faylor
  1 sibling, 1 reply; 19+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2000-12-12 10:41 UTC (permalink / raw)
  To: John F. Davis, cygwin

At 01:30 PM 12/12/2000, John F. Davis wrote:
>Any particular reason why I can't mount a filesystem in /home?
>i.e., cd /home/davis
>mkdir progs
>mount c:/progs /progs
>The mount says, "mount: progs: Invalid argument

The directory you mount to must exist where you tell mount it is.  In your
example, unless "/" == "/home/davis", you don't have a progs where you're 
telling mount you do.  That'd be the problem...






Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: tar a filesystem outside of /cygwin
  2000-12-12 10:41   ` Larry Hall (RFK Partners, Inc)
@ 2000-12-12 10:58     ` Christopher Faylor
  2000-12-12 11:02       ` John F. Davis
  2000-12-12 11:43       ` Gerrit P. Haase
  0 siblings, 2 replies; 19+ messages in thread
From: Christopher Faylor @ 2000-12-12 10:58 UTC (permalink / raw)
  To: cygwin

On Tue, Dec 12, 2000 at 01:38:35PM -0500, Larry Hall (RFK Partners, Inc) wrote:
>At 01:30 PM 12/12/2000, John F. Davis wrote:
>>Any particular reason why I can't mount a filesystem in /home?
>>i.e., cd /home/davis
>>mkdir progs
>>mount c:/progs /progs
>>The mount says, "mount: progs: Invalid argument
>
>The directory you mount to must exist where you tell mount it is.  In your
>example, unless "/" == "/home/davis", you don't have a progs where you're 
>telling mount you do.  That'd be the problem...

Actually, after digging around in the code, it looks like the most
likely scenario in which you'd get an "Invalid argument" is if you
typed something like:

mount c:/progs progs
               ^
               no leading slash

If you don't specify an absolute path, mount will complain.

It is not necessary for either of mounts arguments to exist, but they
have to be fully qualified windows and unix paths respectively.

So, when I suggested that the directory was already mounted, I was wrong.
And, the inference that the directory has to exist is also wrong.

What you want to do in the above scenario is:

mount c:\whereever\home\really\is\home\davis\progs /progs

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: tar a filesystem outside of /cygwin
  2000-12-12 10:58     ` Christopher Faylor
@ 2000-12-12 11:02       ` John F. Davis
  2000-12-12 11:43       ` Gerrit P. Haase
  1 sibling, 0 replies; 19+ messages in thread
From: John F. Davis @ 2000-12-12 11:02 UTC (permalink / raw)
  To: cygwin

On Tue, Dec 12, 2000 at 01:57:58PM -0500, Christopher Faylor wrote:
> On Tue, Dec 12, 2000 at 01:38:35PM -0500, Larry Hall (RFK Partners, Inc) wrote:
> >At 01:30 PM 12/12/2000, John F. Davis wrote:
> >>Any particular reason why I can't mount a filesystem in /home?
> >>i.e., cd /home/davis
> >>mkdir progs
> >>mount c:/progs /progs
> >>The mount says, "mount: progs: Invalid argument
> >
> >The directory you mount to must exist where you tell mount it is.  In your
> >example, unless "/" == "/home/davis", you don't have a progs where you're 
> >telling mount you do.  That'd be the problem...
> 
> Actually, after digging around in the code, it looks like the most
> likely scenario in which you'd get an "Invalid argument" is if you
> typed something like:
> 
> mount c:/progs progs
>                ^
>                no leading slash
> 
> If you don't specify an absolute path, mount will complain.

Yeap.  

I said mount c:/progs /progs.  I meant 
mount c:/progs progs.
Also, progs was not already mounted.
So, your look at the source confirmed it.  My hat is off to you.
Thanks.

John
> 
> It is not necessary for either of mounts arguments to exist, but they
> have to be fully qualified windows and unix paths respectively.
> 
> So, when I suggested that the directory was already mounted, I was wrong.
> And, the inference that the directory has to exist is also wrong.
> 
> What you want to do in the above scenario is:
> 
> mount c:\whereever\home\really\is\home\davis\progs /progs
> 
> cgf
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com

-- 
We host web sites: http://www.skink.net
buy my stuff:
http://cgi6.ebay.com/aw-cgi/ebayISAPI.dll?ViewListedItemsLinkButtons&userid=davis@skink.net

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: tar a filesystem outside of /cygwin
  2000-12-12 10:58     ` Christopher Faylor
  2000-12-12 11:02       ` John F. Davis
@ 2000-12-12 11:43       ` Gerrit P. Haase
       [not found]         ` <20001212144941.A13469@skink.net>
  2000-12-12 12:58         ` Christopher Faylor
  1 sibling, 2 replies; 19+ messages in thread
From: Gerrit P. Haase @ 2000-12-12 11:43 UTC (permalink / raw)
  To: cygwin

<12 Dec 2000, 13:57 Uhr wars, als Christopher Faylor folgendes schrub:>
< Re: tar a filesystem outside of /cy >

> On Tue, Dec 12, 2000 at 01:38:35PM -0500, Larry Hall (RFK Partners, Inc) wrote:
> >At 01:30 PM 12/12/2000, John F. Davis wrote:
> >>Any particular reason why I can't mount a filesystem in /home?
> >>i.e., cd /home/davis
> >>mkdir progs
> >>mount c:/progs /progs
> >>The mount says, "mount: progs: Invalid argument
> >
> >The directory you mount to must exist where you tell mount it is.  In your
> >example, unless "/" == "/home/davis", you don't have a progs where you're 
> >telling mount you do.  That'd be the problem...
> 
> Actually, after digging around in the code, it looks like the most
> likely scenario in which you'd get an "Invalid argument" is if you
> typed something like:
> 
> mount c:/progs progs
>                ^
>                no leading slash
> 
> If you don't specify an absolute path, mount will complain.
> 
> It is not necessary for either of mounts arguments to exist, but they
> have to be fully qualified windows and unix paths respectively.
> 
> So, when I suggested that the directory was already mounted, I was wrong.
> And, the inference that the directory has to exist is also wrong.
> 
> What you want to do in the above scenario is:
> 
> mount c:\whereever\home\really\is\home\davis\progs /progs
> 
> cgf

Well i see, it is not easy mounting drives:-)

I believe, he wants to mount c:\progs under his home dir.
So he has to write:
not: > >>mount c:/progs /progs
but:
mount [-b] [-s] [-f] c:/progs /home/davis/progs

But this all is not the explanation, why he got an error of mount, 
because he should also be able to mount c:\progs to /progs, why not?

It looks like this, if the mount already exists:
$ mount e:/ftproot /ftproot
mount: /ftproot: Device or resource busy

And it looks like this, if the dir does not exist where you want to be 
the mount point:
$ mount a:/ /hdd/x
mount: warning - /hdd/x does not exist.

And it looks like this, if...???:
> >>mount c:/progs /progs
> >>mount: progs: Invalid argument

I got the same error as i tried:
mount d:\ftproot /ftproot
which normally displays the help!

Ciao, 
-- 
Gerrit Peter Haase

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: tar a filesystem outside of /cygwin
       [not found]         ` <20001212144941.A13469@skink.net>
@ 2000-12-12 12:36           ` Gerrit P. Haase
  0 siblings, 0 replies; 19+ messages in thread
From: Gerrit P. Haase @ 2000-12-12 12:36 UTC (permalink / raw)
  To: John F. Davis; +Cc: cygwin

<12 Dec 2000, 14:49 Uhr wars, als John F. Davis folgendes schrub:>
< Re: tar a filesystem outside of /cygwin >

> Gerrit,
> 
> > And it looks like this, if...???:
> > > >>mount c:/progs /progs
> > > >>mount: progs: Invalid argument
> > 
> 
> I screwed up.
> I did a 
> mount c:/progs progs
> where I was in /home/davis
> and I had already created a prog directory there.
> 
> John


O.K., but there is still no explanation, why i got the same error doing:
mount c:\ftp /ftp

1.
siebenschlaefer@LORELEY /hdd
$ mount c:\ftp /ftp
mount: /ftp: Invalid argument

2.
siebenschlaefer@LORELEY /hdd
$ mount c:\ftp ftp
mount: ftp: Invalid argument

The second case is o.k., argument ftp is invalid, but in first case, 
not /ftp is invalid, but 'c:ftp' because the quote is a quote and a 
backslash or slash is missing in this place, so there is the wrong 
error message, IMHO.
-- 
Gerrit Peter Haase

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: tar a filesystem outside of /cygwin
  2000-12-12 11:43       ` Gerrit P. Haase
       [not found]         ` <20001212144941.A13469@skink.net>
@ 2000-12-12 12:58         ` Christopher Faylor
  2000-12-12 22:52           ` Gerrit P. Haase
  1 sibling, 1 reply; 19+ messages in thread
From: Christopher Faylor @ 2000-12-12 12:58 UTC (permalink / raw)
  To: cygwin

On Tue, Dec 12, 2000 at 08:44:33PM +0100, Gerrit P. Haase wrote:
><12 Dec 2000, 13:57 Uhr wars, als Christopher Faylor folgendes schrub:>
>< Re: tar a filesystem outside of /cy >
>
>> On Tue, Dec 12, 2000 at 01:38:35PM -0500, Larry Hall (RFK Partners, Inc) wrote:
>> >At 01:30 PM 12/12/2000, John F. Davis wrote:
>> >>Any particular reason why I can't mount a filesystem in /home?
>> >>i.e., cd /home/davis
>> >>mkdir progs
>> >>mount c:/progs /progs
>> >>The mount says, "mount: progs: Invalid argument
>> >
>> >The directory you mount to must exist where you tell mount it is.  In your
>> >example, unless "/" == "/home/davis", you don't have a progs where you're 
>> >telling mount you do.  That'd be the problem...
>> 
>> Actually, after digging around in the code, it looks like the most
>> likely scenario in which you'd get an "Invalid argument" is if you
>> typed something like:
>> 
>> mount c:/progs progs
>>                ^
>>                no leading slash
>> 
>> If you don't specify an absolute path, mount will complain.
>> 
>> It is not necessary for either of mounts arguments to exist, but they
>> have to be fully qualified windows and unix paths respectively.
>> 
>> So, when I suggested that the directory was already mounted, I was wrong.
>> And, the inference that the directory has to exist is also wrong.
>> 
>> What you want to do in the above scenario is:
>> 
>> mount c:\whereever\home\really\is\home\davis\progs /progs
>> 
>> cgf
>
>Well i see, it is not easy mounting drives:-)
>
>I believe, he wants to mount c:\progs under his home dir.
>So he has to write:
>not: > >>mount c:/progs /progs
>but:
>mount [-b] [-s] [-f] c:/progs /home/davis/progs
>
>But this all is not the explanation, why he got an error of mount, 
>because he should also be able to mount c:\progs to /progs, why not?
>
>It looks like this, if the mount already exists:
>$ mount e:/ftproot /ftproot
>mount: /ftproot: Device or resource busy
>
>And it looks like this, if the dir does not exist where you want to be 
>the mount point:
>$ mount a:/ /hdd/x
>mount: warning - /hdd/x does not exist.
>
>And it looks like this, if...???:
>> >>mount c:/progs /progs
>> >>mount: progs: Invalid argument

I just went to some effort to explain what this error message was about.
It DOES NOT happen when you type "mount c:/progs /progs".  I theorized,
and was later confirmed that the slash was missing from the second mount
argument.

>I got the same error as i tried:
>mount d:\ftproot /ftproot
>which normally displays the help!

In that case you were using backslashes in bash.  For the 100000000000000000000th
time: a backslash is a quoting character in UNIX shells.  If you want to use
it you have to double it up.  So you either have to:

bash$ mount d:\\ftproot /ftproot

or

bash$ mount d:/ftproot /ftproot

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: tar a filesystem outside of /cygwin
  2000-12-12 12:58         ` Christopher Faylor
@ 2000-12-12 22:52           ` Gerrit P. Haase
  2000-12-13  6:48             ` Christopher Faylor
  0 siblings, 1 reply; 19+ messages in thread
From: Gerrit P. Haase @ 2000-12-12 22:52 UTC (permalink / raw)
  To: Christopher Faylor, cygwin

<12 Dec 2000, 15:58 Uhr wars, als Christopher Faylor folgendes schrub:>
< Re: tar a filesystem outside of /cy >


> In that case you were using backslashes in bash.  For the 100000000000000000000th
> time: a backslash is a quoting character in UNIX shells.  If you want to use
> it you have to double it up.  So you either have to:
> 
> bash$ mount d:\\ftproot /ftproot
> 
> or
> 
> bash$ mount d:/ftproot /ftproot
> 
> cgf

Repetition from my former email!

O.K., but there is still no explanation, why i got this error doing:
mount c:\ftp /ftp

1.
siebenschlaefer@LORELEY /hdd
$ mount c:\ftp /ftp
mount: /ftp: Invalid argument

2.
siebenschlaefer@LORELEY /hdd
$ mount c:\ftp ftp
mount: ftp: Invalid argument

The second case is o.k., argument ftp is invalid, but in first case, 
not /ftp is invalid, but 'c:ftp' because the quote is a quote and a 
backslash or slash is missing in this place, so there is the wrong 
error message, IMHO.
-- 
Gerrit Peter Haase

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: tar a filesystem outside of /cygwin
  2000-12-12 22:52           ` Gerrit P. Haase
@ 2000-12-13  6:48             ` Christopher Faylor
  2000-12-13 12:30               ` Gerrit P. Haase
  2000-12-13 13:52               ` J. J. Farrell
  0 siblings, 2 replies; 19+ messages in thread
From: Christopher Faylor @ 2000-12-13  6:48 UTC (permalink / raw)
  To: cygwin

On Wed, Dec 13, 2000 at 07:53:53AM +0100, Gerrit P. Haase wrote:
><12 Dec 2000, 15:58 Uhr wars, als Christopher Faylor folgendes schrub:>
>< Re: tar a filesystem outside of /cy >
>
>
>> In that case you were using backslashes in bash.  For the 100000000000000000000th
>> time: a backslash is a quoting character in UNIX shells.  If you want to use
>> it you have to double it up.  So you either have to:
>> 
>> bash$ mount d:\\ftproot /ftproot
>> 
>> or
>> 
>> bash$ mount d:/ftproot /ftproot
>> 
>> cgf
>
>Repetition from my former email!
>
>O.K., but there is still no explanation, why i got this error doing:
>mount c:\ftp /ftp
>
>1.
>siebenschlaefer@LORELEY /hdd
>$ mount c:\ftp /ftp
>mount: /ftp: Invalid argument
>
>2.
>siebenschlaefer@LORELEY /hdd
>$ mount c:\ftp ftp
>mount: ftp: Invalid argument
>
>The second case is o.k., argument ftp is invalid, but in first case, 
>not /ftp is invalid, but 'c:ftp' because the quote is a quote and a 
>backslash or slash is missing in this place, so there is the wrong 
>error message, IMHO.

If you do not specify a full path spec, you'll get an "invalid argument"
error message.

I don't know why you are having such a hard time wrapping your brain around
that fact, but that's ok.  I have nothing more to add to this thread.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: tar a filesystem outside of /cygwin
  2000-12-13  6:48             ` Christopher Faylor
@ 2000-12-13 12:30               ` Gerrit P. Haase
  2000-12-13 13:52               ` J. J. Farrell
  1 sibling, 0 replies; 19+ messages in thread
From: Gerrit P. Haase @ 2000-12-13 12:30 UTC (permalink / raw)
  To: Christopher Faylor, cygwin

<13 Dec 2000, 9:48 Uhr wars, als Christopher Faylor folgendes schrub:>
< Re: tar a filesystem outside of /cy >

> >The second case is o.k., argument ftp is invalid, but in first case, 
> >not /ftp is invalid, but 'c:ftp' because the quote is a quote and a 
> >backslash or slash is missing in this place, so there is the wrong 
> >error message, IMHO.
> 
> If you do not specify a full path spec, you'll get an "invalid argument"
> error message.
> 
> I don't know why you are having such a hard time wrapping your brain around
> that fact, but that's ok.  I have nothing more to add to this thread.

For me this error-message is like no error-message, if it didn't point 
to the failure i made.

It's only criticism. If this is not wanted...

-- 
Gerrit Peter Haase

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: tar a filesystem outside of /cygwin
  2000-12-13  6:48             ` Christopher Faylor
  2000-12-13 12:30               ` Gerrit P. Haase
@ 2000-12-13 13:52               ` J. J. Farrell
  2000-12-13 14:05                 ` Corinna Vinschen
  1 sibling, 1 reply; 19+ messages in thread
From: J. J. Farrell @ 2000-12-13 13:52 UTC (permalink / raw)
  To: cygwin

> From: Christopher Faylor <cygwin@cygwin.com>
> 
> On Wed, Dec 13, 2000 at 07:53:53AM +0100, Gerrit P. Haase wrote:
> >
> >$ mount c:\ftp /ftp
> >mount: /ftp: Invalid argument
> 
> If you do not specify a full path spec, you'll get an "invalid argument"
> error message.
> 
> I don't know why you are having such a hard time wrapping your brain around
> that fact, but that's ok.  I have nothing more to add to this thread.

I think Gerrit understands that fact, but is having trouble seeing
why mount doesn't complain about an apparently invalid argument
(c:\ftp) but does complain about one which is apparently valid (/ftp).


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: tar a filesystem outside of /cygwin
  2000-12-13 13:52               ` J. J. Farrell
@ 2000-12-13 14:05                 ` Corinna Vinschen
  0 siblings, 0 replies; 19+ messages in thread
From: Corinna Vinschen @ 2000-12-13 14:05 UTC (permalink / raw)
  To: cygwin

On Wednesday 13 December 2000 22:52, J. J. Farrell wrote:
> > From: Christopher Faylor <cygwin@cygwin.com>
> >
> > On Wed, Dec 13, 2000 at 07:53:53AM +0100, Gerrit P. Haase wrote:
> > >$ mount c:\ftp /ftp
> > >mount: /ftp: Invalid argument
> >
> > If you do not specify a full path spec, you'll get an "invalid
> > argument" error message.
> >
> > I don't know why you are having such a hard time wrapping your
> > brain around that fact, but that's ok.  I have nothing more to add
> > to this thread.
>
> I think Gerrit understands that fact, but is having trouble seeing
> why mount doesn't complain about an apparently invalid argument
> (c:\ftp) but does complain about one which is apparently valid
> (/ftp).

The reason is quite easy. mount(1) calls mount(2). mount(2) returns
with errno set to "Invalid parameter" and that's it. mount(1)
doesn't know _which_ parameter mount(2) is complaining about.
So mount(1) simply calls it's error function with the 2nd parameter
as the wrong one.

QED,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: tar a filesystem outside of /cygwin
@ 2000-12-13  5:49 Earnie Boyd
  0 siblings, 0 replies; 19+ messages in thread
From: Earnie Boyd @ 2000-12-13  5:49 UTC (permalink / raw)
  To: gerrit.haase, Christopher Faylor, cygwin

--- "Gerrit P. Haase" <gerrit.haase@t-online.de> wrote:
> 
> The second case is o.k., argument ftp is invalid, but in first case, 
> not /ftp is invalid, but 'c:ftp' because the quote is a quote and a 
> backslash or slash is missing in this place, so there is the wrong 
> error message, IMHO.

The standard answer here is, "Patches are gratefully considered."

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd@yahoo.com

---         < http://earniesystems.safeshopper.com >         ---
--- Cygwin: POSIX on Windows < http://gw32.freeyellow.com/ > ---
---   Minimalist GNU for Windows < http://www.mingw.org/ >   ---

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: tar a filesystem outside of /cygwin
@ 2000-12-12 10:45 Earnie Boyd
  0 siblings, 0 replies; 19+ messages in thread
From: Earnie Boyd @ 2000-12-12 10:45 UTC (permalink / raw)
  To: John F. Davis, cygwin

--- "John F. Davis" <davis@skink.net> wrote:
> 
> /cygwin is where cygnus is installed.
> /progs is where I have a large filesystem I want to backup with tar.
> 
-8<-
> 
> Any particular reason why I can't mount a filesystem in /home?
> i.e., cd /home/davis
> mkdir progs
> mount c:/progs /progs
> The mount says, "mount: progs: Invalid argument
> 

Because mount can't find /progs as a point to mount to.  You could do `mount
c:/progs /home/davis/progs' since that is where you stored your empty point
directory.

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd@yahoo.com

---         < http://earniesystems.safeshopper.com >         ---
--- Cygwin: POSIX on Windows < http://gw32.freeyellow.com/ > ---
---   Minimalist GNU for Windows < http://www.mingw.org/ >   ---

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: tar a filesystem outside of /cygwin
  2000-12-12  9:30 ` Larry Hall (RFK Partners, Inc)
@ 2000-12-12  9:53   ` David Starks-Browning
  0 siblings, 0 replies; 19+ messages in thread
From: David Starks-Browning @ 2000-12-12  9:53 UTC (permalink / raw)
  To: cygwin

On Tuesday 12 Dec 00, Larry Hall (RFK Partners, Inc) writes:
> At 12:15 PM 12/12/2000, John F. Davis wrote:
> >Hello
> >
> >I am trying to tar a filesystem outside of /cygwin.  I saw in the faq
> >the note about not installing cygwin in the c:/ direcotry.  Copying the
> >filesystem outside /cygwin to /cygwin so I can do a tar is not an option.
> >This is a rather large filesystem I am trying to tar.
> >
> >Any other ideas?
> >
> >John
> 
> See http://www.cygwin.com/faq/faq_4.html#SEC43 .

Actually, he means "How can I access other drives?" somewhere in
< http://sources.redhat.com/cygwin/faq/faq_toc.html >.  :-)

Regards,
David


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: tar a filesystem outside of /cygwin
  2000-12-12  9:16 John F. Davis
@ 2000-12-12  9:30 ` Larry Hall (RFK Partners, Inc)
  2000-12-12  9:53   ` David Starks-Browning
  0 siblings, 1 reply; 19+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2000-12-12  9:30 UTC (permalink / raw)
  To: John F. Davis, cygwin

At 12:15 PM 12/12/2000, John F. Davis wrote:
>Hello
>
>I am trying to tar a filesystem outside of /cygwin.  I saw in the faq
>the note about not installing cygwin in the c:/ direcotry.  Copying the
>filesystem outside /cygwin to /cygwin so I can do a tar is not an option.
>This is a rather large filesystem I am trying to tar.
>
>Any other ideas?
>
>John



See http://www.cygwin.com/faq/faq_4.html#SEC43 .

Boy, I'm getting allot of mileage out of this one today!;-)



Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 19+ messages in thread

* tar a filesystem outside of /cygwin
@ 2000-12-12  9:16 John F. Davis
  2000-12-12  9:30 ` Larry Hall (RFK Partners, Inc)
  0 siblings, 1 reply; 19+ messages in thread
From: John F. Davis @ 2000-12-12  9:16 UTC (permalink / raw)
  To: cygwin

Hello

I am trying to tar a filesystem outside of /cygwin.  I saw in the faq
the note about not installing cygwin in the c:/ direcotry.  Copying the
filesystem outside /cygwin to /cygwin so I can do a tar is not an option.
This is a rather large filesystem I am trying to tar.

Any other ideas?

John

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2000-12-13 14:05 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-12  9:35 tar a filesystem outside of /cygwin Earnie Boyd
2000-12-12 10:31 ` John F. Davis
2000-12-12 10:39   ` Christopher Faylor
2000-12-12 10:41   ` Larry Hall (RFK Partners, Inc)
2000-12-12 10:58     ` Christopher Faylor
2000-12-12 11:02       ` John F. Davis
2000-12-12 11:43       ` Gerrit P. Haase
     [not found]         ` <20001212144941.A13469@skink.net>
2000-12-12 12:36           ` Gerrit P. Haase
2000-12-12 12:58         ` Christopher Faylor
2000-12-12 22:52           ` Gerrit P. Haase
2000-12-13  6:48             ` Christopher Faylor
2000-12-13 12:30               ` Gerrit P. Haase
2000-12-13 13:52               ` J. J. Farrell
2000-12-13 14:05                 ` Corinna Vinschen
  -- strict thread matches above, loose matches on Subject: below --
2000-12-13  5:49 Earnie Boyd
2000-12-12 10:45 Earnie Boyd
2000-12-12  9:16 John F. Davis
2000-12-12  9:30 ` Larry Hall (RFK Partners, Inc)
2000-12-12  9:53   ` David Starks-Browning

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).