On Wed, 2005-06-15 at 18:57 -0700, Mark Knecht wrote: > On 6/15/05, Zac Medico <[EMAIL PROTECTED]> wrote: > > Mark Knecht wrote: > > > Hi, > > > I'm not at all clear from reading man dd whether it will work for > > > drives that are not the same size? For instance my current working > > > drive in onePundit-R is 8GB and has 3 partitions - boot, root and > > > swap. I'd like to copy these partitions to a new 80GB drive for use in > > > another Pundit-R. > > > > > > 1) Can dd be used to copy partitions? (It seems so - just checking) > > > > > > 2) If yes above, then do I need to make identical sized partitions on > > > the target drive before copying, or does dd create the partition? (I > > > hope it doesn't actually) > > > > > > > > > > The dd program knows nothing about partions but it will work with the > > associated device file. I would use fdisk, mke2fs, and rsync. > > > > Zac > > OK, cool. Thanks. I've wanted a reason to learn a bit about rsync anyway.
Actually I would use fdisk/mke2fs and tar rather than rsync since it's much faster that way. (tar uses block-by-block copy and rsync should be using char-by-char?) -- Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM 98% Microsoft(tm) Free!! Neuromancer 13:10:26 up 2:29, 5 users, load average: 1.23, 1.21, 0.74 -- [email protected] mailing list

