LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 05-03-2019, 06:57 AM   #1
Klaas Vaak
Member
 
Registered: Feb 2019
Distribution: Mint
Posts: 253

Rep: Reputation: 2
Copy /home dir. old laptop (Mint 19.1 XFCE) to new laptop (Mint 19.1 XFCE)?


I have just installed LM 19.1 XFCE on my new laptop, having used it on my old laptop. I retain the settings of the old laptop I am thinking of copying its /home directory to the new laptop. Any reasons why I should not do that?

Last edited by Klaas Vaak; 05-03-2019 at 11:56 AM.
 
Old 05-03-2019, 07:33 AM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
not really, unless you want to start out fresh. I'd check your cache in your old home, and thumbnails, and such there maybe some old stuff you do not really need to carry over into your new home.
 
Old 05-03-2019, 08:44 AM   #3
Klaas Vaak
Member
 
Registered: Feb 2019
Distribution: Mint
Posts: 253

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by BW-userx View Post
not really, unless you want to start out fresh. I'd check your cache in your old home, and thumbnails, and such there maybe some old stuff you do not really need to carry over into your new home.
OK, thanks for your advice.
 
Old 05-03-2019, 11:58 AM   #4
Klaas Vaak
Member
 
Registered: Feb 2019
Distribution: Mint
Posts: 253

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by BW-userx View Post
not really, unless you want to start out fresh. I'd check your cache in your old home, and thumbnails, and such there maybe some old stuff you do not really need to carry over into your new home.
I just copied the /home directory from my old PC to my new one. That seemed to have gone well, but after a few minutes the cursor froze again, so I forced a shutdown. When I booted up it went normally, except that even though I had set both on my old machine and the new one to log me in automatically, the PC now asked me to log in. No problem, except that the screen then went black and stayed black. Pressing ESC or Enter didn't do anything. I forced another shutdown, booted up, same thing again.

This seems to me like a simple setting that needs to get fixed, but how to avoid the black screen after typing in my password and which setting is it???
 
Old 05-03-2019, 12:05 PM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
what command did you use and method to copy it over to your other laptop?

try switching ttys, go in cli mode and rename that desktop/window manager config dir and then go back to your gui tty and log in to reset the desktop files. If everything works then you can delete the old renamed one. after you swapped out anything you need into the new one, if need be.

Last edited by BW-userx; 05-03-2019 at 12:06 PM.
 
Old 05-03-2019, 12:25 PM   #6
Klaas Vaak
Member
 
Registered: Feb 2019
Distribution: Mint
Posts: 253

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by BW-userx View Post
what command did you use and method to copy it over to your other laptop?
sudo cp -av /path/to/old/homedir /path/to/new/systems/home/
with the old home directory being on an ext4-formatted USB stick. (BTW I don't see an icon for code)

Quote:
try switching ttys, go in cli mode and rename that desktop/window manager config dir and then go back to your gui tty and log in to reset the desktop files. If everything works then you can delete the old renamed one. after you swapped out anything you need into the new one, if need be.
* What is "ttys"?
* can I go to the terminal before typing in my password?
* renaming the desktop/window manager config dir: what is the command I should use for that?
* by "old" config directory do you mean the one that was originally on my new machine? If so, that means that by "new" config directory you mean the one I copied from my old machine to the new machine.
* can I then log in?
* what do you mean by resetting the desktop files? Which files? Reset them to what?

Sorry for all these basic questions but I ma still a very green newbie, so please accept my apologies.
 
Old 05-03-2019, 01:25 PM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
ttys,

Code:
ctrl+alt+Fx
x=1-12 ie
Code:
ctrl+alt+F3
then login to get back to the gui login manager, just run down the f keys holding the ctrl+alt keys down, most likely it is F1, F5 or F6, some times F7 that is setup for your login manager to reside on.

The origin of TTY in Unix is from TeleTYpewriter.

you can type in code tags, [ code ] and [ / code ] without spaces between brackets. it is HTML code.

nevertheless if you cannot figure out how to switch your tty then you can just log in delete or rename your dir for that desktop then logout and back in as well. buy you saying it locks up switching ttys gets in you in under the terminal cli.
 
Old 05-04-2019, 06:06 AM   #8
Klaas Vaak
Member
 
Registered: Feb 2019
Distribution: Mint
Posts: 253

Original Poster
Rep: Reputation: 2
I told you I am a newbie, which is why I listed my questions about your reply, most of which you did not answer. The rest of your reply was gobbledygook to me. Next time try to put yourself in the newbie's place, then compose a reply. This is not meant as a kick in the groin, just some friendly advice from a newbie who is not versed in the technical side of Linux.

I did try the CTRL+Alt+Fx, which eventually gave me a log-in choice - I believe it was F5, but am not sure. After logging in the thing started reeling off a seemingly endless list of things it was doing/checking/... so I forced a shutdown.

I have decided to reinstall and to not bother spending hours trying to correct this, only to maybe come to the conclusion that it cannot be fixed to my satisfaction after all.
 
Old 05-04-2019, 06:22 AM   #9
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Make sure the things under $HOME/ have your user as the owner:group.

$ chown -R $(whoami):$(whoami) /home/$(whoami)

Otherwise most things $HOME/.??? can be deleted, although you'll probably want to avoid the .bash* ones. You might have some overrides in there causing issues. Or per the previous permissions are messed up as your user on the new system got a different uid value. And the copied /home has the "other" value which is likely a different user. So they cannot be read by the applications, or created, or written to by the apps. Thus causing them to mis-behave.

$ id
 
Old 05-04-2019, 07:05 AM   #10
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Klaas Vaak View Post
I told you I am a newbie, which is why I listed my questions about your reply, most of which you did not answer. The rest of your reply was gobbledygook to me. Next time try to put yourself in the newbie's place, then compose a reply. This is not meant as a kick in the groin, just some friendly advice from a newbie who is not versed in the technical side of Linux.

I did try the CTRL+Alt+Fx, which eventually gave me a log-in choice - I believe it was F5, but am not sure. After logging in the thing started reeling off a seemingly endless list of things it was doing/checking/... so I forced a shutdown.

I have decided to reinstall and to not bother spending hours trying to correct this, only to maybe come to the conclusion that it cannot be fixed to my satisfaction after all.
NO where do you inform me or other that you are a newbie in this thread other than this post. (deflection)

this fix might be a lot easier then you think.
Just taking it one step at a time here, yo.

it is not like I have and I am sure others have not had to change permissions. etc..


the way Shadow_7 wrote it is actually a nice way of doing it.
I'd of just given you this and told you to change the UID and GID to match you and your primary group before running it.
Code:
find / -group  100 -exec chgrp -h users {} \;

find / -user 1002 -exec chown -h userx {} \;
to get your id numbers and names
Code:

$ id
uid=1000(bob) gid=100(users) groups=100(users),6(disk),7(lp),9(kmem),10(wheel),11(floppy),16(dialout),17(audio),18(video),19(cdrom),20(games),71(input),83(plugdev),84(power),86(netdev),93(scanner)
which I actaully put in here then removed, just taking it one step at a time. so I removed it, and was going to have you try that next. but Shadow_7 beat me to it. so this poses another question.

when to toss in the towel and re-install to save time and/to elevate stress?

Switching tty's is a distro Independent to how many tty's the system has and which F keys work and which ones don't. Which by the way you too can take control of this as well.

The assigning of what key(s) and how many you want. But enough of that. as suggested you can run that command to change permissions in lue of re-installing.

this way too you will have all of your old settings customizations, and files now changed to what the current system permissions of your use has.

if that does not work you can also delete your user and home then add the user again, which too is a lot faster then re-installing the entire system for something like this.

One just needs to be in root users home or someone elses home and you should already have the root password, or that other user, which is just a name has sudo rights. Using the proper commands all of this could have been easily done without having to go through a complete system re-installation.

make your terminal your friend. As well as going from one laptop to another and asking about is it safe to just copy over files, shows a level of knowledge of copying, which is associated with permissions. Therefore indicates same said knowledge of this just by how the question was asked.

and btw LQ Newbie only means new to this forum. it does not in any way indicate ones knowledge of Linux or anything else.


Quote:
Originally Posted by OP
After logging in the thing started reeling off a seemingly endless list of things it was doing/checking/... so I forced a shutdown.
may indicate something completely different is going on with your system.

Last edited by BW-userx; 05-04-2019 at 07:42 AM.
 
Old 05-04-2019, 12:02 PM   #11
Klaas Vaak
Member
 
Registered: Feb 2019
Distribution: Mint
Posts: 253

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by BW-userx View Post
NO where do you inform me or other that you are a newbie in this thread other than this post. (deflection)
See the last line in post #6 above.

Quote:
this way too you will have all of your old settings customizations, and files now changed to what the current system permissions of your use has.

if that does not work you can also delete your user and home then add the user again, which too is a lot faster then re-installing the entire system for something like this.

One just needs to be in root users home or someone elses home and you should already have the root password, or that other user, which is just a name has sudo rights. Using the proper commands all of this could have been easily done without having to go through a complete system re-installation.
Why not go to that step directly? From your reply I gather that is possible, though I may be wrong.

I did a complete fresh reinstall, and will have to go through the frustrating but necessary task of setting things up manually again. I know the terminal is an important tool in Linux, and I am slowly getting to know my way around a bit, but at the end of the day my computer is just a tool that I want to work, I am not interested in endless tinkering, which is why I chose Mint rather than Arch.

Many thanks for your help with this issue, no doubt we'll meet again.
 
Old 05-04-2019, 12:37 PM   #12
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Klaas Vaak View Post
See the last line in post #6 above.


Why not go to that step directly? From your reply I gather that is possible, though I may be wrong.

I did a complete fresh reinstall, and will have to go through the frustrating but necessary task of setting things up manually again.
the reason why one copies over the old config files. To eliminate having to redo everything.
Quote:

I know the terminal is an important tool in Linux, and I am slowly getting to know my way around a bit, but at the end of the day my computer is just a tool that I want to work, I am not interested in endless tinkering, which is why I chose Mint rather than Arch.

Many thanks for your help with this issue, no doubt we'll meet again.
as pointed out, copy over, change permissions / ownership if necessary.

I've done this many times, copy over home to another one, though I've worked it down to only what I want to move over. Mostly config files for desktops, and window managers, and a few apps. Not my entire old home.

your system was glitching out, so I suggested going in the back door.

Last edited by BW-userx; 05-04-2019 at 01:54 PM.
 
Old 05-04-2019, 11:14 PM   #13
Klaas Vaak
Member
 
Registered: Feb 2019
Distribution: Mint
Posts: 253

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by BW-userx View Post
the reason why one copies over the old config files. To eliminate having to redo everything.

as pointed out, copy over, change permissions / ownership if necessary.

I've done this many times, copy over home to another one, though I've worked it down to only what I want to move over. Mostly config files for desktops, and window managers, and a few apps. Not my entire old home.
So why did you not mention this is your 1st reply (post #2 above) ??? That would have avoided a lot of problems, and then using the backdoor as a corrective action. I would expect someone with your experience to help newbies upfront, rather than let them muddle through and end up in a mess. I must say, I am rather surprised, to put it mildly.
 
Old 05-05-2019, 01:36 AM   #14
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Old config files can also be problematic. More so these days as things move to $HOME/.config/ versus older locations like $HOME/.pulse/. With various changes to config syntaxes and such.
 
Old 05-05-2019, 02:06 AM   #15
Klaas Vaak
Member
 
Registered: Feb 2019
Distribution: Mint
Posts: 253

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by Shadow_7 View Post
Old config files can also be problematic. More so these days as things move to $HOME/.config/ versus older locations like $HOME/.pulse/. With various changes to config syntaxes and such.
That is what I realised, and that even applies to moving /home between machines with the exact same OS, i.e. in my case Linux Mint 19.1 XFCE on the old and the new machine.

So your observation is in fact an advice to never transfer the /home directory. Nevertheless, there must be some way to safely preserve and transfer one's settings, or am I to accept that every 5 years, after the end of support for a particular LTS, or when one buys a new computer - ahem - one just has to install the new OS and reset everything manually??
 
  


Reply



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
copy files only in dir 2 that are not also in dir 1 into a new dir jr_bob_dobbs Linux - General 6 03-22-2018 10:35 AM
copying files from home dir to another dir from another dir in a lower dir chomito44 Linux - General 5 10-19-2013 06:18 PM
tar dir and sub dir removing files but not existing not empty dir j-me Linux - General 2 08-12-2013 11:37 AM
exclude parameter of rsync- 'dir' vs "dir" vs dir rng Linux - General 5 06-13-2012 01:47 AM
Command to display /dir, /dir/sub, /dir/sub/files knockout_artist Linux - Newbie 9 10-25-2007 02:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 01:04 AM.

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
Open Source Consulting | Domain Registration