On Sat, 26 Aug 2017 12:26:51 +0100 Paul Groves wrote: 8< - - - - - snipped - - - - - >8
so I am using tar -xvzf /mnt/BACKUP/file.tar.gz to extract the file.
But I keep getting the following error before extraction completes:
gzip: stdin: Input/output error tar: Unexpected EOF in archive tar: Error is not recoverable: exiting now 8< - - - - - snipped - - - - - >8
Hi Paul, Your post triggered a memory of my having saved an excerpt some time ago from a thread discussing similar unexpected tar errors and behaviors:
This old way of writing `tar' options can surprise even experienced users. For example, the two commands:
tar cfz archive.tar.gz file tar -cfz archive.tar.gz file
are quite different. The first example uses `archive.tar.gz' as the value for option `f' and recognizes the option `z'. The second (old form) example, however, uses `z' as the value for option `f' -- probably not what was intended.
Old options are kept for compatibility with old versions of `tar'.
This second example could be corrected in many ways, among which the following are equivalent:
tar -czf archive.tar.gz file tar -cf archive.tar.gz -z file tar cf archive.tar.gz -z file
As far as we know, all `tar' programs, GNU and non-GNU, support old options.
I've been using the 'new form' (no hyphen preceding flags) for a few years since reading this and not encountered any problems. Could this be somehow related? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org