PDA

View Full Version : [ubuntu] Moving Home



Robbyx
August 16th, 2011, 03:22 AM
I have a new HD. I wish to copy all of contents of the old home partition to a new location. What is the best way to ensure that everything is copied over? I have just tried using a file manager (pcman) in root mode but it was not a success. Many errors and not all the directories in the original appear in the new home partiton.


here are some examples of the errors:


:i386.postrm: Error opening file '/media/home/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/var/lib/dpkg/info/libstdc++6:i386.postrm': No such file or directory
libstlport4.6ldbl.postrm: Error opening file '/media/home/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/var/lib/dpkg/info/libstlport4.6ldbl.postrm': No such file or directory
libsyncdaemon-1.0-1.postrm: Error opening file '/media/home/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/var/lib/dpkg/info/libsyncdaemon-1.0-1.postrm': No such file or directory
libtag1-vanilla.list: Error opening file '/media/home/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/var/lib/dpkg/info/libtag1-vanilla.list': No such file or directory
libtasn1-3:i386.list: Error opening file '/media/home/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/var/lib/dpkg/info/libtasn1-3:i386.list': No such file or directory
libtasn1-3:i386.postinst: Error opening file '/media/home/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/var/lib/dpkg/info/libtasn1-3:i386.postinst': No such file or directory
libtdb1.list: Error opening file '/media/home/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/var/lib/dpkg/info/libtdb1.list': No such file or directory
libtdb1.shlibs: Error opening file '/media/home/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin/.teamviewer/6/dosdevices/z:/var/lib/dpkg/info/libtdb1.shlibs': No such file or directory
libtelepa

Dutch70
August 16th, 2011, 03:31 AM
I didn't read all of it, but see if this helps.
HOWTO move /home to a new hard drive (http://ubuntuforums.org/showthread.php?t=250104)

I think rsync is the way to go.

Robbyx
August 16th, 2011, 12:46 PM
I tried your suggestion and used the suggested format. I found I had to adjust it. I think what I have done is sensible. One thing they left out was the sudo, without it loads of files were not copied because permission was denied.

sudo rsync -aSp --append-verify /media/45a2e92c-c759-4732-9662-988da7f8ea7b/robin /media/home/robin

Robbyx
August 16th, 2011, 01:13 PM
Is there a command line that shows uuid, label, device for all drives and partitions?

Robbyx
August 16th, 2011, 02:27 PM
I am following the advice at http://linuxologist.com/1general/howto-fresh-ubuntu-install-without-losing-your-current-settings/



Restore

Once your done with the fresh install, copy the file package.selections into your home. Then copy your sources.list file into /etc/apt/ and update it to match your current distro (e.g Gutsy –> Intrepid) you can use CTRL + H in gedit for that. Then do a “sudo apt-get update” ,and finally invoke:

sudo dpkg --set-selections /home/package.selections && apt-get dselect-upgrade

apt-get will now start downloading all your apps, this will take some time depending on the number of apps you have installed.


The following is not working. Do you know why?


robin@robin-EP35-DS3L:~$ sudo dpkg --set-selections /home/robin/package.selections && apt-get dselect-upgrade
dpkg: error: --set-selections takes no arguments

Type dpkg --help for help about installing and un-installing packages ;
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;

Options marked produce a lot of output - pipe it through `less' or `more'

dpkg man says:

--set-selections
Set package selections using file read from stdin. This file
should be in the format '<package> <state>', where state is one
of install, hold, deinstall or purge. Blank lines and comment
lines beginning with '#' are also permitted.

YesWeCan
August 16th, 2011, 02:44 PM
Is there a command line that shows uuid, label, device for all drives and partitions?
sudo blkid

Robbyx
August 16th, 2011, 05:04 PM
sudo blkid

Thank you for a very useful command.

Robbyx
August 16th, 2011, 05:07 PM
I am following the advice at http://linuxologist.com/1general/howto-fresh-ubuntu-install-without-losing-your-current-settings/





The following is not working. Do you know why?



dpkg man says:

I found the following which worked by Oldfred
http://ubuntuforums.org/showthread.php?t=1517306


Re: dpkg --set-selections < installed-software
It worked just fine for me. I did put my commands into a bash script so I can upgrade easily and install my software and configuration to multiple installs easily. Did you look at the file?

It should look like this - mine was very long:

abiword install
abiword-common install
abiword-help install
abiword-plugin-grammar install
etc


apt-get update
apt-get dist-upgrade
# Finally, install all the packages from previous install
# must have saved ubuntu-files from previous install to this directory
dpkg --set-selections < ubuntu-files
dselect
apt-get -y update
apt-get dselect-upgrade

Thank you for your support in sorting out my problem