LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Clone the Hard Disk (https://www.linuxquestions.org/questions/linux-software-2/clone-the-hard-disk-944379/)

louk88 05-11-2012 05:39 AM

Clone the Hard Disk
 
Hello,

I have a Centos 5 installed in my old PC, it contain Asterisk, web pages, others applications ..., how can i run the old HardDisk on the new PC?

Thx in advance

Ser Olmy 05-11-2012 07:36 AM

There are several ways to accomplish this:

- Move the old hard drive to the new PC and use it as the system drive

- Back up the old HD to an external drive with tar or something similar, then restore the backup to the new PC

- Install the new HD in the old PC (or vice versa), boot from a live CD (like System Rescue CD) and clone the old drive with any suitable tool (dd will do)

- Boot both the old and the new PC from a live CD and clone the drive across the network (can be done with dd and nc)

camorri 05-11-2012 07:42 AM

Have you got the hardware on the new system to physically mount the drive? If it is an IDE derive, do you have a IDE controller, cables and power on the new system?

If it is a SATA drive, do you have a SATA controller with an unused position for the SATA cable?

If yes to either, physically mount the device.

Now, what OS do you have on the new system? How is it booting? If you have another linux system installed, what boot loader are you using? You might only need to add a few lines to the boot loader to load up the CentOS system.

If you have incompatible hardware; ie a IDE drive from the old system, and no IDE controller in the new, then you could create a clone of the drive with a program like Clonezilla, and write it to a new drive on the new system. You will have to learn how to use Clonezilla.


All times are GMT -5. The time now is 07:21 AM.