move /home to another computer
I have just put together a new computer using an Intel i3-550 64 bit processor, and installed Windows (first), then Ubunutu 10.04. A separate /home partition was created. The linux partitions in this computer are formatted ext4.
Now I want to move my /home partition from my old 8.04 computer (32 bit, formatted ext3) which also has a separate /home partition. Both are connected to a lan, but so far I have not been able to connect from one to the other. I have done lots of googling on this and am astonished at the apparent complexity involved. There seem to be issues involving whether or not files in the /home partition in the old computer is in use at the time of copy or creating a tarball, user permissions, and I don't know what all else. Assuming that neither the ext3 on the old and ext4 on the new, nor the 32 bit on the old and the 64 bit on the new are not issues, how do I go about moving the /home from the old to the new? If possible, I would like to use a GUI rather than the command line, but if it is necessary to use the command line, please specify where one needs to be located in the file hierarchy in order to give the designated commands. I am not very knowledgeable about using the terminal. Also, I am a noob (probably apparent) so step-by-step instructions will be very helpful. Thanks in advance. |
Quote:
So, just to clear the issue: do you want to
Quote:
Quote:
Quote:
|
Thanks for yours.
Quote:
Quote:
|
Quote:
Code:
cat /etc/hostname |
Quote:
If so, then you could proceed in a number of ways. What I'd do would be to launch sshd in your old box. Then, from the new box you can do something like: Code:
scp -r root@a.b.c.d:/home/<whatever>/* $HOME/ You could also use rsync, or nfs. I am just more comfortable with ssh. If this is not what you want, please, give more details. |
New computer successfully pings old computer by name.
New computer successfully pings itself by name. Old computer not successful in pinging new computer by name. Gives message: Quote:
|
You can still operate using IP's, assuming that the network is correctly configured. This could be a firewall issue as well, or more probably a misconfigured /etc/hosts file.
|
Quote:
What distro are you using? Although doing things on the command line may seem a bit tedious, it also in many ways is easier and you learn how your computer operates. |
Ubuntu 9.04 on the old computer, and 10.04 on the new.
|
If I might make a suggestion...
The concern of not having files open generally isn't a concern for a regular user--you know when you have files open and are modifying them. That said, I'll give you some instructions that avoid logging into your account, making sure no files are open/changing. I avoid the networking thing because it sounds to me like the only reason for the network is to copy the files. If that's the case, it's the tail wagging the dog. Once the data is copied, then you can mess with the networking if and when you want to. I assume you installed 10.04 with a boot CD or you have a live CD Ubuntu CD at your disposal. 1. Boot the old computer with the Ubuntu boot CD 2. Do NOT install, but select the "try Ubuntu" option 3. After Ubuntu boots to the desktop, open a file manager window 4. You should see entries on the left pane representing the partitions of your old hard drive 5. Left click on each one until you find the partition that stores your old /home directory 6. Once you locate your home directory, right-click the directory with your username 7. In the pop-up menu, select "Compress" 8. You'll have a new window giving you some options. Pick whatever suits your needs: a) .tar.gz file is "standard" b) .tar.bz2 generally gives a little better compression in my experience c) .rar can be used to split the archive (if your home directory is massive) into manageable chunks (say 650 MB, 4.7 GB, or the size of a USB thumbdrive/external drive) 9. Choose the compression you want and where to save it. Save the archive in any directory of your old system's partitions EXCEPT for anywhere in your home directory (to avoid a archiving the archive). It should go without saying that you DO NOT want to save the archive in any of the in-memory live-CD filesystem directories. 10. Once the archive is complete, you can transfer it by burning it onto CD(s), DVD(s), USB drives, etc. and walking them over to the new machine. Do this step by any method you're comfortable with--using the live CD or booting into the old system's normal desktop. 11. On the new computer, extract the archive into a temporary location--DO NOT just dump the archive on top of your existing home directory. 12. Either leave the files there, or start pulling the individual files out and merge them into your new home directory. 13. Be careful with any dot files (e.g. .gconf, .mozilla, .ssh, etc.). DO NOT bulk copy them into your home directory. That could cause problems from minor warning messages to login failures. I would suggest you generally leave the dot files alone unless you are very, very familiar with them and know what you're doing. |
i92guboj, I somehow missed yours yesterday (probably when I was typing up a reply).
Sounds simple enough for me to pull it off, but just to make sure I understand this: on the old computer, go into terminal and type "sshd" (maybe sudo "ssd"?) (which I believe will cause the old computer to start listening for commands over the lan) (BTW, does this also cause the old computer to start listening for commands from over the internet, and if so, should I go offline from the I/N before issuing sshd?) Then from the new computer, I will go into terminal and issue the command: scp -r root@192.168.0.108:/home/Intel-i3-550/* $HOME/ (where 192.168.0.108 is the ip # of the new computer, and Intel-i3-550 is the name of the new computer) or, should it be: scp -r root@192.168.0.101:/home//Ubuntu/* $HOME/ (where 192.168.0.101 is the ip # of the old computer, and Ubuntu is the name of the old computer? Reason for asking is that I don't understand how the new computer finds the old /home partition and folder. Whichever it is, the authentication that will be requested presumably is for access to the /home folder on the old computer, and therefore should be the pw for the old computer? Thanks, |
Use the second one and the password from your old computer.
To get the sshd running you first have to install it. Code:
sudo apt-get install ssh |
Quote:
For max security, though, you should disable any external access while you are doing administrative stuff. That's always a good thing unless you are doing the administrative stuff from the outer side. This also will ensure that no one else is logged in remotely operating concurrently over the same files you are operating. Concurrency is always a problem. When you run sshd, it will surely tell you what config file it is using and some other info. It will also tell you if the daemon started correctly. That's the first step. Until that succeed you can't use ssh or scp from the other machines. Quote:
Assuming you use the same user name than you are using here, it would rather be like this: Code:
scp -r root@192.168.0.108:/home/Odyssey1942/* $HOME/ Code:
scp <source> <destination> Quote:
Quote:
|
Dark Helmet, Guess I missed yours while I was typing my earlier. Thank you sincerely for such complete and easy to follow instructions. I do have a couple of questions, and:
to answer yours, the new machine will boot into 10.04 (dual boot with Windoze) and I do have a live CD. The questions are: Quote:
Once uncompressed, how are they best transferred to the new /home directory? 12/13. This is a bit worrying because I would have hoped to just move the whole kit and kaboodle over without needing to know that certain files and folders should not be moved. I would not know where to begin with the "nots", so can I just not copy anything that begins with a " . "? Is that going to create other issues? ---------------------- Also i92guboj, between my previous, yours and TobiSGB's, I am comfortable that I understand it. ---------------------- As you all can see, I am undecided about which route to go, and of course may wind up trying both of necessity. |
Quote:
Then you copy files like normal. Open up a GUI file manager and drag-drop or open a command line and "cp /data/old_home/<somefile> /home/username/<somefile>" Quote:
Dot files are hidden by default in the GUI file manager. So, you can "go to town" if you're copying files that way. There should be no problems. You have to manually update a setting to show hidden/dot files. |
All times are GMT -5. The time now is 07:44 PM. |