LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 09-02-2009, 07:36 AM   #1
aromaman
LQ Newbie
 
Registered: Dec 2007
Location: Scotland
Distribution: Ubuntu
Posts: 21

Rep: Reputation: 0
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?
 
Old 09-02-2009, 07:49 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638

Rep: Reputation: Disabled
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.
 
Old 09-02-2009, 09:29 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,962
Blog Entries: 46

Rep: Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188
Hi,

Welcome to LQ!

Quote:
Originally Posted by aromaman View Post
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.
 
Old 09-02-2009, 10:14 AM   #4
David1357
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
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by aromaman View Post
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.
 
Old 09-02-2009, 01:25 PM   #5
aromaman
LQ Newbie
 
Registered: Dec 2007
Location: Scotland
Distribution: Ubuntu
Posts: 21

Original Poster
Rep: Reputation: 0
Thanks to all for the helpful replies.

aromaman
 
Old 09-04-2009, 04:27 PM   #6
David1357
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
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by aromaman View Post
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.
 
Old 09-05-2009, 07:23 AM   #7
aromaman
LQ Newbie
 
Registered: Dec 2007
Location: Scotland
Distribution: Ubuntu
Posts: 21

Original Poster
Rep: Reputation: 0
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.
 
Old 09-05-2009, 08:55 AM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,962
Blog Entries: 46

Rep: Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188Reputation: 3188
Hi,

You use the 'Tread Tools'.
 
Old 09-10-2009, 06:20 PM   #9
David1357
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
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by aromaman View Post
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".
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
new Vista HP laptop, transferring files from Mandriva via firewire?? mbvpixies78 Linux - Software 1 04-27-2008 01:18 PM
Compiling Software on a Laptop/Notebook win32sux Linux - Hardware 2 04-11-2005 01:42 PM
Transferring a software RAID array Dee-ehn Linux - Software 0 04-15-2004 05:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration