The first method is working perfectly fine but the second method is throwing me the error for any version of raw im
age file (2.0/2.1). Below is the error
bunzip2: Compressed file ends unexpectedly;
perhaps it is corrupted? *Possible* reason follows.
bunzip2: Invalid argument
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.
0+31222 records in
0+31222 records out
157735000 bytes (158 MB) copied, 22.3414 s, 7.1 MB/s.