Cannot find EFI directory: issue with grub-installTerminal crash during apt-upgrade on ubuntu and now upgrade...

The locus of polynomials with specified root multiplicities

Why didn't Trudy wear a breathing mask in Avatar?

Can't change the screenshot directory because "com.apple.screencapture: command not found"

What is the next number in the sequence 21, 21, 23, 20, 5, 25, 31, 24, ...?

Does the Flixbus N770 from Antwerp to Copenhagen go by ferry to Denmark

Can I voluntarily exit from the US after a 20 year overstay, or could I be detained at the airport?

Are there any phrases or idioms to describe someone rejected the chance to do something at first, but liked it the moment they tried it?

What should I do if I find a mistake in my submitted master's thesis?

Transiting through Switzerland by coach with lots of cash

Determine the Winner of a Game of Australian Football

How do I know how many sub-shells deep I am?

Can something have more sugar per 100g than the percentage of sugar that's in it?

I've been fired, was allowed to announce it as if I quit and given extra notice, how to handle the questions?

What's the difference between motherboard and chassis?

Spiral Stumper Series: Instructionless Puzzle

Injection from two strings to one string

Coffee Grounds and Gritty Butter Cream Icing

Would we have more than 8 minutes of light, if the sun "went out"?

Why is the final chapter of "The Midwich Cuckoos" entitled "Zellaby of Macedon"?

A goat is tied to the corner of a shed

How to prove (A v B), (A → C), (B → D) therefore (C v D)

Is there a penalty for switching targets?

Is negative resistance possible?

Where can I find Armory 92.3 for download?



Cannot find EFI directory: issue with grub-install


Terminal crash during apt-upgrade on ubuntu and now upgrade failsGrub doesn't recognize Win10 after first installing Win10 and then LinuxMintUbuntu overwrites grub, no boot option encrypted debianArch install - Can't install GRUBCan't install grub in Arch LinuxError “grub-efi-amd64-signed” when installing LinuxCorrupted Manjaro GRUB boot at new RX 580 graphics card video-linux driver install






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}








9















I was trying to rescue GRUB in Linux. I was able to login in the OS following this tutorial:



https://www.lisenet.com/2014/grub2-rescue-mode-error-unknown-filesystem/



I have to upgrade GRUB to fix the problem. However, when I run grub-install, I get an error:



$ grub-install /dev/sda
grub-install: error: cannot find EFI directory.


My file system contains sda4, sda5, and sda6 for the EFI system, Linux swap, and Linux file system respectively.



I am not very experienced using mount or other commands.










share|improve this question

































    9















    I was trying to rescue GRUB in Linux. I was able to login in the OS following this tutorial:



    https://www.lisenet.com/2014/grub2-rescue-mode-error-unknown-filesystem/



    I have to upgrade GRUB to fix the problem. However, when I run grub-install, I get an error:



    $ grub-install /dev/sda
    grub-install: error: cannot find EFI directory.


    My file system contains sda4, sda5, and sda6 for the EFI system, Linux swap, and Linux file system respectively.



    I am not very experienced using mount or other commands.










    share|improve this question





























      9












      9








      9


      8






      I was trying to rescue GRUB in Linux. I was able to login in the OS following this tutorial:



      https://www.lisenet.com/2014/grub2-rescue-mode-error-unknown-filesystem/



      I have to upgrade GRUB to fix the problem. However, when I run grub-install, I get an error:



      $ grub-install /dev/sda
      grub-install: error: cannot find EFI directory.


      My file system contains sda4, sda5, and sda6 for the EFI system, Linux swap, and Linux file system respectively.



      I am not very experienced using mount or other commands.










      share|improve this question
















      I was trying to rescue GRUB in Linux. I was able to login in the OS following this tutorial:



      https://www.lisenet.com/2014/grub2-rescue-mode-error-unknown-filesystem/



      I have to upgrade GRUB to fix the problem. However, when I run grub-install, I get an error:



      $ grub-install /dev/sda
      grub-install: error: cannot find EFI directory.


      My file system contains sda4, sda5, and sda6 for the EFI system, Linux swap, and Linux file system respectively.



      I am not very experienced using mount or other commands.







      linux grub






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 37 mins ago









      Jeff Schaller

      50.2k11 gold badges74 silver badges167 bronze badges




      50.2k11 gold badges74 silver badges167 bronze badges










      asked Nov 18 '17 at 18:51









      krishnakantkrishnakant

      771 gold badge2 silver badges12 bronze badges




      771 gold badge2 silver badges12 bronze badges

























          2 Answers
          2






          active

          oldest

          votes


















          8
















          When you run grub-install by default it assumes the EFI system is mounted as /boot/efi



          It depends on your distribution where EFI system is mounted and on some distributions it isn't mounted after boot.



          First check if /boot/efi is mounted with



          mount | grep /boot/efi


          If that doesn't work try



          mount | grep /dev/sda6


          To see if its amounted elsewhere. If neither do:



          mount /dev/sda6 /mnt


          Now run:



          grub-install --efi-directory=/mnt/efi
          grub-mkconfig -o /boot/grub/grub.cfg




          share





















          • 1





            Thanks, In the grub-install --efi-directory=/boot/EFI as i chroot into /mnt.

            – krishnakant
            Nov 26 '17 at 19:20











          • Maybe stupid Q but I don't have an EFI dir. Where do I get one? I mean it is supposed to contain files, which command can recreate it?

            – Lennart Rolland
            Aug 29 at 0:18











          • @LennartRolland If you have a UEFI compatible system then your system drive will be GPT partitioned and contains a "UEFI System partition." usually the first partition and will be of the type EF00. Many distributions will mount this by default as /boot/efi to among other things allow the GRUB boot loader to update its files. If not you'll have to mount it yourself and add it to fstab. You might also have a UEFI system but that is using legacy mode which means your partitions will be msdos type and you won't have a /boot/efi. Weirder configurations exist but that covers the majority of them.

            – jdwolf
            Sep 8 at 20:43





















          1
















          Grub rescue mode can be treated as



          set root=(hd0,gpt6)
          set prefix=(hd0,gpt6)/boot/grub
          insmod normal
          normal


          Once you login, enter sudo update-grub && sudo grub-install /dev/sda.






          share|improve this answer


























          • Should the grub-install not the done before the update-grub?

            – danger89
            Oct 18 '18 at 22:13















          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          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%2f405472%2fcannot-find-efi-directory-issue-with-grub-install%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          8
















          When you run grub-install by default it assumes the EFI system is mounted as /boot/efi



          It depends on your distribution where EFI system is mounted and on some distributions it isn't mounted after boot.



          First check if /boot/efi is mounted with



          mount | grep /boot/efi


          If that doesn't work try



          mount | grep /dev/sda6


          To see if its amounted elsewhere. If neither do:



          mount /dev/sda6 /mnt


          Now run:



          grub-install --efi-directory=/mnt/efi
          grub-mkconfig -o /boot/grub/grub.cfg




          share





















          • 1





            Thanks, In the grub-install --efi-directory=/boot/EFI as i chroot into /mnt.

            – krishnakant
            Nov 26 '17 at 19:20











          • Maybe stupid Q but I don't have an EFI dir. Where do I get one? I mean it is supposed to contain files, which command can recreate it?

            – Lennart Rolland
            Aug 29 at 0:18











          • @LennartRolland If you have a UEFI compatible system then your system drive will be GPT partitioned and contains a "UEFI System partition." usually the first partition and will be of the type EF00. Many distributions will mount this by default as /boot/efi to among other things allow the GRUB boot loader to update its files. If not you'll have to mount it yourself and add it to fstab. You might also have a UEFI system but that is using legacy mode which means your partitions will be msdos type and you won't have a /boot/efi. Weirder configurations exist but that covers the majority of them.

            – jdwolf
            Sep 8 at 20:43


















          8
















          When you run grub-install by default it assumes the EFI system is mounted as /boot/efi



          It depends on your distribution where EFI system is mounted and on some distributions it isn't mounted after boot.



          First check if /boot/efi is mounted with



          mount | grep /boot/efi


          If that doesn't work try



          mount | grep /dev/sda6


          To see if its amounted elsewhere. If neither do:



          mount /dev/sda6 /mnt


          Now run:



          grub-install --efi-directory=/mnt/efi
          grub-mkconfig -o /boot/grub/grub.cfg




          share





















          • 1





            Thanks, In the grub-install --efi-directory=/boot/EFI as i chroot into /mnt.

            – krishnakant
            Nov 26 '17 at 19:20











          • Maybe stupid Q but I don't have an EFI dir. Where do I get one? I mean it is supposed to contain files, which command can recreate it?

            – Lennart Rolland
            Aug 29 at 0:18











          • @LennartRolland If you have a UEFI compatible system then your system drive will be GPT partitioned and contains a "UEFI System partition." usually the first partition and will be of the type EF00. Many distributions will mount this by default as /boot/efi to among other things allow the GRUB boot loader to update its files. If not you'll have to mount it yourself and add it to fstab. You might also have a UEFI system but that is using legacy mode which means your partitions will be msdos type and you won't have a /boot/efi. Weirder configurations exist but that covers the majority of them.

            – jdwolf
            Sep 8 at 20:43
















          8














          8










          8









          When you run grub-install by default it assumes the EFI system is mounted as /boot/efi



          It depends on your distribution where EFI system is mounted and on some distributions it isn't mounted after boot.



          First check if /boot/efi is mounted with



          mount | grep /boot/efi


          If that doesn't work try



          mount | grep /dev/sda6


          To see if its amounted elsewhere. If neither do:



          mount /dev/sda6 /mnt


          Now run:



          grub-install --efi-directory=/mnt/efi
          grub-mkconfig -o /boot/grub/grub.cfg




          share













          When you run grub-install by default it assumes the EFI system is mounted as /boot/efi



          It depends on your distribution where EFI system is mounted and on some distributions it isn't mounted after boot.



          First check if /boot/efi is mounted with



          mount | grep /boot/efi


          If that doesn't work try



          mount | grep /dev/sda6


          To see if its amounted elsewhere. If neither do:



          mount /dev/sda6 /mnt


          Now run:



          grub-install --efi-directory=/mnt/efi
          grub-mkconfig -o /boot/grub/grub.cfg





          share











          share


          share










          answered Nov 19 '17 at 2:44









          jdwolfjdwolf

          3,1083 silver badges19 bronze badges




          3,1083 silver badges19 bronze badges











          • 1





            Thanks, In the grub-install --efi-directory=/boot/EFI as i chroot into /mnt.

            – krishnakant
            Nov 26 '17 at 19:20











          • Maybe stupid Q but I don't have an EFI dir. Where do I get one? I mean it is supposed to contain files, which command can recreate it?

            – Lennart Rolland
            Aug 29 at 0:18











          • @LennartRolland If you have a UEFI compatible system then your system drive will be GPT partitioned and contains a "UEFI System partition." usually the first partition and will be of the type EF00. Many distributions will mount this by default as /boot/efi to among other things allow the GRUB boot loader to update its files. If not you'll have to mount it yourself and add it to fstab. You might also have a UEFI system but that is using legacy mode which means your partitions will be msdos type and you won't have a /boot/efi. Weirder configurations exist but that covers the majority of them.

            – jdwolf
            Sep 8 at 20:43
















          • 1





            Thanks, In the grub-install --efi-directory=/boot/EFI as i chroot into /mnt.

            – krishnakant
            Nov 26 '17 at 19:20











          • Maybe stupid Q but I don't have an EFI dir. Where do I get one? I mean it is supposed to contain files, which command can recreate it?

            – Lennart Rolland
            Aug 29 at 0:18











          • @LennartRolland If you have a UEFI compatible system then your system drive will be GPT partitioned and contains a "UEFI System partition." usually the first partition and will be of the type EF00. Many distributions will mount this by default as /boot/efi to among other things allow the GRUB boot loader to update its files. If not you'll have to mount it yourself and add it to fstab. You might also have a UEFI system but that is using legacy mode which means your partitions will be msdos type and you won't have a /boot/efi. Weirder configurations exist but that covers the majority of them.

            – jdwolf
            Sep 8 at 20:43










          1




          1





          Thanks, In the grub-install --efi-directory=/boot/EFI as i chroot into /mnt.

          – krishnakant
          Nov 26 '17 at 19:20





          Thanks, In the grub-install --efi-directory=/boot/EFI as i chroot into /mnt.

          – krishnakant
          Nov 26 '17 at 19:20













          Maybe stupid Q but I don't have an EFI dir. Where do I get one? I mean it is supposed to contain files, which command can recreate it?

          – Lennart Rolland
          Aug 29 at 0:18





          Maybe stupid Q but I don't have an EFI dir. Where do I get one? I mean it is supposed to contain files, which command can recreate it?

          – Lennart Rolland
          Aug 29 at 0:18













          @LennartRolland If you have a UEFI compatible system then your system drive will be GPT partitioned and contains a "UEFI System partition." usually the first partition and will be of the type EF00. Many distributions will mount this by default as /boot/efi to among other things allow the GRUB boot loader to update its files. If not you'll have to mount it yourself and add it to fstab. You might also have a UEFI system but that is using legacy mode which means your partitions will be msdos type and you won't have a /boot/efi. Weirder configurations exist but that covers the majority of them.

          – jdwolf
          Sep 8 at 20:43







          @LennartRolland If you have a UEFI compatible system then your system drive will be GPT partitioned and contains a "UEFI System partition." usually the first partition and will be of the type EF00. Many distributions will mount this by default as /boot/efi to among other things allow the GRUB boot loader to update its files. If not you'll have to mount it yourself and add it to fstab. You might also have a UEFI system but that is using legacy mode which means your partitions will be msdos type and you won't have a /boot/efi. Weirder configurations exist but that covers the majority of them.

          – jdwolf
          Sep 8 at 20:43















          1
















          Grub rescue mode can be treated as



          set root=(hd0,gpt6)
          set prefix=(hd0,gpt6)/boot/grub
          insmod normal
          normal


          Once you login, enter sudo update-grub && sudo grub-install /dev/sda.






          share|improve this answer


























          • Should the grub-install not the done before the update-grub?

            – danger89
            Oct 18 '18 at 22:13


















          1
















          Grub rescue mode can be treated as



          set root=(hd0,gpt6)
          set prefix=(hd0,gpt6)/boot/grub
          insmod normal
          normal


          Once you login, enter sudo update-grub && sudo grub-install /dev/sda.






          share|improve this answer


























          • Should the grub-install not the done before the update-grub?

            – danger89
            Oct 18 '18 at 22:13
















          1














          1










          1









          Grub rescue mode can be treated as



          set root=(hd0,gpt6)
          set prefix=(hd0,gpt6)/boot/grub
          insmod normal
          normal


          Once you login, enter sudo update-grub && sudo grub-install /dev/sda.






          share|improve this answer













          Grub rescue mode can be treated as



          set root=(hd0,gpt6)
          set prefix=(hd0,gpt6)/boot/grub
          insmod normal
          normal


          Once you login, enter sudo update-grub && sudo grub-install /dev/sda.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 19 '17 at 17:46









          defaltdefalt

          2242 gold badges5 silver badges14 bronze badges




          2242 gold badges5 silver badges14 bronze badges
















          • Should the grub-install not the done before the update-grub?

            – danger89
            Oct 18 '18 at 22:13





















          • Should the grub-install not the done before the update-grub?

            – danger89
            Oct 18 '18 at 22:13



















          Should the grub-install not the done before the update-grub?

          – danger89
          Oct 18 '18 at 22:13







          Should the grub-install not the done before the update-grub?

          – danger89
          Oct 18 '18 at 22:13





















          draft saved

          draft discarded



















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f405472%2fcannot-find-efi-directory-issue-with-grub-install%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...