On Wed, 2005-06-15 at 22:21 -0700, Zac Medico wrote:
> 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 :-).


Normally when I want to populate a new dir structure (which is empty to
begin with) I do

instead of issuing the command 
cp -a /some/area/mp3 /other/area/mp3-store

use
        
tar lcf - . | (cd /other/area/mp3-store; tar -xpvf - )
tar lcf - /path/to/file | (cd /other/area/mp3-store; tar -xpvf - )

tar -czf - /directory/to/copy | ssh systemB tar -xzvf - -C /tmp


> A possible "block by block" way that I know of would be to use dd and 
> ext2resize.
> Zac

-- 
Ow Mun Heng
Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM
98% Microsoft(tm) Free!! 
Neuromancer 13:32:18 up 2:51, 5 users, load average: 1.41, 1.15, 1.01 


-- 
[email protected] mailing list

Reply via email to