I can't give you precise directions on how to troubleshoot this, hoping someone else can chime in with some wisdom.
What I can tell you is that being able to log in and then failing to launch a session is definitely evidence that your system either cannot find or cannot access the /home
directory. I ran into the same thing not too long ago, but I guarantee you that we don't have the same problem. Mine was file permission related due to installing a new OS. You have the same OS.
When you installed your OS, did you create a root user account? Not an account that can use sudo
, I mean the root
user. That user has a special home directory, /root
, which is entirely separate from /home
. If you can find a guide that tells you how you can boot your OS as the root user, try that.
Put your system back into the broken state with the new partition in the fstab file, reboot, log in as root, and check the filesystem. If you did things correctly, a /home
directory should be there, and there should be files in it. If you don't see it, it means for whatever reason it failed to mount on startup. Try using the mount
command manually to force it to mount, and see if it gives an error. If it works with the command, it means your fstab is not correct.
Best of luck! Welcome to the Linux experience... lmao
I use KDE on Debian and did not encounter this problem when I did the reverse action (migrated
/home
from a second drive back to the system drive).This may be an insulting question, but are your files in the new home partition inside a
/home
directory on that partition? Because if they are, that would definitely mess it up. If you mounted that to/home
in your fstab file, then the path to your home dir would be/home/home/user
instead of/home/user
. Your user directory needs to be at the root of the filesystem on that partition.I expect you did not make this mistake, but a sanity check never hurts...
Oh, and check the files on the new partition with
ls -l
as well. See who owns them. If you did the copy with the root account or with sudo, the owner of the files might beroot
. They should be owned by the user you are trying to log in as.