On Sat, 08 Jan 2005 14:22:43 -0700, stuporglue <[EMAIL PROTECTED]> wrote: > > If it's an image of an entire drive, you would do nothing with the > > drive. Just dd it right back onto the drive. All the filesystem and > > partition information would be stored in the image. > > Wow! > > So to copy from the disk to the image I could do something like: > dd if=/dev/hdb of=/mount/otherdisk/hdb.img > and it'd get the whole thing? > > And to copy back: > dd if=/mount/otherdisk/hdb.img of=/dev/hdb
Yes but it can be woefully inefficient and slow. Some tricks to make it better: Pipe the output of dd into gzip and then onto the disk. Make huge files filled with zeroed blocks (dd if=/dev/zero of=/mnt/disk/file) and then delete them (this cleans out unused space). Adjust the block size dd uses. I forget which block size is good, but it changes the speed dramatically. -------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
