At 11:01 11/08/99 -0400, you wrote:
>On Wed, 11 Aug 1999, you wrote:
>> I'am sure there is an open source solution. Anybody could got a simple way
>> to proceed ?
>> (like cat /dev/hda1 >> /dev/hdb1)
>> 
>What about dd if=/dev/hda1 of=/dev/hdb1 ??? (or sda1, or
>whatever...)???
The partions need to be of identical size for this to work (I believe).
When I last upgrade my home machine from a motley collection
of 500mb and 1g drives to a single 4g I connected the 4g up (it
is scsi), used fdisk to layout the partitions then mke2fs to make
a filesystem in each partion. 
Then
mount /dev/sdc1 /mnt/root
(assumes new root is on partition 1 scsi id 2)
cd /
find . -mount -print|cpio -pudv /mnt/root
umount /mnt/root
mount /dev/sdc5 /mnt/usr
(assumes new usr is on partition 1 scsi id 2)
cd /usr
find . -mount -print|cpio -pudv /mnt/usr

And so on for all required partions.
This does assume scsi drives - for ide use /dev/hd*.
Of course your partitioning may be completely different
but I hope the principle is clear.
(and you'll need to mkdir /mnt/root, /mnt/usr etc - but 
this is mandrake-expert so that is obvious ;)  )
Once all the data is across make a boot floppy, configure
the new drive as the old was id-wise, reboot with the
floppy and rerun lilo. Or live dangerously and discover
the joy of chrooted lilo (lilo -r /mnt/root).

Apologies if this has already been covered elsewhere. 


ttfn
nick@nexnix

Reply via email to