Tag Info

New answers tagged

2

The fact that you: can't decompress the file then because it is not recognized as a gzip file indicates that this is not a quirk of the file command misdetecting the file format. The file is actually not valid or it is corrupt. If these files were generated with normal gzip with no errors reported and normal gunzip cannot then decompress them then ...


2

If you really want to do this with dd, you need to split your reads up: dd if=/dev/sda bs=512 count=60515006 | gzip -9 > dump1.gz will dump the first 60515006 sectors of /dev/sda to dump1.gz, compressing with gzip. Then dd if=/dev/sda bs=512 skip=60517093 count=... | gzip -9 > dump2.gz will skip the failed part and dump the next however many ...


1

There's a lot of confusion here because there isn't just one zgrep. I have two versions on my system, zgrep from gzip and zgrep from zutils. The former is just a wrapper script that calls gzip -cdfq. It doesn't support the -r, --recursive switch.1 The latter is a c++ program and it supports the -r, --recursive option. Running zgrep --version | head -n 1 will ...



Top 50 recent answers are included