0

I created some pigz (parallel gzip) - home page - compressed archives of my SSD disk drives. (compiled version 2.8)

I called one of them 4TB-SATA-disk--Windows10--2024-Jan-21.img.gz which says the size of the drive and the OS installed on it. Alternatively, the size is of course smaller in TiB which may be comfortably shown by fdisk and tools like it (Disk /dev/sda: 3.64 TiB).

I knew from the past, that listing the compressed file cannot show me the real size of contents. It will show 2.2GB or similar nonsense, even in Archive Manager for GNOME. It likely has something to do with gzip structure limitations.

However I had some doubts about the real size of the contents, therefore my question states how may I verify it?

2
  • xz doesn't have such limitations, can also be parallelized and compressed disk images can be mounted without having to decompress (and have better compression ratio, though take more effort to compress) Commented Jan 27, 2024 at 15:36
  • @StéphaneChazelas xz has the lowest performance, I can't imagine compressing a 4TB drive with it, the other comment I will inspect, thanks Commented Jan 27, 2024 at 16:31

1 Answer 1

0

When I thought about it, I realized that without uncompressing the archive, this likely will not be possible, so I came up with the following:

$ cat 4TB-SATA-disk--Windows10--2024-Jan-21.img.gz | unpigz -p8 | pv >/dev/null 
3.64TiB 1:56:53 [ 543MiB/s] [ 543MiB/s] [            <=>                       ]

While I still hope there is some other way, I post my solution for the record.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.