Ask a Question related to Linux / Unix Administration, Design and Development.
-
Srinath M.K #1
Tar & Un Tar File problems
Hi all,
I am doing Tar for a set of files using the command :
tar cf - sri* | compress > x.tar
When i try to untar using the following command:
tar xvf x.tar
It is giving me error:
tar: tape blocksize error
NOTE: I tried to tar another set of files and it is giving me this
error when i untar :
tar xvf x.tar
It is giving me error:
tar: directory checksum error
I tried to search in other messages.. but did not find any useful
solution.
I am working on sun solaris.
Any help greatly appriciated.
Thanks and Regards,
Srinath M. K
Srinath M.K Guest
-
LCK file problems
I have a site i try to edit with contribute 1.0. But when i publish errormessage says "another user has removed your lock". I am the only user on... -
PDF File Problems
I have been putting out a newsletter for a woodworking club I belong to. I have been using Indesign to create the newsletter and then export it to a... -
IO File Problems
hi there, couse of my missing skills with filehandling i would be happy if you provide me help. this is my problem: 1) I´m getting a list... -
Problems with File Uploads
Hello, I've written the following sourcecode: <form action="test.php" method="POST" enctype="multipart/form-data"> <input type="file"... -
File problems
Hi, I am having a hell of a time with this. Whenever I think it's working, something else screws up. There obviously has to be a better way to do... -
slrn #2
Re: Tar & Un Tar File problems
On 12 May 2004 06:01:51 -0700, Srinath M.K <mksrinath@indiatimes.com> wrote:
You did a compress here.>Hi all,
>
>I am doing Tar for a set of files using the command :
>
>tar cf - sri* | compress > x.tar
You have to uncompress it first or pipe it through uncompress.>When i try to untar using the following command:
>
>tar xvf x.tar
ie. zcat <filename.tar.Z> | tar xvf or uncompress ...| tar xvf
-->It is giving me error:
>tar: tape blocksize error
>
>
>NOTE: I tried to tar another set of files and it is giving me this
>error when i untar :
>tar xvf x.tar
>
>It is giving me error:
>tar: directory checksum error
slrn is a command line newsreader.
please reply, to the newsgroup(s).
slrn Guest
-
Marcin Dobrucki #3
Re: Tar & Un Tar File problems
Srinath M.K wrote:
Where did you copy this from? Don't run commands if you don't> I am doing Tar for a set of files using the command :
>
> tar cf - sri* | compress > x.tar
>
> When i try to untar using the following command:
>
> tar xvf x.tar
>
> It is giving me error:
> tar: tape blocksize error
>
>
> NOTE: I tried to tar another set of files and it is giving me this
> error when i untar :
> tar xvf x.tar
>
> It is giving me error:
> tar: directory checksum error
>
>
> I tried to search in other messages.. but did not find any useful
> solution.
>
> I am working on sun solaris.
understand what they do.
If you are running "tar" via compress, the result will be a
compressed file that obviously tar can't understand.
$ tar cf - sri* | compress > x.tar
$ file x.tar
x.tar: compressed data block compressed 16 bits
$
Don't name the compressed file .tar, it should be .tar.Z to indicate
the compression. To get out of this, use "uncompress".
/Marcin
Marcin Dobrucki Guest
-
Arpad I Toth #4
Re: Tar & Un Tar File problems
Srinath M.K wrote:
yes it gives errors because u piped to compress....so it's not a plain tar file any longer...> Hi all,
>
> I am doing Tar for a set of files using the command :
>
> tar cf - sri* | compress > x.tar
>
> When i try to untar using the following command:
>
> tar xvf x.tar
>
> It is giving me error:
> tar: tape blocksize error
>
>
> NOTE: I tried to tar another set of files and it is giving me this
> error when i untar :
> tar xvf x.tar
>
> It is giving me error:
> tar: directory checksum error
>
>
> I tried to search in other messages.. but did not find any useful
> solution.
>
> I am working on sun solaris.
>
> Any help greatly appriciated.
>
> Thanks and Regards,
> Srinath M. K
u have to "uncompress" first then use the tar...
i.e
zcat <your_file> | tar xvf -
but I would say use gzip instead of compress...
RP
Arpad I Toth Guest
-
Bill Marcum #5
Re: Tar & Un Tar File problems
["Followup-To:" header set to comp.unix.admin.]
On 12 May 2004 06:01:51 -0700, Srinath M.K
<mksrinath@indiatimes.com> wrote:If you use GNU tar, you can> Hi all,
>
> I am doing Tar for a set of files using the command :
>
> tar cf - sri* | compress > x.tar
>
tar czf x.tar.gz sri*
tar xzvf x.tar.gz
--
Now KEN and BARBIE are PERMANENTLY ADDICTED to MIND-ALTERING DRUGS ...
Bill Marcum Guest



Reply With Quote

