On Sun, Oct 30, 2005 at 04:08:08PM -0500, Marty wrote: > Roberto C. Sanchez wrote: > > >If the drives are *exactly* identical, you can move your old drive to be > >the slave on the secondary ide channel, which makes it hdd. Then place > >the new drive on hda. Boot Knoppix, or another suitable live CD distro, > >and then do this: > >dd if=/dev/hdd of=/dev/hda > > That's equivalent my cp example and it doesn't solve the problem. I want > (and need) to use an intermediate image file. Actually, it is not equivalent, as cp will modify the file metadata is it copies. If you need to use an intermediate step: dd if=/dev/hd? of=/path/to/some/place/foo.img dd if=/path/to/some/place/foo.img of=/dev/hd? The only thing is that the place where the intermediate image is placed needs enough free space to store the entire image, which will be the size of your hard drive. Optionally, you can look at a backup/restore tool like systemimager. -Roberto -- Roberto C. Sanchez http://familiasanchez.net/~roberto
Attachment:
pgpoCeuq9amsM.pgp
Description: PGP signature