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.

  • What do you mean by: "Only Ubuntu doesn't let her log in (both with screen keyboard and normal keyboard)" Keyboard doesn't work on the login screen? Commented May 27, 2018 at 10:03
  • I mean that in Windows she can log in and it is not a keyboard issue. Sometimes with certain languages, if keyboard is not recognized correctly, people type wrong password without realizing. I wanted to exclude that by using on screen keyboard. But keyboard works. Commented May 27, 2018 at 10:22
  • So in ubuntu the keyboard stops working at the login screen? Is it a similar issue with the mouse? Commented May 27, 2018 at 10:25
  • No keyboard always works, but since you don't see the password you are typing, you might type the wrong password without knowing. That happens for instance with keyboards of other languages. Ubuntu sometimes doesn't recognize the language of the keyboard and thinks it is US. Then all the special characters, some letters rearrange. If you have a german keyboard, typing "y" would result in "z". Often people don't recognize that. On screen keyboard is a safer way to eliminate that confusion. But keyboard works all the time. It is not a keyboard issue. Sorry for not clarifying this earlier. Commented May 27, 2018 at 11:14
  • How did you perform the migration?
    – Kusalananda
    Commented May 27, 2018 at 14:08

1 Answer 1


After trying many things, I have salvaged the data and reinstalled Ubuntu (this time 18.04). Newly installed Ubuntu booted and allowed login on the freshly created user. This is not a real answer, therefore I won't accept it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .