RE: How to duplicate a disk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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? 


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux