Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-02-2009, 07:36 AM
|
#1
|
LQ Newbie
Registered: Dec 2007
Location: Scotland
Distribution: Ubuntu
Posts: 21
Rep:
|
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?
|
|
|
09-02-2009, 07:49 AM
|
#2
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep:
|
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.
|
|
|
09-02-2009, 09:29 AM
|
#3
|
Moderator
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,962
|
Hi,
Welcome to LQ!
Quote:
Originally Posted by aromaman
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.
|
|
|
09-02-2009, 10:14 AM
|
#4
|
Senior Member
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Rep:
|
Quote:
Originally Posted by aromaman
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.
|
|
|
09-02-2009, 01:25 PM
|
#5
|
LQ Newbie
Registered: Dec 2007
Location: Scotland
Distribution: Ubuntu
Posts: 21
Original Poster
Rep:
|
Thanks to all for the helpful replies.
aromaman
|
|
|
09-04-2009, 04:27 PM
|
#6
|
Senior Member
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Rep:
|
Quote:
Originally Posted by aromaman
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.
|
|
|
09-05-2009, 07:23 AM
|
#7
|
LQ Newbie
Registered: Dec 2007
Location: Scotland
Distribution: Ubuntu
Posts: 21
Original Poster
Rep:
|
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.
|
|
|
09-05-2009, 08:55 AM
|
#8
|
Moderator
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,962
|
Hi,
You use the 'Tread Tools'.
|
|
|
09-10-2009, 06:20 PM
|
#9
|
Senior Member
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Rep:
|
Quote:
Originally Posted by aromaman
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:33 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|