Sample Header Ad - 728x90

How to extract all uncorrupted file from bzip2 compression?

1 vote
1 answer
1932 views
I am trying to uncompresss a bzip2 file (~55 GB) with the command
-jxvf file.tar.bz2
However I found that the decompression process gets stuck at a certain file and, after waiting a long duration, gives the error message shown below without decompressing the other files.
bzip2: Compressed file ends unexpectedly;
        perhaps it is corrupted?  *Possible* reason follows.
bzip2: Inappropriate ioctl for device
        Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
The last file where decompression stucks happens to be tar file. Is it possible to bypass this tar file and continue to extract other files if I'm not interested in that tar file?
Asked by Raghvender (11 rep)
Aug 15, 2022, 02:38 PM
Last activity: Aug 15, 2022, 03:47 PM