LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 06-26-2002, 10:02 PM   #1
BBlalock
Member
 
Registered: Apr 2002
Posts: 47

Rep: Reputation: 15
How to migrate to a new computer.


I've got a second machine that I want to use as my main machine, so I can give my sister a reliable box.

When you need to move your data to a new box, how do you do it?

Is there an easy way to move everything over at once without breaking anything?

Thanks!
 
Old 06-26-2002, 10:52 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 58
Wow, this depends on a lot of details... what do you have available?

1.Are both machines on a LAN? If so look into the tar command; just make one big tarball of everything you need and scp or ftp it over.

2.If a LAN isn't an option, there is always: Install operating system on Machine A, yank harddrive of Machine B and slap it in A, copy what you want from HD, move drive back.

3.Got a CD Burner?

Those are the first 3 things that come to mind.

Cheers,

Finegan
 
Old 06-27-2002, 06:53 AM   #3
burk
LQ Newbie
 
Registered: Aug 2001
Posts: 23

Rep: Reputation: 15
Check out Mondo at http://www.microwerks.net/~hugo/. You should be able to clone your setup with it, or just transfer the data you need. I just downloaded it the other day and haven't had time to play with it, but it looks like it should do what you want.

Dale
 
Old 06-27-2002, 07:28 AM   #4
BBlalock
Member
 
Registered: Apr 2002
Posts: 47

Original Poster
Rep: Reputation: 15
I have a network set up, and I tried copying my entire /home directory to the new computer, but that only broke things. Both computers have Mandrake 8.2, with identical user accounts and root passwards, but their hardware is completely different.

I looked at Mondo, but my machines have different hardware, so I don't think a clone of my system will work on the second box.

Maybe there isn't an easy way to do what I want? I know there wasn't in windows.
 
Old 06-27-2002, 09:27 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
So you don't mean just d/l music and things of that sort. You mean actually installed progs and user settings? While having diff hardware most likely won't work with the installed progs, I believe there is probably a way to keep user settings. If you did a:
cp /dev/hda/home /dev/hdb/home...
Instead try just cp'ing user by user. I think .profile and .bashrc are going to alot of the things you'll want to save. Of course it's late here so I might be totally wrong, but good luck.

What do you mean by 'data' I guess would be the next question?
 
Old 06-27-2002, 02:04 PM   #6
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 58
If you just want to take over the contents of one directory, just tarball the stuff, its easy. For instance, on Mandy crate #1 (insert your username where bob is)

cd /home/bob
tar czvf wholelottastuff.tar.gz *

This will take everything in the directory /home/bob (hence the *), and stuff it all into a single file (tar and the f option for file and c for compress), it'll print everything to the screen while it squishes it (hence the v for verbose), and zip it so it takes less space (der, the z, and also the .gz extension). Copy that to /home/bob on the other machine and extract it with:

tar xvzf wholelottastuff.tar.gz

(the x is for extract, you get the idea on the rest).

Cheers,

Finegan
 
  


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
Best way to migrate to X.org twinkers Debian 5 07-14-2005 11:13 AM
help to migrate mifan Linux - General 2 05-30-2005 04:06 PM
Migrate from AS to ES ? jarzan Linux - Enterprise 8 02-21-2005 01:02 AM
migrate from one machine to a new one wijnands Linux - Newbie 4 07-12-2004 10:43 AM
migrate to 2.6.0? carboncopy Slackware 2 01-05-2004 10:08 PM


All times are GMT -5. The time now is 12:56 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration