[TW] Moving /home to a new drive
I am trying to move /home from a rather tired hdd to a new ssd on this desktop Tumbleweed system running KDE Plasma. / is on an nvme drive. I have formatted (xfs) a partition on the new drive (/dev/sda1) and copied /home from the old drive to the new drive. I have edited /etc/fstab to mount /dev/sda1 on /home and commented the line defining the hdd's mount point. When I reboot, I get as far as the login screen, but my password is not accepted. The login screen keeps reappearing asking for a password. Any suggestions as to what I may have missed out? Thanks Bob -- Bob Williams No HTML please. Plain text preferred. https://useplaintext.email/
Bob Williams composed on 2022-10-20 06:45 (UTC+0100):
I am trying to move /home from a rather tired hdd to a new ssd on this desktop Tumbleweed system running KDE Plasma.
/ is on an nvme drive.
I have formatted (xfs) a partition on the new drive (/dev/sda1) and copied /home from the old drive to the new drive.
I have edited /etc/fstab to mount /dev/sda1 on /home and commented the line defining the hdd's mount point.
When I reboot, I get as far as the login screen, but my password is not accepted. The login screen keeps reappearing asking for a password.
Any suggestions as to what I may have missed out?
Could be a typo. Can you login as root? If yes, reply with output from: mount | grep home cat /etc/fstab lsblk -f -- Evolution as taught in public schools is, like religion, based on faith, not based on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata
On 20. 10. 22, 8:03, Felix Miata wrote:
Bob Williams composed on 2022-10-20 06:45 (UTC+0100):
I am trying to move /home from a rather tired hdd to a new ssd on this desktop Tumbleweed system running KDE Plasma.
/ is on an nvme drive.
I have formatted (xfs) a partition on the new drive (/dev/sda1) and copied /home from the old drive to the new drive.
I have edited /etc/fstab to mount /dev/sda1 on /home and commented the line defining the hdd's mount point.
When I reboot, I get as far as the login screen, but my password is not accepted. The login screen keeps reappearing asking for a password.
Any suggestions as to what I may have missed out?
Could be a typo. Can you login as root? If yes, reply with output from:
mount | grep home cat /etc/fstab lsblk -f
And look into the logs. They (pam) should tell you exact reasons. Not-mounted /home should not disallow logins. It would just log you in to /. If login as root fails, boot to single user mode or with init=/bin/bash to investigate logs and fix things. -- js suse labs
On Thu, 20 Oct 2022 02:03:44 -0400 Felix Miata wrote:
Bob Williams composed on 2022-10-20 06:45 (UTC+0100):
I am trying to move /home from a rather tired hdd to a new ssd on this desktop Tumbleweed system running KDE Plasma.
/ is on an nvme drive.
I have formatted (xfs) a partition on the new drive (/dev/sda1) and copied /home from the old drive to the new drive.
I have edited /etc/fstab to mount /dev/sda1 on /home and commented the line defining the hdd's mount point.
When I reboot, I get as far as the login screen, but my password is not accepted. The login screen keeps reappearing asking for a password.
Any suggestions as to what I may have missed out?
Could be a typo. Can you login as root? If yes, reply with output from:
mount | grep home cat /etc/fstab lsblk -f
Deep shame and embarrassment. It was a typo! The new drive was mounted on /mnt. I had copied /home/userMe to /mnt instead of /mnt/userMe. Thank you for all the helpful suggestions. Bob -- Bob Williams No HTML please. Plain text preferred. https://useplaintext.email/
On Thu, Oct 20, 2022 at 06:45:59AM +0100, Bob Williams wrote:
When I reboot, I get as far as the login screen, but my password is not accepted. The login screen keeps reappearing asking for a password.
Any suggestions as to what I may have missed out?
Are the ownership and permissions to /home & /home/user correct from when you did the copy? (ie you did something like 'rsync -a /home /tmpnewxfsmountpoint/' to preserve permissions as it recursed). You can switch to a virtual console (CTRL+ALT+F1) and login as root to check. Try logging in at that or one of the other (F2...F6) virtual consoles as your regular user too, which will confirm that your password is correct and skip the auto-login/graphical complexities. Press CTRL+ALT+F7 to get back to the graphical login screen. Daniel
On Thu, 20 Oct 2022 06:45:59 +0100 Bob Williams <usenet@karmasailing.uk> wrote:
I am trying to move /home from a rather tired hdd to a new ssd on this desktop Tumbleweed system running KDE Plasma.
/ is on an nvme drive.
I have formatted (xfs) a partition on the new drive (/dev/sda1) and copied /home from the old drive to the new drive.
I have edited /etc/fstab to mount /dev/sda1 on /home and commented the line defining the hdd's mount point.
When I reboot, I get as far as the login screen, but my password is not accepted. The login screen keeps reappearing asking for a password.
Any suggestions as to what I may have missed out?
I see that symptom from time to time when the system cannot find userMe's home directory. My setup has /home on the / partition and only /home/UserMe is a link to some path on another disk. I also leave at least one user such as userZero on the / partition so that when I face this situation I just log-in as that userZero to see what fell off the back of the truck. THE most common reason for the incident is that the data drive hosting the linked userMe folder does not show up as /dev/sdb1, something that happens mostly with Suse for some reason and even though fstab uses ONLY uuid! At such times logging in as userZero and then su-ing in konsole lets me command "fdisk -l" and that tells me right off the bat if such is the problem. You can also hit one of the F keys to get a root login but I seldom do that so I can't say boo, that too would let you command "fdisk -l".
participants (5)
-
bent fender
-
Bob Williams
-
Daniel Morris
-
Felix Miata
-
Jiri Slaby