Transfering files to new system, how to?
So,
if i reinstall a distro/install new one, What is the most simple, smoothiest way to get control over the old userfiles (documents and so) on the new fresh install? I've always ended up just to recreate the old files if there has been complains about not owner of the file, or so, bcause not knowing for sure what to do. Afraid that breaking up something, or like losing files. I've tried to search simple answer but instructions have been bit complex. Like if the files are on usb stick memory or external usb disk, what is the correct procedure? |
First backup all of your files onto a usb memory stick or and external hard disk drive.
Perform the fresh installation of the distro and than just plug in the usb memory stick or external HDD and copy all of the files to the new installed system. |
:) But i always get these owner of file problems. So it's not normal to get them, right? How do solve the owner things without always sudo to use the file? It's not always every file but there's often some files, documents (created by myself on old system) which require owner change, or sudo them to edit.
Like i had some C++ programs coded by me, all of those were under previous ownership. |
2. you can on your next "distro" install is split your system, giving /home its own partition. this way if you ever do re-install, or change distors, you can keep your home then just attach it to the next install by pointing to its mount point during installation.
moduser or usermod chown are commands useful in controlling your file permissions. search on them, and get yourself comfortable in using them. |
Permissions can really turn you around until you understand them.
If you haven't already take a look here: https://www.linux.com/learn/understa...le-permissions |
BW-userx's suggestion is excellent. Since I started using a separate /home, life with upgrades and even installs of new distros has been much easier.
|
Quote:
it's probably an easy fix, but you need to show us first. get busy with a terminal; open the containing folder in a terminal and issue Code:
ls -al |
When it comes to owners and permissions remember there is one gotcha that can bite. The system does not use usernames for files, but uids and gids. The passwd and group files in /etc provide the names we are so used to. If your new system has different user ids and group ids then then your users will have problems. So step one is to make sure the user/uid and group/gid lists are the same. Then make sure your method of backing up and copying maintains the original uids and gids. rsync can be useful there.
|
Quote:
Regarding file "transfer" to the new distribution, I would recommend always having /home on a separate partition, and simply remount this under /home in the new distro to keep all the files etc from the old system. |
Personally I tend to copy all of my files over to my new home folder, then run the following:-
PHP Code:
EDIT: oh, and if you are installing a different version of the OS, overwriting the defaults on a good few folders can cause things to not work properly. This will vary depending on the OS and Desktop, but dconf is one I don't bother copying over. |
All times are GMT -5. The time now is 10:58 PM. |