How to extract tarballs with long filenames?

Leonard

Registered
Is there any way to extract a tarball and preserve the long filenames (>31 characters) ?

Thanks in advance,

Leonard
 
I'm guessing you're extracting the tarball with StuffIt Expander? I notice it does have a problem with filenames of length > 31 characters; since it's a Carbon app, it can't handle really long names. The only way I can think of is using the tar command in a Terminal window,

Code:
tar xvf ballof.tar
 
It happens on both the command line and using Stuffit. I think the filesystem just can't handle > 31 chars.

L.
 
I know HFS+ can handle long filename; I'm guessing UFS can as well. Which filesystem are you using as the target when doing the tar? As a test,

Code:
$ ls
play.tar
$ tar xvf play.tar 
this is an even longer filename which defintely goes past 31 characters
$ ls
play.tar
this is an even longer filename which defintely goes past 31 characters

that filename is 71 characters...
 
I'm using HFS+.

That's REALLY STRANGE.

The Tarball is actually from a Redhat system. I am trying to mirror across to my Titanium so that I can work on the website offline, but many images are above 31 characters and get cut off.

L.
 
Try gnutar, might be something standard tar doesn't like,

Code:
gnutar xvf featherand.tar

see if it extracts then.
 
Awesome! guntar does the trick... :)

For those of u wondering where to get gnutar - it comes with the Developer Tools.

Thanks!!!

Leonard
 
Back
Top