Cannot find efi directory: issue with grub-install

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











up vote
2
down vote

favorite
4












I was facing grub rescue issue in linux. However i was able to login in the OS with below tutorial https://www.lisenet.com/2014/grub2-rescue-mode-error-unknown-filesystem/.
I have to upgrade grub to fix the problem.

I am getting error grub-install: error: cannot find EFI directory

I have filesystem as below

`sda4, sda5, sda6 for EFI system, linux swap, linux file system respectively.

I am not much experienced using mount or other commands.



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


Thanks







share|improve this question






















  • add to your answer what command you ran exactly that resulted in the error.
    – jdwolf
    Nov 19 '17 at 2:35














up vote
2
down vote

favorite
4












I was facing grub rescue issue in linux. However i was able to login in the OS with below tutorial https://www.lisenet.com/2014/grub2-rescue-mode-error-unknown-filesystem/.
I have to upgrade grub to fix the problem.

I am getting error grub-install: error: cannot find EFI directory

I have filesystem as below

`sda4, sda5, sda6 for EFI system, linux swap, linux file system respectively.

I am not much experienced using mount or other commands.



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


Thanks







share|improve this question






















  • add to your answer what command you ran exactly that resulted in the error.
    – jdwolf
    Nov 19 '17 at 2:35












up vote
2
down vote

favorite
4









up vote
2
down vote

favorite
4






4





I was facing grub rescue issue in linux. However i was able to login in the OS with below tutorial https://www.lisenet.com/2014/grub2-rescue-mode-error-unknown-filesystem/.
I have to upgrade grub to fix the problem.

I am getting error grub-install: error: cannot find EFI directory

I have filesystem as below

`sda4, sda5, sda6 for EFI system, linux swap, linux file system respectively.

I am not much experienced using mount or other commands.



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


Thanks







share|improve this question














I was facing grub rescue issue in linux. However i was able to login in the OS with below tutorial https://www.lisenet.com/2014/grub2-rescue-mode-error-unknown-filesystem/.
I have to upgrade grub to fix the problem.

I am getting error grub-install: error: cannot find EFI directory

I have filesystem as below

`sda4, sda5, sda6 for EFI system, linux swap, linux file system respectively.

I am not much experienced using mount or other commands.



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


Thanks









share|improve this question













share|improve this question




share|improve this question








edited Nov 19 '17 at 17:06

























asked Nov 18 '17 at 18:51









krishnakant

421110




421110











  • add to your answer what command you ran exactly that resulted in the error.
    – jdwolf
    Nov 19 '17 at 2:35
















  • add to your answer what command you ran exactly that resulted in the error.
    – jdwolf
    Nov 19 '17 at 2:35















add to your answer what command you ran exactly that resulted in the error.
– jdwolf
Nov 19 '17 at 2:35




add to your answer what command you ran exactly that resulted in the error.
– jdwolf
Nov 19 '17 at 2:35










2 Answers
2






active

oldest

votes

















up vote
2
down vote













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|improve this answer




















  • Thanks, In the grub-install --efi-directory=/boot/EFI as i chroot into /mnt.
    – krishnakant
    Nov 26 '17 at 19:20

















up vote
0
down vote













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




















    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%2f405472%2fcannot-find-efi-directory-issue-with-grub-install%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote













    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|improve this answer




















    • Thanks, In the grub-install --efi-directory=/boot/EFI as i chroot into /mnt.
      – krishnakant
      Nov 26 '17 at 19:20














    up vote
    2
    down vote













    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|improve this answer




















    • Thanks, In the grub-install --efi-directory=/boot/EFI as i chroot into /mnt.
      – krishnakant
      Nov 26 '17 at 19:20












    up vote
    2
    down vote










    up vote
    2
    down vote









    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|improve this answer












    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|improve this answer












    share|improve this answer



    share|improve this answer










    answered Nov 19 '17 at 2:44









    jdwolf

    2,392116




    2,392116











    • 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















    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












    up vote
    0
    down vote













    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
























      up vote
      0
      down vote













      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






















        up vote
        0
        down vote










        up vote
        0
        down vote









        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









        defalt

        2091413




        2091413



























             

            draft saved


            draft discarded















































             


            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













































































            Popular posts from this blog

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

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?