1829489 Members
1814 Online
109991 Solutions
New Discussion

Uncompress Tar file.

 
AjayYadav
New Member

Uncompress Tar file.

Hi,

When i am uncompressing tar file Using "tar -xvf xyz.tar" command. It does not extracts file has file name more than 24 character.
the file has name more than 24 character it cut it to 24 character.

please give me solution that how to extract file has name more than 24. I read some thing N and O which talk about this but didn't get solution.

Its urgent help me soon.

-Thanks,
Ajay
11 REPLIES 11
Steven E. Protter
Exalted Contributor

Re: Uncompress Tar file.

Shalom,

Perhaps your version of tar is very old, or the filesystem its sitting on does not support long names.

OS?

which tar
what tar

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
James R. Ferguson
Acclaimed Contributor

Re: Uncompress Tar file.

Hi:

I suspect that you have a display problem.

Regards!

...JRF...
AjayYadav
New Member

Re: Uncompress Tar file.

I made a archive file using tar command (tar cvf)in Linux. Now i am extracting same file in HPUX using "tar -xvf"
Linux :Redhat Enterprises Linux 4 AS
Tar version is:1.4 at Linux machine. (1.4 is new version but no idea about HPUX machine)
HPUX version is: HP-UX lat B.11.31 U ia64

Anything you want to know? plz let me know?
OldSchool
Honored Contributor

Re: Uncompress Tar file.

well....you may be having issues given that Linux uses GNU tar, which isn't necessarily compatible w/ hp-ux tar. there are a variety of "options" in gnu tar that don't exist in the unix version.

you may want to download gnu tar and give that a try.

also, depending on how tar was built on the linux side, you may need to supply additional "format" flags when creating the tar file. on the linux side , "tar --help" should list the default "format" being used
Torsten.
Acclaimed Contributor

Re: Uncompress Tar file.

You can also give gnu tar a try:

http://hpux.asknet.de/hppd/hpux/Gnu/tar-1.15.1/

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
AjayYadav
New Member

Re: Uncompress Tar file.

Hi All HPUX guys... i m wondering if no body faced this problem ?
I havn't got satisfactory answer yet.
If you HPUX guys are not facing such small problem then from whom should i expect solution?

I m simply extracting Tar file on HPUX i m seeing one more file named @LongLink with extracted folder.
Did anybody know how my problem will solve?
How should i extract? which option will give me absolute (full) file names?

Thanks for your help.
Steven Schweda
Honored Contributor

Re: Uncompress Tar file.

> [...] file named @LongLink [...]

Sounds like GNU "tar". Google found:

http://www.gnu.org/software/tar/

http://hpux.connect.org.uk/hppd/hpux/Gnu/tar-1.15.1/
Yogeeraj_1
Honored Contributor

Re: Uncompress Tar file.

hi Ajay,

The workaround would be to do a remote copy or mount a remote file system using NFS and copy the files directly.

just some thoughts.

you may also try pax and see if it works out well. (man pax for more information)

hope this helps too!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
OldSchool
Honored Contributor

Re: Uncompress Tar file.

"Hi All HPUX guys... i m wondering if no body faced this problem ?
I havn't got satisfactory answer yet.
If you HPUX guys are not facing such small problem then from whom should i expect solution?"

well...three people (at least) told you that you probably needed to install GNU tar on HP-UX to make this work.............
James R. Ferguson
Acclaimed Contributor

Re: Uncompress Tar file.

Hi Ajay:

> Hi All HPUX guys... i m wondering if no body faced this problem ? I havn't got satisfactory answer yet. If you HPUX guys are not facing such small problem then from whom should i expect solution?

It might have been more insightful to us if you had mentioned that the tar ball had been created on a Linux box, first, too!

Satisfactory answers require satisfactory questions with appropriate details.

...JRF...
AjayYadav
New Member

Re: Uncompress Tar file.

i used Pax and it works well. Thanks yogeeraj.

And i cant install GNU tar because i can do that but the tar i m giving to customer they dont even know what is problem in their tar so they will not install GNU tar.. so better option is to use pax.

Thanks for all. i will come again if i got any difficulty.
Thanks for all guys.

-Ajay