Transferring disks with partimage

Siggy Brentrup ubuntu at psycho.i21k.de
Tue Jul 14 16:17:38 UTC 2009


On Tue, Jul 14, 2009 at 17:08 +0200, Joep L. Blom wrote:
> Fred Roller wrote:
> 
> > DD will work over the network.  Ensuring neither drive is mounted, the
> > command would look something like this:
> > 
> > dd if=/dev/sda1 |ssh user at destination.pc "dd of=/dev/sdb1 bs=4028
> > conv=notrunc"
> > 
> > sda1 = whatever source device
> > sdb1 = whatever destination drive
> > 
> > if you want to do the whole drive then drop the numbers (sda ->sdb)
> > 
> > this takes awhile (5-25 Mb/s is the range I have seen).
> > Hope this helps.  Check the archives, we just discussed this subject and
> > proceedures for both dd and rsync are there.
> > 
> > Hope this helps.
> > 
> Fred & Siggy,
> Thanks for the reply. I agree with Siggy that dd over the network is 
> dangerous moreover I don't want the same partition size on both drives. 
> The whole procedure is meant to store one 20 GB disk and one 80 GB disk 
> each on a separate partition on a 1 TB disk, well at least all the ext3 
> partitions. Of course the NTFS and FAT32 partitions will come on their 
> own partition. I was thinking along the line of using partimage-server 
> to move the images ( of each partition) to the destination system. 
> However that doesn't solve my wish to concatenate the smaller partitions.
> I'm still looking for a way to do that with a minimal of effort (!).
> Joep
Just curious: do you mean minimal effort for you or minimal effort
for the OS?.  Apart from some early experiments I have always used
a tar or cpio pipe for bulk copying, something along the lines of

  sudo  tar czf - /home | ssh sudo tar xzf - -C /

You might also consider to nfs mount the remote volume and use
the known commands but be carefull with root rights on the
remote volume.

In any case let the machine work for you and have a beer and
an oude genever :)

tot ziens
  Siggy
-- 
Please don't cc: me when replying on the list.
    bsb-at-psycho-dot-informationsanarchistik-dot-de
or:                    bsb-at-psycho-dot-i21k-dot-de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090714/0a7e7207/attachment.sig>


More information about the ubuntu-users mailing list