Transferring disks with partimage

Joep L. Blom jlblom at neuroweave.nl
Tue Jul 14 19:05:23 UTC 2009


Siggy Brentrup wrote:
> 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
> 
Fred,
Your suggestion is very interesting. However, I don't know the command 
"combine But saw that it can be installed with "apt-get install 
moreutils". I'll dig into it.
Siggy,
Of course I mean less effort by me. Computers are most of the time idle, 
so let them work
.
Curious you know about what we call "een splitje" i.e. a beer and an old 
genever (you know old in genever is according to the old recipe, not old 
in age). Actually I have had my 2 I drink every day (keeps me healthy). 
Sorry for the OT, couldn't resist.
Joep






More information about the ubuntu-users mailing list