I'm compressing a toolchain which has several sub directories that should be identical. When I extract the tar on Windows using 7-Zip I get missing files. I actually get the same problem with WinRar, but if i log into git bash and use tar, everything is fine. I've tried to resolve all symbolic links and change file permissions before compressing, but the problem remains. Also tested to create just the tar without compression, but still I get the problem.
I didn't want to spam you with an attachment including the entire toolchain, but as I removed files the problem went away. I got to reduce the attachment a bit, but that changed the problem slightly. With my current attachment I get files of size 0 in i686-w64-win2win-mingw32\i686-w64-mingw32\sysroot\mingw while the other directory, that should be equal, contains the files with correct size; "i686-w64-win2win-mingw32\i686-w64-mingw32\sysroot\usr\i686-w64-mingw32".
Do I have to include some kind of arguments or is this a bug?
The attached tar.bz2 file was compressed on Debian Wheezy with the following arguments "tar -cjhf sysroot.tar.bz2 i686-w64-win2win-mingw32/i686-w64-mingw32/sysroot/".
When extracting on Windows 7 with 7-Zip version 9.20, the mingw dir contains files of zero size. WinRar has the same problem while tar in git bash extracts it nicely.
I just ran into this issue in 2016 while testing important backups. The tar.gz archive unzips perfectly using GNU tar but 7zip misses files.
What version of 7-zip?
16.04
Open that archive with 7-zip. select file that was not extracted, and press "Info" buttion. Then copy (Ctrl+C) that text here.
I've got the same issue with a .tar file and 7-Zip 16.04 x64.
Actually, I often had the issue and always assumed the archive was incomplete.
In the file, there should be several folders, but only one is showing. In this visible directory, severals files and subdirectories are missing.
I selected this folder and clicked 'Eigenschaften' (properties).
This is the dialog that appears:
Last edit: Babingo 2017-07-05
Show properties of missing file.
And set 7-zip to English.
The missing files are not being displayed in 7-Zip so I can't show their properties.
This is the info for the archive itself (i.e. nothing selected):
This is the info for the directory that has subdirectories and files missing. Same as in the first message, but in English this time:
Last edit: Babingo 2017-07-05
in fs volume you have:
folder1
folder1/file2
in 7z only:
folder1
is it so?
Then show all properties of folder1/file2 with
command
and show exact command that you used to create archive.
I extracted the file with '
tar -xvzf archive.tar.gz
', then I ran 'ls -al
' in the main directory:Now with filenames, because there's nothing confidential about them.
I replaced the usernames with distinct placeholders -
XXXXX
is always the same user.In 7-Zip, only the directory '
app
' appears.'
ls -al
' in the directory 'app
':In 7-Zip, only '
code
' appears.I have not created this archive, so I can't tell you the command. I have sent you a message via Sourceforge with a link to an example file, though.
Last edit: Babingo 2017-07-05
please describe all steps:
you have .tar archive
you exatrct it.
then you call 7z
what exact 7z command?
try to make log of that command to file?
I have an archive:
archive.tgz
. (Extracting the.tar
and using just this file makes no difference).I open it with 7-Zip File Manager 16.04 on Windows 10 Pro x64.
I can only see some files that are contained in the archive, others are missing. Using the
tar
command on Unix extracts those missing files, too (on Cygwin too, see below).Using the
7z
(version 15.14) command in Cygwin makes no difference, too:Please keep in mind that this is all Cygwin on Windows, so file permissions might not be reliable. I don't know.
This here is actually on Unix, same file:
Headers errors in TAR.
Run in windows:
and look all parts.
I have looked at those tar archives.
1.tar
contains all of the files that are extracted by7z x archive.tar
and nothing else. So1.tar
is the one that is actually extracted.All of the other archives contain the missing files.
Extracting these archives gives warnings, again - except for
7z x 13.tar
, which works fine.The resulting files are not completely correct - the files are all there, but six of them have truncated filenames. The last few (ranging from 1 to 6) characters are missing. The filesizes look correctly.
Long output:
Look file "2" in hex editor.
Also you can compress that file and attach it here.
Probably it's some tar header, but 7-Zip doesn't like some fields of that tar.
So it stops tar parsing.
What software was used to create that tar archive?
Sorry for the long delay.
I have no idea what software was used as I haven't created the archive.
File "2" ist attached, without compression as it's very small.
please attach also 3.tar compressed.
Here it is.
That tar uses special
items to store long file names.
but tar header for
././@LongLink
item doesn't contain value in "Mode" field. And current 7-Zip doesn't like it. So it stops parsing.I'll fix it.
So next version of 7-zip will extract such TARs.