bumanie said: But the original question was:
[INDENT]"I am trying to make an image of my entire drive for quick backups"[/INDENT] Well ... IMHO the real question is how and where is the image supposed to be stored? If we really mean a disk image then the correct command would be: ``` sudo dd if=/dev/sdX of=/path/to/where/we/store/the/backup_disk.img
dd if=/dev/sdX | gzip -9 > name.of.disk.image.gz
To uncompress you'd use something like
cat name.of.disk.image.gz | gunzip | dd of=/dev/sdX
However ... if on the other hand we're talking about disk cloning then you'd use something like this: ``` dd if=/dev/sdX of=/dev/sdY
The example that was given above was about disk cloning ... not disk imaging. Same command. Two different things :D
> **bumanie said:**
> You are quite right that dd will copy everything including empty space. IMHO that would only make sense if you e.g. use encrypted partitions and you want to copy the whole thing without opening up the encrypted volumes and their contents. If you use that on a normal disk ... as I said, IMHO it's not very efficient. Taking and restoring backups even of only slightly used disks will take hours and when compression is used your CPU will have quite a load to work on. But yes ... as you said: what's right for me doesn't have to be right for you. I am just voicing my opinion here. Do whatever works for you and use whatever method is able to get your data back in one piece. Ultimately that's all that counts: getting the data back. If you can do it with "dd" then by all means do so. :)