Hello gabriel,

gl> I has assembled this script from others i has found on Internet. The purpose
gl> is to copy from hda to hdb all the data and prepare hdb to replace hda.
gl> I would like to know if i am doing think right and what could i add to 
gl> improve it. Should check the surface of new disk? How is it done?

I did something similar like this... but for backup-disk same size as
original one.
Switch to runlevel 1 so that the disk usage is near-to-none and there
are only the necessary few processes running.
Do
  swapoff /dev/hda3
  umount /boot
  mount -o remount,ro /
    (if that fails, not too bad)
  dd if=/dev/hda of=/dev/hdb bs=4096
    (might take some time :-)
  mount -o remount,rw /
  init 0

Then hang the second disk in place of the first one, it should
run out-of-the-box. Could be it needs an ext2fschk on the first
boot, but not more than that for us.

Best regards,
 Anselm                            mailto:[EMAIL PROTECTED]

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to