Ubuntu won't login after disk migration

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












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?



Thanks!



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.







share|improve this question





















  • 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?
    – Kunal Gupta
    May 27 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.
    – Genom
    May 27 at 10:22











  • So in ubuntu the keyboard stops working at the login screen? Is it a similar issue with the mouse?
    – Kunal Gupta
    May 27 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.
    – Genom
    May 27 at 11:14











  • How did you perform the migration?
    – Kusalananda
    May 27 at 14:08














up vote
0
down vote

favorite












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?



Thanks!



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.







share|improve this question





















  • 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?
    – Kunal Gupta
    May 27 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.
    – Genom
    May 27 at 10:22











  • So in ubuntu the keyboard stops working at the login screen? Is it a similar issue with the mouse?
    – Kunal Gupta
    May 27 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.
    – Genom
    May 27 at 11:14











  • How did you perform the migration?
    – Kusalananda
    May 27 at 14:08












up vote
0
down vote

favorite









up vote
0
down vote

favorite











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?



Thanks!



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.







share|improve this question













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?



Thanks!



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.









share|improve this question












share|improve this question




share|improve this question








edited May 27 at 17:32
























asked May 27 at 9:12









Genom

284




284











  • 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?
    – Kunal Gupta
    May 27 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.
    – Genom
    May 27 at 10:22











  • So in ubuntu the keyboard stops working at the login screen? Is it a similar issue with the mouse?
    – Kunal Gupta
    May 27 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.
    – Genom
    May 27 at 11:14











  • How did you perform the migration?
    – Kusalananda
    May 27 at 14:08
















  • 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?
    – Kunal Gupta
    May 27 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.
    – Genom
    May 27 at 10:22











  • So in ubuntu the keyboard stops working at the login screen? Is it a similar issue with the mouse?
    – Kunal Gupta
    May 27 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.
    – Genom
    May 27 at 11:14











  • How did you perform the migration?
    – Kusalananda
    May 27 at 14:08















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?
– Kunal Gupta
May 27 at 10:03





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?
– Kunal Gupta
May 27 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.
– Genom
May 27 at 10:22





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.
– Genom
May 27 at 10:22













So in ubuntu the keyboard stops working at the login screen? Is it a similar issue with the mouse?
– Kunal Gupta
May 27 at 10:25




So in ubuntu the keyboard stops working at the login screen? Is it a similar issue with the mouse?
– Kunal Gupta
May 27 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.
– Genom
May 27 at 11:14





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.
– Genom
May 27 at 11:14













How did you perform the migration?
– Kusalananda
May 27 at 14:08




How did you perform the migration?
– Kusalananda
May 27 at 14:08










1 Answer
1






active

oldest

votes

















up vote
0
down vote













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.






share|improve this answer





















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f446286%2fubuntu-wont-login-after-disk-migration%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    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.






    share|improve this answer

























      up vote
      0
      down vote













      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.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        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.






        share|improve this answer













        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.







        share|improve this answer













        share|improve this answer



        share|improve this answer











        answered Jun 3 at 21:52









        Genom

        284




        284






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f446286%2fubuntu-wont-login-after-disk-migration%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay