I do have a USB mass storage device of 4GB, in which I had created two partition, both are of ext4. First partition is 1.5G and another one is 2.5G
First partition is almost full while second one is empty.
When I take dd
of this device, then resultant dd file size is as expected i.e. 4GB. Now, when I gzip --best
to this file, then I am expecting resultant gz
file size must be aroung 1.4GB at the max. But practically, size remains aprrox. 2.5 GB.
The value, which I'm assuming, is wrong OR I miscalculated something ??
commands I had used are as:
dd if=/dev/sda of=USB.dd
gzip --best USB.dd
shred
the second partition before the above mentioned exercise ? – SHW Dec 26 '16 at 12:09dd if=/dev/zero of=${partition_to_clear}
orshred -z
– user4556274 Dec 26 '16 at 12:17