on 12/24/2007 08:38 PM Thanasis wrote the following:
> I would first create the new partitions on the new disk keeping the same
> sequence (and increasing swap partition to 1GB), and then format them.
> Say the new drive is /dev/sdb. I would go like this (mind the spaces):
>
> mkdir /mnt/dst /mnt/src
>
> mount /dev/sdb3 /mnt/dst
> mount -o bind / /mnt/src && cd / && tar cfp - . |tar xfp - -C
> /mnt/dst                                         (to copy the / partition)
> mount /dev/sdb1 /mnt/dst/boot && cd /boot && tar cfp - . |tar xfp - -C
> /mnt/dst/boot              (to copy the /boot partition)
>  
> then install new grub on sdb's MBR:
>
> mount -t proc none /mnt/dst/proc
> mount -o bind /dev /mnt/dst/dev
> chroot /mnt/dst /bin/bash
> env-update && source /etc/profile
> grub
>   
>> device (hd0) /dev/sdb
>> root (hd0,0)
>> setup (hd0)
>> quit
>>     
>
> exit
>
> unmount all previous (the reverse sequence) and shutdown and swap disks :-)
>
>   
Please correct above to

mount -o bind / /mnt/src && cd /mnt/src && tar cfp - . |tar xfp - -C /mnt/dst 


-- 
[EMAIL PROTECTED] mailing list

Reply via email to