On Tue, Oct 11, 2022 at 4:14 PM Chris Zach via cctalk <[email protected]> wrote:
> Trying to tar a directory and transfer it to my AT&T 7300 (SVR2 unix). > Tar -tf works fine on the Mac OSX, but when I copy it over the Unix (not > gnu) tar gives me a: > > Tar: blocksize = 20 > directory checksum error > > When I try to tar -tf the file. Which usually means the block size is off. > > Any way I can check to see what the block size is on a modern system > (like a Mac)? tar -tvf doesn't seem to tell me. > All tar files are the same... except when they are different. MacOS uses libarchive tar. This version of tar creates the most modern tar files from the mid 90s. However, System V r2 pre-dates that. There's a lot of different tar formats, that are almost the same. I'm guessing that --format pax might work, but it might not. --format ustar like is the most interchangeable format, and will likely work. It's the least-restrictive format that will most likely work. --format v7 will almost certainly work, but has more restrictions that might run into, most likely its inability to use anything except numeric IDs. Warner
