I have a weird problem here. I migrated my GF's drive from HDD to SSD. I had to shrink Windows partition and move partitions around to fit 750GB HDD to 512GB SSD. I think I did everything fine. Windows and Ubuntu both boot to the login screens. Only Ubuntu doesn't let her log in (both with screen keyboard and normal keyboard). Obviously, I though this is
lightdm issue. I tried to login via shell CTRL+SHIFT+F1. That doesn't work either. I have live USB, which I can boot from to mount linux partition. I didn't see anything unusual in the kern.log or syslog.
So then I tried to start recovery mode but that ends up showing usual login screen instead of the recovery menu. I am really puzzled here. If it would be a partition issue, it wouldn't have booted at all. Her home directory is in the same partition as the system. Whole Linux system is in same partition + there is swap partition.
I don't know how to proceed from here but reinstalling Ubuntu. What else can there be? Or how can I find the cause of the issue?
Edit: Sorry, I didn't explain the keyboard part nicely. Keyboard works all the time. The reason for me to try to log in with on screen keyboard was to eliminate any localization issues. The keyboard is german and if Ubuntu identifies it as US for some reason, special characters and y/z would be misplaced without the user noticing it.
Edit - How did I migrate the drive:
I have reduced the windows partition and moved partitions (inluding Ubuntu) after the windows partition after the reduced Windows partition in Gparted. This was done to move every partition before the end of the target drive. I cloned the source to target with
dd. At some point as expected
dd stopped with the "no space left on the device" error. Gparted didn't show the partition table of the new drive at this point, because the partition table had a wrong device size defined (remnant from the previous device). As suggested on the internet,
fdisk corrected that part. After this, I replaced the drives on the machine and I was simply able to boot both with Ubuntu and Windows. Windows has been working fine so far. Only in Ubuntu login doesn't work.