LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Blogs > sundry_50
User Name
Password

Notices

Rate this Entry

Transfer files from Ubuntu 8.04 to 10.04 on new machine

Posted 10-03-2011 at 02:47 PM by sundry_50

Old machine: Self built hardware (2007) from Microcenter and Tigerdirect, Ubuntu 8.04, dual boot Windows XP, two PATA drives, 32 bit.

New machine: Dell 560 off lease from Microcenter, Ubuntu 10.04.3 dual boot Windows7 Professional(preinstalled), added a drive, two SATA drives, 64 bit.

After reading 20 or so articles I decided to use the following method to transfer files for three users to a new machine.

Windows migration tool over the local home network appears to have been successful.

Ubuntu:
  • Installed the system, added users and checked to see that each user had the same UID (user id) on both machines.

    Removed the Ubuntu hard drive from the old machine and attached an adapter (EZ-Connect, USI-2535, $12.99) to the hard drive to allow USB connection on the new machine. This was a PATA drive and the new machine didn't have an easy way to connect to the mother board without opening the case, again.

    Plugged in the USB adapter, plugged in power to the adapter and mounted the Ubuntu 8.04 file system hard drive.

    Opened a terminal and changed directory to the user name who's directory I wanted to copy.
    $ cd /media/<drive identification>/home/<user name 1>/
    Entered the copy command.
    $ sudo cp -a . /home/<user name 1>
    The "cp -a" portion (-a = archive) should copy with all permissions and copy all directories below <user name 1> recursively.
    The single period after "-a" indicates my current directory which is /media/<drive identification>/home/<user name 1>.
    Finally, /home<user name 1> is the destination for the copied files.
    Repeat for each user.

I'd like to know if there was an easier method because I have another machine to update soon.

The URL for the information I finally used is:
http://dsl.org/cookbook/cookbook_8.html
Posted in Uncategorized
Views 3437 Comments 1
« Prev     Main     Next »
Total Comments 1

Comments

  1. Old Comment
    You could take a look at applications such as grsync and gcp. I have them on debian, they probably are available for ubuntu as well. The former is a GUI version of rsync, an actual synchronization application (but can be used for this sort of thing as well) and the latter is just a fancier version of "cp", but it has it so that you can stop at some point and resume later if you use all the right options (which I don't know). Grsync can sort of do that, but not exactly; it can compare the files before copying if you do it a second time, and chose to ignore by criteria such as size and md5sum. Perhaps plain rsync has even more options, I don't know.

    [G]rsync even has the advantage of compressing the files "on the fly" (if you chose to) so the whole copying runs faster when copying to a remote location. I suspect, but I'm not sure, that it can even be useful when copying to different partitions or hdds, I have the impression that network speed these days is somehow faster than copying from one hdd or partition to the other, but I may be dead wrong on this. It makes some sense though, that, if you're copying it to a different partition on the same hdd, it has the whole work of reading and writing to do, whereas if you're copying from the network, it has only to write. But I digress.
    Posted 10-12-2011 at 10:31 PM by the dsc the dsc is offline
 

  



All times are GMT -5. The time now is 02:49 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration