How to update grub in a encrypted partition

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








up vote
0
down vote

favorite












Yesterday I made an update in my Ubuntu 16.04. During the update, a grub screen appeared. A black screen with only this message :



GNU GRUB version 2.02~beta2-36ubuntu3.16

Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists possible device or file completions.

grub >


I touch the TAB touch, it shows me a lot of commands, but I don't know which one would be useful.



I try to restart my computer, but I fall into this screen immediately, without loading Ubuntu.



I have make a Boot Repair report, you can see it in this link :
boot-repair report



I find some people which have the same problem. They say it's a grub problem, which can be corrupted during its update.



But I cannot simply update grub : the specific part of mine is that I use encryption of my disk. This is why Boot-repair cannot provide me a solution.



I ran a live-usb key with Ubuntu 14.04, I see my partition with my data, but I cannot access to it because of permissions (I don't have any right, so I cannot make backups).



I hope someone will help me to repair grub with this encryption.



Cheers










share|improve this question

























    up vote
    0
    down vote

    favorite












    Yesterday I made an update in my Ubuntu 16.04. During the update, a grub screen appeared. A black screen with only this message :



    GNU GRUB version 2.02~beta2-36ubuntu3.16

    Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists possible device or file completions.

    grub >


    I touch the TAB touch, it shows me a lot of commands, but I don't know which one would be useful.



    I try to restart my computer, but I fall into this screen immediately, without loading Ubuntu.



    I have make a Boot Repair report, you can see it in this link :
    boot-repair report



    I find some people which have the same problem. They say it's a grub problem, which can be corrupted during its update.



    But I cannot simply update grub : the specific part of mine is that I use encryption of my disk. This is why Boot-repair cannot provide me a solution.



    I ran a live-usb key with Ubuntu 14.04, I see my partition with my data, but I cannot access to it because of permissions (I don't have any right, so I cannot make backups).



    I hope someone will help me to repair grub with this encryption.



    Cheers










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Yesterday I made an update in my Ubuntu 16.04. During the update, a grub screen appeared. A black screen with only this message :



      GNU GRUB version 2.02~beta2-36ubuntu3.16

      Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists possible device or file completions.

      grub >


      I touch the TAB touch, it shows me a lot of commands, but I don't know which one would be useful.



      I try to restart my computer, but I fall into this screen immediately, without loading Ubuntu.



      I have make a Boot Repair report, you can see it in this link :
      boot-repair report



      I find some people which have the same problem. They say it's a grub problem, which can be corrupted during its update.



      But I cannot simply update grub : the specific part of mine is that I use encryption of my disk. This is why Boot-repair cannot provide me a solution.



      I ran a live-usb key with Ubuntu 14.04, I see my partition with my data, but I cannot access to it because of permissions (I don't have any right, so I cannot make backups).



      I hope someone will help me to repair grub with this encryption.



      Cheers










      share|improve this question













      Yesterday I made an update in my Ubuntu 16.04. During the update, a grub screen appeared. A black screen with only this message :



      GNU GRUB version 2.02~beta2-36ubuntu3.16

      Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists possible device or file completions.

      grub >


      I touch the TAB touch, it shows me a lot of commands, but I don't know which one would be useful.



      I try to restart my computer, but I fall into this screen immediately, without loading Ubuntu.



      I have make a Boot Repair report, you can see it in this link :
      boot-repair report



      I find some people which have the same problem. They say it's a grub problem, which can be corrupted during its update.



      But I cannot simply update grub : the specific part of mine is that I use encryption of my disk. This is why Boot-repair cannot provide me a solution.



      I ran a live-usb key with Ubuntu 14.04, I see my partition with my data, but I cannot access to it because of permissions (I don't have any right, so I cannot make backups).



      I hope someone will help me to repair grub with this encryption.



      Cheers







      grub2 updates encryption ecryptfs






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 7 at 20:12









      Jarodd

      13




      13




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          I have posted below before, but was delete, because question asked was similar problem with grub, but without encryption. This is how I solved my grub problem with LUKS encryption:



          After updating (by ubuntu software) my laptop today (after not using it for one week) I have the same problem. Only a grub prompt. Also first tried Boot-Repair on Live USB, but didn't work. My laptop is luks encrypted, so searched for other solutions, I found:



          grub> ls

          (hd0) (hd0,gpt3) (hd3, gpt2) (hd0,gpt1)

          grub> insmod luks

          grub> cryptomount hd0,3

          Enter password

          Slot 0 opened

          grub> insmod lvm

          grub> ls

          (crypto0), etc.

          grub> configfile $prefix/grub.cfg



          This gives normal luks password entry screen, which accepted, but after that it immediatelly gives the following warning:



          Welcome to emergency mode! Etc. I have looked at the journal and found (in red):

          fsck failed with error code 4 and

          Failed to start File System on /dev/disk/by-uuid/etc-etc.



          Next thing I did was, enter maintance mode and command:

          fsck /dev/sda2

          After that I was able to log in normally, update by terminal and reboot. Did get another failure and had to run fsck /dev/sda2 again. After that I was able to reboot normally.



          So this solved the above problem (when you have an encrypted LUKS disk).






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "89"
            ;
            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: true,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            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%2faskubuntu.com%2fquestions%2f1004002%2fhow-to-update-grub-in-a-encrypted-partition%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













            I have posted below before, but was delete, because question asked was similar problem with grub, but without encryption. This is how I solved my grub problem with LUKS encryption:



            After updating (by ubuntu software) my laptop today (after not using it for one week) I have the same problem. Only a grub prompt. Also first tried Boot-Repair on Live USB, but didn't work. My laptop is luks encrypted, so searched for other solutions, I found:



            grub> ls

            (hd0) (hd0,gpt3) (hd3, gpt2) (hd0,gpt1)

            grub> insmod luks

            grub> cryptomount hd0,3

            Enter password

            Slot 0 opened

            grub> insmod lvm

            grub> ls

            (crypto0), etc.

            grub> configfile $prefix/grub.cfg



            This gives normal luks password entry screen, which accepted, but after that it immediatelly gives the following warning:



            Welcome to emergency mode! Etc. I have looked at the journal and found (in red):

            fsck failed with error code 4 and

            Failed to start File System on /dev/disk/by-uuid/etc-etc.



            Next thing I did was, enter maintance mode and command:

            fsck /dev/sda2

            After that I was able to log in normally, update by terminal and reboot. Did get another failure and had to run fsck /dev/sda2 again. After that I was able to reboot normally.



            So this solved the above problem (when you have an encrypted LUKS disk).






            share|improve this answer
























              up vote
              0
              down vote













              I have posted below before, but was delete, because question asked was similar problem with grub, but without encryption. This is how I solved my grub problem with LUKS encryption:



              After updating (by ubuntu software) my laptop today (after not using it for one week) I have the same problem. Only a grub prompt. Also first tried Boot-Repair on Live USB, but didn't work. My laptop is luks encrypted, so searched for other solutions, I found:



              grub> ls

              (hd0) (hd0,gpt3) (hd3, gpt2) (hd0,gpt1)

              grub> insmod luks

              grub> cryptomount hd0,3

              Enter password

              Slot 0 opened

              grub> insmod lvm

              grub> ls

              (crypto0), etc.

              grub> configfile $prefix/grub.cfg



              This gives normal luks password entry screen, which accepted, but after that it immediatelly gives the following warning:



              Welcome to emergency mode! Etc. I have looked at the journal and found (in red):

              fsck failed with error code 4 and

              Failed to start File System on /dev/disk/by-uuid/etc-etc.



              Next thing I did was, enter maintance mode and command:

              fsck /dev/sda2

              After that I was able to log in normally, update by terminal and reboot. Did get another failure and had to run fsck /dev/sda2 again. After that I was able to reboot normally.



              So this solved the above problem (when you have an encrypted LUKS disk).






              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                I have posted below before, but was delete, because question asked was similar problem with grub, but without encryption. This is how I solved my grub problem with LUKS encryption:



                After updating (by ubuntu software) my laptop today (after not using it for one week) I have the same problem. Only a grub prompt. Also first tried Boot-Repair on Live USB, but didn't work. My laptop is luks encrypted, so searched for other solutions, I found:



                grub> ls

                (hd0) (hd0,gpt3) (hd3, gpt2) (hd0,gpt1)

                grub> insmod luks

                grub> cryptomount hd0,3

                Enter password

                Slot 0 opened

                grub> insmod lvm

                grub> ls

                (crypto0), etc.

                grub> configfile $prefix/grub.cfg



                This gives normal luks password entry screen, which accepted, but after that it immediatelly gives the following warning:



                Welcome to emergency mode! Etc. I have looked at the journal and found (in red):

                fsck failed with error code 4 and

                Failed to start File System on /dev/disk/by-uuid/etc-etc.



                Next thing I did was, enter maintance mode and command:

                fsck /dev/sda2

                After that I was able to log in normally, update by terminal and reboot. Did get another failure and had to run fsck /dev/sda2 again. After that I was able to reboot normally.



                So this solved the above problem (when you have an encrypted LUKS disk).






                share|improve this answer












                I have posted below before, but was delete, because question asked was similar problem with grub, but without encryption. This is how I solved my grub problem with LUKS encryption:



                After updating (by ubuntu software) my laptop today (after not using it for one week) I have the same problem. Only a grub prompt. Also first tried Boot-Repair on Live USB, but didn't work. My laptop is luks encrypted, so searched for other solutions, I found:



                grub> ls

                (hd0) (hd0,gpt3) (hd3, gpt2) (hd0,gpt1)

                grub> insmod luks

                grub> cryptomount hd0,3

                Enter password

                Slot 0 opened

                grub> insmod lvm

                grub> ls

                (crypto0), etc.

                grub> configfile $prefix/grub.cfg



                This gives normal luks password entry screen, which accepted, but after that it immediatelly gives the following warning:



                Welcome to emergency mode! Etc. I have looked at the journal and found (in red):

                fsck failed with error code 4 and

                Failed to start File System on /dev/disk/by-uuid/etc-etc.



                Next thing I did was, enter maintance mode and command:

                fsck /dev/sda2

                After that I was able to log in normally, update by terminal and reboot. Did get another failure and had to run fsck /dev/sda2 again. After that I was able to reboot normally.



                So this solved the above problem (when you have an encrypted LUKS disk).







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 9 at 15:21









                5a54a

                12




                12



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1004002%2fhow-to-update-grub-in-a-encrypted-partition%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

                    Unable to upgrade pip

                    Cutting all the characters after the last /