I have a machine that contains a disk which one has CentOS 6 Installed.

In that disk, There are two partitions. One of them if mounted on /boot, and the second one is a PV for the rootvg.

I need to replace this disk. How to copy OS from one disk to another safely with no software like Acronis or Symantec Ghost?

  • Are the disks of the same size? What partition table are you using? – v7d8dpo4 Apr 10 '16 at 7:01
  • Yes, the size is the same. There are two partitions: An ext4 partition mount on /boot and another one is a PV, from rootvg. Inside rootvg, I have LVs for root ("/") and swap. – Roger Príncipe Apr 10 '16 at 7:56

If the size of the disks are the same, you can copy the whole disk.

dd if=/dev/sda of=/dev/sdb

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.