Ow Mun Heng wrote: > 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?) > >
Tar to copy files? I'm sorry, you lost me there :-). A possible "block by block" way that I know of would be to use dd and ext2resize. Zac -- [email protected] mailing list

