LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Transferring software to new laptop (https://www.linuxquestions.org/questions/linux-newbie-8/transferring-software-to-new-laptop-752063/)

aromaman 09-02-2009 06:36 AM

Transferring software to new laptop
 
I use clonezilla to backup my hp pavilion laptop system (dual boot Ubuntu 9.04 with Windows XP) to an external hard drive. If I buy a new laptop, will I be able to clone it from the external drive so as to avoid reloading all my software and files?

linuxlover.chaitanya 09-02-2009 06:49 AM

Yes. And No as well. If you backed up the entire installation and if your system hardware is similar you can do that. But if your hardware is not same you should defer from doing a clone. Your hardware will not work unless you have correct drivers loaded for it.
Another issue will come if your source hard drive is bigger in size than destination. It will not clone then. Both at least need to be of same capacity but destination can be bigger.

I strongly suggest you just take the backup for data. And install the os from scratch.

onebuck 09-02-2009 08:29 AM

Hi,

Welcome to LQ!

Quote:

Originally Posted by aromaman (Post 3666665)
I use clonezilla to backup my hp pavilion laptop system (dual boot Ubuntu 9.04 with Windows XP) to an external hard drive. If I buy a new laptop, will I be able to clone it from the external drive so as to avoid reloading all my software and files?

If you were to get the same hardware then your clone image would be usable. Don't expect the ability of imaging to the newer hardware which will require different driver support.

You could backup the old drive and use the configuration data for the distribution selectively. Even that may require some tweaking.
HAL, udev and rules come to mind as something that will not work. But those should be rewritten when you do a new install. Your basic '/etc/*.conf' files should work.

You could save '/home' but that too may create problems with a new release of your distro but should be OK to use on the same release.

David1357 09-02-2009 09:14 AM

Quote:

Originally Posted by aromaman (Post 3666665)
If I buy a new laptop, will I be able to clone it from the external drive so as to avoid reloading all my software and files?

Because of hardware differences, you will probably have to boot to some sort of rescue CD (e.g. your original Ubuntu install CD), mount your "/" partition (and your "/boot" partition if it is separate), and run "update-initramfs". Given the correct parameters, this will update the initrd file in your "/boot" directory.

It has been a while since I had to do this, but I think you need to chroot into the mount point of your "/" partition (e.g. "chroot /mnt/linux") before running "update-initramfs". This is because you want to use the scripts, binaries, and configuration files for your installation. You will need to use the "-c" option to force "update-initramfs" to create a new "initrd" file for the desired kernel (instead of the kernel from the rescue CD). Here is an example from the man page:
Code:

# update-initramfs -c -k 2.6.18-1-686
You will have to change the part after the "-k" to match the kernel that you will be booting when you boot from the hard drive.

aromaman 09-02-2009 12:25 PM

Thanks to all for the helpful replies.

aromaman

David1357 09-04-2009 03:27 PM

Quote:

Originally Posted by aromaman (Post 3667102)
Thanks to all for the helpful replies.

Did any of the replies solve your problem? If so, please indicate which post was most helpful, and mark the thread "solved" using the "Thread Tools" drop-down menu.

Thanks.

aromaman 09-05-2009 06:23 AM

Problem solved
 
All of these replies helped me see that the problem was far more complex than I had thought. The solution for me will most likey be to avoid fiddling around with the command line but rather to follow the advice from linuxlover.chaitanya and reload the software from the repositories and data from a data backup disk.

I can't see how to mark this thread as solved.

onebuck 09-05-2009 07:55 AM

Hi,

You use the 'Tread Tools'. :)

David1357 09-10-2009 05:20 PM

Quote:

Originally Posted by aromaman (Post 3670755)
I can't see how to mark this thread as solved.

Go the top of the thread, click on "Thread Tools", and select "Mark this thread as solved".


All times are GMT -5. The time now is 04:22 PM.