Tuesday, November 29, 2005

Copy HD method

Google Groups : comp.os.linux
Connect the new drive, say as hdc or hdd. Then do:

1) Use fdisk to create partitions to your likeing on the new drive.
2) For each file system partition that you make run mke2fs to make a file
system. And use mkswap on the swap parition.
3) Copy the data from the existion drives to the new drive with dump,
something like:
# mount /dev/hdc2 /mnt
# cd /mnt
# dump 0af - / | restore rf -
# rm restoresymtable
4) Make a current boot floppy
5) Move the new drive to the hda position, boot from floppy, and install
a bootloader (lilo or grub-install).

---
For a copy of your ext2 fs without dd'ing, something
like this should work:

cd /dest
dump 0f - / | restore -rf - (dumps root filesystem to /dest)

(assuming /dest is /dev/hda8 and that you have already run
mke2fs on it already and you have dump/restore installed -
it's in Red Hat 3.0.3 and higher).

0 Comments:

Post a Comment

<< Home