Re: make image of a hard disk
2009/5/26 Umarzuki Mochlis <umarzuki@gmail.com>:
> There's a hard disk with bad sectors that I want to make a back up with
> ddrescue but the thing is, it is 1 TB and the backup location is also 1 TB
> and that is the only one I could afford right now. How do I compress it on
> the fly while making an image out of it?
Try, for example
$ dd_rescue /dev/sda1 - | gzip > image.gz
Where /dev/sda1 is your dying disk and image.gz is the compressed output.
Be aware that having stdout as the destination for dd_rescue means
it is unable to handle writing sparse files properly (if that is required).
cheers,
Owen.
Reply to: