6

In terms of stability and performance, is it better to clone the entire HDD to a new computer or start with a fresh install?

btw, much of my production software is in a virtual machine, which can be easily moved.But still, my ubuntu baremetal install (non virtual) is highly customized and tweaked.

romanbird
  • 499
  • 1
    Image is easier for now. Next time you start over record everything for scripting. I'm currently writing scripts to make things match images in production. – RobotHumans Mar 02 '13 at 18:31

2 Answers2

1

IMHO, fresh install, a copy of the entire HDD (raw copy, dd style), or a copy of the whole file system (tar / rsync style) doesn't make much of a difference, neither in terms of stability nor performance.

When you talk about copies, though, you need to be careful about a few things:

  1. /boot/initrd* files. With each kernel you generally end up creating an initrd, an image containing basic drivers that the kernel itself needs before it is able to boot your system. If the hardware where you copy your system to is different, initrd is different, and may not be able to boot.

  2. xorg.conf configuration and similar. Again, if the hardware is different, it is unlikely that the old configuration will work. Much of X config, however, is automatically detected in recent days.

  3. if you copy the whole HDD raw using dd to a new machine, the new machine needs to have a disk of similar size. Unless you are the kind of person that enjoys playing with parted :) Also, make sure the disk you are copying is not mounted (or mounted read only) and sane (fsck clean) before copying it. You don't want to copy a corrupted disk or a disk in the middle of a write.

  4. if you copy the whole HDD using tar / rsync, make sure not to copy /proc and /sys, prefer using options like -a and --numeric-ids, and make sure again you don't copy files in an inconsistent state. Example: you really don't want mysql to be writing to a database file while you are copying it.

That said, I've done both fresh installs and copies.

Eliah Kagan
  • 117,780
rabexc
  • 141
  • 1
    To put things into more simple terms: Cloning keeps all your Data and Configuration, but keeping the configuration means it won't work on a PC with different hardware. Starting Fresh means that you start from the beginning with no strange bugs or glitches being caused by old data, but it also means that you loose all your old configuration. In the end make sure you backup your data no matter what you do, in case something goes wrong. – japzone Mar 26 '13 at 15:44
0

harddisk clone = OS clone/image ?

Clone /Backup / Image

  1. Well it depends on you what you need but if your current system is running fast without bugs and erros you can clone/image by using acronics or clonezilla and there are many more to clone entire os with whatever you have installed on your system and if the current OS is not to much stuffed than it will be cloned fast and restored fast i suggest you using acronics becasue its fast and stable.

Advantages of Clone

Once you have cloned the HD or OS than everytime your system has a big error instead of installing a new copy you can just restore everything in ONE click may be it takes normally 10-20 mins if the clone is not to much heavy.

Fresh Install

  1. On the other side fresh install is like out of the box new copy you have to reinstall all the things/ programs ETC.

My suggestion

If your OS has alot of your stuff and tweaks and you want to keep them than and your system runs well than do a clone becasue if you have any kind of error than first try to remove the error and than clone cz you dont want to clone the error with your OS clone. And if you dont care about your tweaks/customizations/data than do a Fresh install [Always recomended when you do a fresh install do a clone of fresh install when the system is working great]