public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Tar Problems Under Cygwin
@ 2002-08-21  7:43 Anthony Massa
  2002-08-21  7:46 ` Max Bowsher
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Anthony Massa @ 2002-08-21  7:43 UTC (permalink / raw)
  To: cygwin


I wanted to see if I could get some help using tar.

First I changed to the root of the directory tree I wanted to zip up.  I
created a zip file under the bash shell version 2.05.0(8)-release using the
command:

$ tar cf - DIR_TO_ZIP | bzip2 -9 > files.tar.bz2

This file was then placed on a CD-ROM.  When I tried to un-tar the file
using the command:

$ tar xjvf f:/i386rdwr.tar.bz2

I get the following output error message:

f: unknown host
tar (child): f\:/i386rdwr.tar.bz2: Cannot open: I/O error
tar (child): Error is not recoverable: exiting now

bzip2: Compressed file ends unexpectedly;
        perhaps it is corrupted?  *Possible* reason follows.
bzip2: error 0
        Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to *attempt* to recover
data from undamaged sections of corrupted files.

tar: Child returned status 2
tar: Error exit delayed from previous errors


I have the following mounts on my system:

$ mount
E:\cygwin\bin on /usr/bin type system (textmode)
E:\cygwin\lib on /usr/lib type system (textmode)
e:\cygwin\tmp on /tmp type user (binmode)
E:\cygwin on / type system (textmode)
\\.\a: on /dev/fd0 type user (binmode)
e: on /ecos-e type user (textmode)
u: on /ecos-u type user (textmode)
c: on /cygdrive/c type user (textmode,noumount)
d: on /cygdrive/d type user (textmode,noumount)
f: on /cygdrive/f type user (textmode,noumount)
g: on /cygdrive/g type user (textmode,noumount)
h: on /cygdrive/h type user (textmode,noumount)
i: on /cygdrive/i type user (textmode,noumount)

I'm curious why I cannot simply refer to my CD-ROM drive using F:/ when I
un-tar the file.  How do I need to unzip the file from the CD-ROM drive.

Thanks.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: Tar Problems Under Cygwin
  2002-08-21  7:43 Tar Problems Under Cygwin Anthony Massa
@ 2002-08-21  7:46 ` Max Bowsher
  2002-08-21  8:10   ` Anthony Massa
  2002-08-21  8:14 ` Gerrit P. Haase
  2002-08-21  8:54 ` Soren A
  2 siblings, 1 reply; 6+ messages in thread
From: Max Bowsher @ 2002-08-21  7:46 UTC (permalink / raw)
  To: amassa, cygwin

Anthony Massa wrote:
> ... I tried to un-tar the
> file using the command:
> 
> $ tar xjvf f:/i386rdwr.tar.bz2
> 
> I get the following output error message:
> 
> f: unknown host
> tar (child): f\:/i386rdwr.tar.bz2: Cannot open: I/O error

f is being interpreted as a remote computer name. Specify the file as:
/cygdrive/f/i386rdwr.tar.bz2

Max.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* RE: Tar Problems Under Cygwin
  2002-08-21  7:46 ` Max Bowsher
@ 2002-08-21  8:10   ` Anthony Massa
  2002-08-21  8:49     ` Joe Buehler
  0 siblings, 1 reply; 6+ messages in thread
From: Anthony Massa @ 2002-08-21  8:10 UTC (permalink / raw)
  To: Max Bowsher, cygwin

Is /cygdrive/f/ (or whatever drive letter) a standard when Cygwin is
installed?

I am using these instructions for others that will install Cygwin and I want
to make sure I give them the proper information on how to un-tar the file.
In other words, is the mount point /cygdrive/f/ going to be something
different on another system?  Or do all drives install the same way - with
the same mount points - if they are installed from the same binaries?

Or is it best to do a mount to see how the drive is mounted before trying to
un-tar the file?

Thanks for the fast responses.


> -----Original Message-----
> From: Max Bowsher [mailto:maxb@ukf.net]
> Sent: Wednesday, August 21, 2002 7:21 AM
> To: amassa@san.rr.com; cygwin@cygwin.com
> Subject: Re: Tar Problems Under Cygwin
>
>
> Anthony Massa wrote:
> > ... I tried to un-tar the
> > file using the command:
> >
> > $ tar xjvf f:/i386rdwr.tar.bz2
> >
> > I get the following output error message:
> >
> > f: unknown host
> > tar (child): f\:/i386rdwr.tar.bz2: Cannot open: I/O error
>
> f is being interpreted as a remote computer name. Specify the file as:
> /cygdrive/f/i386rdwr.tar.bz2
>
> Max.
>
>


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: Tar Problems Under Cygwin
  2002-08-21  7:43 Tar Problems Under Cygwin Anthony Massa
  2002-08-21  7:46 ` Max Bowsher
@ 2002-08-21  8:14 ` Gerrit P. Haase
  2002-08-21  8:54 ` Soren A
  2 siblings, 0 replies; 6+ messages in thread
From: Gerrit P. Haase @ 2002-08-21  8:14 UTC (permalink / raw)
  To: Anthony Massa; +Cc: cygwin

Hallo Anthony,

Am Mittwoch, 21. August 2002 um 16:16 schriebst du:

> I have the following mounts on my system:

> $ mount
[snip]
> f: on /cygdrive/f type user (textmode,noumount)
[snip]

> I'm curious why I cannot simply refer to my CD-ROM drive using F:/ when I
> un-tar the file.  How do I need to unzip the file from the CD-ROM drive.

$ mount --help
  -c, --change-cygdrive-prefix  change the cygdrive path prefix to <posixpath>

e.g.:
$ mount -s -b -c /

Access to the drives is then '/f' instead of '/cygdrive/f'.
Accessing drives via windows syntax works e.g. with ls, but
not with tar.


Gerrit
-- 
perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: Tar Problems Under Cygwin
  2002-08-21  8:10   ` Anthony Massa
@ 2002-08-21  8:49     ` Joe Buehler
  0 siblings, 0 replies; 6+ messages in thread
From: Joe Buehler @ 2002-08-21  8:49 UTC (permalink / raw)
  To: cygwin

Anthony Massa wrote:

> Is /cygdrive/f/ (or whatever drive letter) a standard when Cygwin is
> installed?

It's the default behavior when Cygwin is installed.

There is also an option on tar to tell it not to
interpret x:/some/path as a reference to a remote machine
named "x".  It's --force-local.

Joe Buehler




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

* Re: Tar Problems Under Cygwin
  2002-08-21  7:43 Tar Problems Under Cygwin Anthony Massa
  2002-08-21  7:46 ` Max Bowsher
  2002-08-21  8:14 ` Gerrit P. Haase
@ 2002-08-21  8:54 ` Soren A
  2 siblings, 0 replies; 6+ messages in thread
From: Soren A @ 2002-08-21  8:54 UTC (permalink / raw)
  To: cygwin

"Anthony Massa" <amassa@san.rr.com> wrote around 21 Aug 2002 
news:NBBBJIKCMKBJFEAHMGMAGECDEHAA.amassa@san.rr.com about %s:

> This file was then placed on a CD-ROM.  When I tried to un-tar the file
> using the command:
> 
> $ tar xjvf f:/i386rdwr.tar.bz2
> 
> I get the following output error message:
> 
> f: unknown host
> tar (child): f\:/i386rdwr.tar.bz2: Cannot open: I/O error
> tar (child): Error is not recoverable: exiting now

You've received advice to mess with your mounts in order to fix a
problem known to happen with the tar that's packaged with Cygwin. That's
fine, but TMTOWTDI: just set the appropriate default options for tar
that (IMHO) make sense on an average Win32 system: 

TAR_OPTIONS=--force-local

Somewhere in your bash start-up files (~/.bashrc). Then pass ordinary
windows-style paths to tar freely. It won't choke on them anymore. 

  HTH,
   Soren A



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

end of thread, other threads:[~2002-08-21 15:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-21  7:43 Tar Problems Under Cygwin Anthony Massa
2002-08-21  7:46 ` Max Bowsher
2002-08-21  8:10   ` Anthony Massa
2002-08-21  8:49     ` Joe Buehler
2002-08-21  8:14 ` Gerrit P. Haase
2002-08-21  8:54 ` Soren A

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