How to duplicate a disk

STYMA, ROBERT E (ROBERT) stymar at lucent.com
Thu Oct 27 20:14:32 UTC 2005


> Assuming the old drive is /dev/hda, the new one is /dev/hdb AND that
> you've set up identical partitions and formatted them (with 
> partition 1
> being the root filesystem, and 2 being the root user's home 
> directory),
> create new mountpoints and mount the new drive's partitions there:
> 
> 	# mkdir -p /newdrive/rootfs
> 	# mount /dev/hdb1 /newdrive/rootfs
> 	# mkdir -p /newdrive/rootuser
> 	# mount /dev/hdb2 /newdrive/rootuser
> 
> Then copy the contents:
> 
> 	# cp -ax / /newdrive/rootfs
> 	# cp -ax /root /newdrive/rootuser
> 
> Don't worry about the swap filesystem, just create the 
> partition for it
> on the new drive.
> 
Are you saying this will create a bootable drive after 
doing a grub-install on the new drive? 




More information about the fedora-list mailing list