[CentOS] creating disk images

Fri Jul 14 20:45:26 UTC 2006
Eduardo Grosclaude <eduardo.grosclaude at gmail.com>

>
>
> >Replacing /dev/hda1 in your dd line by /dev/hda used to work.
>
>
> Thanks, I'll try that...
>
> Any way to drop the size of the created image?
> Ex: disk is 100G and I no longer need all the extra space. perhaps only
> 20Gig image instead of the full 100Gig.

Extracting and compressing images depends on what you're up to. You can
compress the created image, even on the fly, but then perhaps dd'ing a whole
disk is not such a good idea if all you're interested in is backing up
files, as you're saving lots of unused blocks in your filesystems, and also
taking a completely useless snapshot of your whole swap partition. If
backing up files is your business, you shouldn't be bypassing the filesystem
as with dd, so you will want to read about tar or cpio for instance. On the
other hand, you may wish to keep a pristine image of a disk for forensics
purposes, so dd is the way to go. Feel free to elaborate about your needs
and we may be able to help better.


-- 
Eduardo Grosclaude
Universidad Nacional del Comahue
Neuquen, Argentina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20060714/d70f3bf5/attachment-0004.html>