erratic grub behaviour. Reinstall linux on dual boot!












1














I had Ubuntu and Windows 10 dual boot, working perfectly fine. Due to slow performance of Ubuntu on my machine, I wanted to replace it with Elementary OS, while maintaining the dual boot.
I fired up the E OS iso, chose something else, removed the ubuntu partition and created a new one and installed elementary on it. Theoretically, it should have worked.
When I restarted I directly booted into Windows 10. I knew that bios might have placed windows as higher priority boot than Linux. So I went to bios and changed the order.
Now, it landed me on grub prompt. I used this command to boot into Elementary:



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


And I was greeted into Elementary OS. Now I ran:



sudo update-grub


It went fine and I restarted the laptop, thinking that it worked!
Next thing, I was again dropped to grub prompt. When I entered the above command to boot into Elementary, grub menu appeared! It worked with all the entries (I could boot into Windows and Elementary OS)



I did a google search and ended on finding that I haven't ran sudo grub-install /dev/sda. So I went over to Elementary again and ran it. It gave me an error, saying that 'GPT partition labeled 'bios boot' could not be found' (similar). Again googling for some time resulted with, I needed to create a new partition with 'bios_grub' flag. (Why? It used to work earlier without such thing.) Did it. Still problem stays same. (I can still boot into Windows using BIOS or by entering the command at grub prompt and boot into either two!)



Edit:
I saw this answer while writing this question and thought of giving it a try.
But, I don't have a grubx64.efi in my /boot/grub directory! I thought maybe I didn't install the OS in EFI mode, but running dmesg | grep "EFI v" gives
[ 0.000000] efi: EFI v2.31 by American Megatrends.










share|improve this question





























    1














    I had Ubuntu and Windows 10 dual boot, working perfectly fine. Due to slow performance of Ubuntu on my machine, I wanted to replace it with Elementary OS, while maintaining the dual boot.
    I fired up the E OS iso, chose something else, removed the ubuntu partition and created a new one and installed elementary on it. Theoretically, it should have worked.
    When I restarted I directly booted into Windows 10. I knew that bios might have placed windows as higher priority boot than Linux. So I went to bios and changed the order.
    Now, it landed me on grub prompt. I used this command to boot into Elementary:



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


    And I was greeted into Elementary OS. Now I ran:



    sudo update-grub


    It went fine and I restarted the laptop, thinking that it worked!
    Next thing, I was again dropped to grub prompt. When I entered the above command to boot into Elementary, grub menu appeared! It worked with all the entries (I could boot into Windows and Elementary OS)



    I did a google search and ended on finding that I haven't ran sudo grub-install /dev/sda. So I went over to Elementary again and ran it. It gave me an error, saying that 'GPT partition labeled 'bios boot' could not be found' (similar). Again googling for some time resulted with, I needed to create a new partition with 'bios_grub' flag. (Why? It used to work earlier without such thing.) Did it. Still problem stays same. (I can still boot into Windows using BIOS or by entering the command at grub prompt and boot into either two!)



    Edit:
    I saw this answer while writing this question and thought of giving it a try.
    But, I don't have a grubx64.efi in my /boot/grub directory! I thought maybe I didn't install the OS in EFI mode, but running dmesg | grep "EFI v" gives
    [ 0.000000] efi: EFI v2.31 by American Megatrends.










    share|improve this question



























      1












      1








      1







      I had Ubuntu and Windows 10 dual boot, working perfectly fine. Due to slow performance of Ubuntu on my machine, I wanted to replace it with Elementary OS, while maintaining the dual boot.
      I fired up the E OS iso, chose something else, removed the ubuntu partition and created a new one and installed elementary on it. Theoretically, it should have worked.
      When I restarted I directly booted into Windows 10. I knew that bios might have placed windows as higher priority boot than Linux. So I went to bios and changed the order.
      Now, it landed me on grub prompt. I used this command to boot into Elementary:



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


      And I was greeted into Elementary OS. Now I ran:



      sudo update-grub


      It went fine and I restarted the laptop, thinking that it worked!
      Next thing, I was again dropped to grub prompt. When I entered the above command to boot into Elementary, grub menu appeared! It worked with all the entries (I could boot into Windows and Elementary OS)



      I did a google search and ended on finding that I haven't ran sudo grub-install /dev/sda. So I went over to Elementary again and ran it. It gave me an error, saying that 'GPT partition labeled 'bios boot' could not be found' (similar). Again googling for some time resulted with, I needed to create a new partition with 'bios_grub' flag. (Why? It used to work earlier without such thing.) Did it. Still problem stays same. (I can still boot into Windows using BIOS or by entering the command at grub prompt and boot into either two!)



      Edit:
      I saw this answer while writing this question and thought of giving it a try.
      But, I don't have a grubx64.efi in my /boot/grub directory! I thought maybe I didn't install the OS in EFI mode, but running dmesg | grep "EFI v" gives
      [ 0.000000] efi: EFI v2.31 by American Megatrends.










      share|improve this question















      I had Ubuntu and Windows 10 dual boot, working perfectly fine. Due to slow performance of Ubuntu on my machine, I wanted to replace it with Elementary OS, while maintaining the dual boot.
      I fired up the E OS iso, chose something else, removed the ubuntu partition and created a new one and installed elementary on it. Theoretically, it should have worked.
      When I restarted I directly booted into Windows 10. I knew that bios might have placed windows as higher priority boot than Linux. So I went to bios and changed the order.
      Now, it landed me on grub prompt. I used this command to boot into Elementary:



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


      And I was greeted into Elementary OS. Now I ran:



      sudo update-grub


      It went fine and I restarted the laptop, thinking that it worked!
      Next thing, I was again dropped to grub prompt. When I entered the above command to boot into Elementary, grub menu appeared! It worked with all the entries (I could boot into Windows and Elementary OS)



      I did a google search and ended on finding that I haven't ran sudo grub-install /dev/sda. So I went over to Elementary again and ran it. It gave me an error, saying that 'GPT partition labeled 'bios boot' could not be found' (similar). Again googling for some time resulted with, I needed to create a new partition with 'bios_grub' flag. (Why? It used to work earlier without such thing.) Did it. Still problem stays same. (I can still boot into Windows using BIOS or by entering the command at grub prompt and boot into either two!)



      Edit:
      I saw this answer while writing this question and thought of giving it a try.
      But, I don't have a grubx64.efi in my /boot/grub directory! I thought maybe I didn't install the OS in EFI mode, but running dmesg | grep "EFI v" gives
      [ 0.000000] efi: EFI v2.31 by American Megatrends.







      grub2 dual-boot grub uefi elementary-os






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 15 at 22:25









      Rui F Ribeiro

      38.9k1479129




      38.9k1479129










      asked Jan 7 at 14:47









      Popcorn

      64




      64






















          1 Answer
          1






          active

          oldest

          votes


















          2














          The partition with the bios_grub flag is only for situations when you want to use a legacy MBR-style bootloader on a GPT-partitioned disk.



          You should check the /boot/grub/device.map file and make sure it identifies as (hd0) the disk that will actually be (hd0) when you're booting Elementary OS. Do this before reinstalling the UEFI version of GRUB (see below).



          The UEFI bootloader file is not necessarily named grubx64.efi: it could be just grub.efi, or basically anything.efi. Run efibootmgr -v to see the exact pathname that is used by UEFI to load the UEFI GRUB bootloader. The pathname will be relative to the root of the EFI System Partition (also known as ESP partition): it is a small FAT32 partition that also contains the Windows bootloader. The efibootmgr command will typically display the boot file pathnames using the Windows backslash convention, rather than using Unix/Linux-style forward slashes.



          Some Linux distributions won't mount the ESP partition at all by default; they will only mount it whenever needed to reinstall the bootloader. Others mount the ESP partition to /boot/efi. If the ESP partition is mounted there, then the full pathname of the Windows UEFI bootloader as viewed from Linux would be /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi.



          The UEFI standard mandates that the bootloader should be located in /EFI/<vendor name> sub-directory of the ESP partition. So the UEFI GRUB bootloader for Elementary should be at /boot/efi/EFI/<something>/<something>.efi.



          It seems like the grub-install command on your system attempts to install a legacy-style GRUB bootloader, at least by default. Perhaps you'll need to use --target option like sudo grub-install --target=x86_64-efi /dev/sda to explicitly specify that you're (re)installing an UEFI version of the bootloader?






          share|improve this answer





















          • Removed the partition, still no avail. Also, there's no file called /boot/grub/device.map (weird?). Yes, I have a file /boot/grub/i386-pc/grub.efi. Also, the drive wasn't mounted, so I mounted it, it still contained the ubuntu grub files, so removed them. Running grub-install returns the same error stated at the top (gpt partition labled bios_grub blah blah). With target returns: modinfo.sh doesn't exist.
            – Popcorn
            Jan 7 at 17:18










          • At least in Debian 9, the parts of GRUB that are specific to x86_64 UEFI are in package named grub-efi-amd64-bin. The /boot/grub/i386-pc/grub.efi file sounds like a 32-bit version of EFI GRUB, which is useful only for certain Mac hardware models that had the odd combination of a 32-bit UEFI firmware but a 64-bit operating system.
            – telcoM
            Jan 7 at 17:23










          • lol, /boot/grub/i386-pc/grub.efi doesn't exist!
            – Popcorn
            Jan 7 at 17:29










          • okay, running boot-repair, will post if it worked!
            – Popcorn
            Jan 7 at 17:34










          • I don't know why or how, but boot-repair did it! I have both OS listed directly on grub (Though, I have extra entries like Windows UEFI something, I only need Elementary, Advanced menu and Windows on /dev/sda2 ) Thanks for the help!
            – Popcorn
            Jan 7 at 17:47













          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/3.0/"u003ecc by-sa 3.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%2f415392%2ferratic-grub-behaviour-reinstall-linux-on-dual-boot%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          The partition with the bios_grub flag is only for situations when you want to use a legacy MBR-style bootloader on a GPT-partitioned disk.



          You should check the /boot/grub/device.map file and make sure it identifies as (hd0) the disk that will actually be (hd0) when you're booting Elementary OS. Do this before reinstalling the UEFI version of GRUB (see below).



          The UEFI bootloader file is not necessarily named grubx64.efi: it could be just grub.efi, or basically anything.efi. Run efibootmgr -v to see the exact pathname that is used by UEFI to load the UEFI GRUB bootloader. The pathname will be relative to the root of the EFI System Partition (also known as ESP partition): it is a small FAT32 partition that also contains the Windows bootloader. The efibootmgr command will typically display the boot file pathnames using the Windows backslash convention, rather than using Unix/Linux-style forward slashes.



          Some Linux distributions won't mount the ESP partition at all by default; they will only mount it whenever needed to reinstall the bootloader. Others mount the ESP partition to /boot/efi. If the ESP partition is mounted there, then the full pathname of the Windows UEFI bootloader as viewed from Linux would be /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi.



          The UEFI standard mandates that the bootloader should be located in /EFI/<vendor name> sub-directory of the ESP partition. So the UEFI GRUB bootloader for Elementary should be at /boot/efi/EFI/<something>/<something>.efi.



          It seems like the grub-install command on your system attempts to install a legacy-style GRUB bootloader, at least by default. Perhaps you'll need to use --target option like sudo grub-install --target=x86_64-efi /dev/sda to explicitly specify that you're (re)installing an UEFI version of the bootloader?






          share|improve this answer





















          • Removed the partition, still no avail. Also, there's no file called /boot/grub/device.map (weird?). Yes, I have a file /boot/grub/i386-pc/grub.efi. Also, the drive wasn't mounted, so I mounted it, it still contained the ubuntu grub files, so removed them. Running grub-install returns the same error stated at the top (gpt partition labled bios_grub blah blah). With target returns: modinfo.sh doesn't exist.
            – Popcorn
            Jan 7 at 17:18










          • At least in Debian 9, the parts of GRUB that are specific to x86_64 UEFI are in package named grub-efi-amd64-bin. The /boot/grub/i386-pc/grub.efi file sounds like a 32-bit version of EFI GRUB, which is useful only for certain Mac hardware models that had the odd combination of a 32-bit UEFI firmware but a 64-bit operating system.
            – telcoM
            Jan 7 at 17:23










          • lol, /boot/grub/i386-pc/grub.efi doesn't exist!
            – Popcorn
            Jan 7 at 17:29










          • okay, running boot-repair, will post if it worked!
            – Popcorn
            Jan 7 at 17:34










          • I don't know why or how, but boot-repair did it! I have both OS listed directly on grub (Though, I have extra entries like Windows UEFI something, I only need Elementary, Advanced menu and Windows on /dev/sda2 ) Thanks for the help!
            – Popcorn
            Jan 7 at 17:47


















          2














          The partition with the bios_grub flag is only for situations when you want to use a legacy MBR-style bootloader on a GPT-partitioned disk.



          You should check the /boot/grub/device.map file and make sure it identifies as (hd0) the disk that will actually be (hd0) when you're booting Elementary OS. Do this before reinstalling the UEFI version of GRUB (see below).



          The UEFI bootloader file is not necessarily named grubx64.efi: it could be just grub.efi, or basically anything.efi. Run efibootmgr -v to see the exact pathname that is used by UEFI to load the UEFI GRUB bootloader. The pathname will be relative to the root of the EFI System Partition (also known as ESP partition): it is a small FAT32 partition that also contains the Windows bootloader. The efibootmgr command will typically display the boot file pathnames using the Windows backslash convention, rather than using Unix/Linux-style forward slashes.



          Some Linux distributions won't mount the ESP partition at all by default; they will only mount it whenever needed to reinstall the bootloader. Others mount the ESP partition to /boot/efi. If the ESP partition is mounted there, then the full pathname of the Windows UEFI bootloader as viewed from Linux would be /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi.



          The UEFI standard mandates that the bootloader should be located in /EFI/<vendor name> sub-directory of the ESP partition. So the UEFI GRUB bootloader for Elementary should be at /boot/efi/EFI/<something>/<something>.efi.



          It seems like the grub-install command on your system attempts to install a legacy-style GRUB bootloader, at least by default. Perhaps you'll need to use --target option like sudo grub-install --target=x86_64-efi /dev/sda to explicitly specify that you're (re)installing an UEFI version of the bootloader?






          share|improve this answer





















          • Removed the partition, still no avail. Also, there's no file called /boot/grub/device.map (weird?). Yes, I have a file /boot/grub/i386-pc/grub.efi. Also, the drive wasn't mounted, so I mounted it, it still contained the ubuntu grub files, so removed them. Running grub-install returns the same error stated at the top (gpt partition labled bios_grub blah blah). With target returns: modinfo.sh doesn't exist.
            – Popcorn
            Jan 7 at 17:18










          • At least in Debian 9, the parts of GRUB that are specific to x86_64 UEFI are in package named grub-efi-amd64-bin. The /boot/grub/i386-pc/grub.efi file sounds like a 32-bit version of EFI GRUB, which is useful only for certain Mac hardware models that had the odd combination of a 32-bit UEFI firmware but a 64-bit operating system.
            – telcoM
            Jan 7 at 17:23










          • lol, /boot/grub/i386-pc/grub.efi doesn't exist!
            – Popcorn
            Jan 7 at 17:29










          • okay, running boot-repair, will post if it worked!
            – Popcorn
            Jan 7 at 17:34










          • I don't know why or how, but boot-repair did it! I have both OS listed directly on grub (Though, I have extra entries like Windows UEFI something, I only need Elementary, Advanced menu and Windows on /dev/sda2 ) Thanks for the help!
            – Popcorn
            Jan 7 at 17:47
















          2












          2








          2






          The partition with the bios_grub flag is only for situations when you want to use a legacy MBR-style bootloader on a GPT-partitioned disk.



          You should check the /boot/grub/device.map file and make sure it identifies as (hd0) the disk that will actually be (hd0) when you're booting Elementary OS. Do this before reinstalling the UEFI version of GRUB (see below).



          The UEFI bootloader file is not necessarily named grubx64.efi: it could be just grub.efi, or basically anything.efi. Run efibootmgr -v to see the exact pathname that is used by UEFI to load the UEFI GRUB bootloader. The pathname will be relative to the root of the EFI System Partition (also known as ESP partition): it is a small FAT32 partition that also contains the Windows bootloader. The efibootmgr command will typically display the boot file pathnames using the Windows backslash convention, rather than using Unix/Linux-style forward slashes.



          Some Linux distributions won't mount the ESP partition at all by default; they will only mount it whenever needed to reinstall the bootloader. Others mount the ESP partition to /boot/efi. If the ESP partition is mounted there, then the full pathname of the Windows UEFI bootloader as viewed from Linux would be /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi.



          The UEFI standard mandates that the bootloader should be located in /EFI/<vendor name> sub-directory of the ESP partition. So the UEFI GRUB bootloader for Elementary should be at /boot/efi/EFI/<something>/<something>.efi.



          It seems like the grub-install command on your system attempts to install a legacy-style GRUB bootloader, at least by default. Perhaps you'll need to use --target option like sudo grub-install --target=x86_64-efi /dev/sda to explicitly specify that you're (re)installing an UEFI version of the bootloader?






          share|improve this answer












          The partition with the bios_grub flag is only for situations when you want to use a legacy MBR-style bootloader on a GPT-partitioned disk.



          You should check the /boot/grub/device.map file and make sure it identifies as (hd0) the disk that will actually be (hd0) when you're booting Elementary OS. Do this before reinstalling the UEFI version of GRUB (see below).



          The UEFI bootloader file is not necessarily named grubx64.efi: it could be just grub.efi, or basically anything.efi. Run efibootmgr -v to see the exact pathname that is used by UEFI to load the UEFI GRUB bootloader. The pathname will be relative to the root of the EFI System Partition (also known as ESP partition): it is a small FAT32 partition that also contains the Windows bootloader. The efibootmgr command will typically display the boot file pathnames using the Windows backslash convention, rather than using Unix/Linux-style forward slashes.



          Some Linux distributions won't mount the ESP partition at all by default; they will only mount it whenever needed to reinstall the bootloader. Others mount the ESP partition to /boot/efi. If the ESP partition is mounted there, then the full pathname of the Windows UEFI bootloader as viewed from Linux would be /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi.



          The UEFI standard mandates that the bootloader should be located in /EFI/<vendor name> sub-directory of the ESP partition. So the UEFI GRUB bootloader for Elementary should be at /boot/efi/EFI/<something>/<something>.efi.



          It seems like the grub-install command on your system attempts to install a legacy-style GRUB bootloader, at least by default. Perhaps you'll need to use --target option like sudo grub-install --target=x86_64-efi /dev/sda to explicitly specify that you're (re)installing an UEFI version of the bootloader?







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 7 at 15:57









          telcoM

          15.7k12143




          15.7k12143












          • Removed the partition, still no avail. Also, there's no file called /boot/grub/device.map (weird?). Yes, I have a file /boot/grub/i386-pc/grub.efi. Also, the drive wasn't mounted, so I mounted it, it still contained the ubuntu grub files, so removed them. Running grub-install returns the same error stated at the top (gpt partition labled bios_grub blah blah). With target returns: modinfo.sh doesn't exist.
            – Popcorn
            Jan 7 at 17:18










          • At least in Debian 9, the parts of GRUB that are specific to x86_64 UEFI are in package named grub-efi-amd64-bin. The /boot/grub/i386-pc/grub.efi file sounds like a 32-bit version of EFI GRUB, which is useful only for certain Mac hardware models that had the odd combination of a 32-bit UEFI firmware but a 64-bit operating system.
            – telcoM
            Jan 7 at 17:23










          • lol, /boot/grub/i386-pc/grub.efi doesn't exist!
            – Popcorn
            Jan 7 at 17:29










          • okay, running boot-repair, will post if it worked!
            – Popcorn
            Jan 7 at 17:34










          • I don't know why or how, but boot-repair did it! I have both OS listed directly on grub (Though, I have extra entries like Windows UEFI something, I only need Elementary, Advanced menu and Windows on /dev/sda2 ) Thanks for the help!
            – Popcorn
            Jan 7 at 17:47




















          • Removed the partition, still no avail. Also, there's no file called /boot/grub/device.map (weird?). Yes, I have a file /boot/grub/i386-pc/grub.efi. Also, the drive wasn't mounted, so I mounted it, it still contained the ubuntu grub files, so removed them. Running grub-install returns the same error stated at the top (gpt partition labled bios_grub blah blah). With target returns: modinfo.sh doesn't exist.
            – Popcorn
            Jan 7 at 17:18










          • At least in Debian 9, the parts of GRUB that are specific to x86_64 UEFI are in package named grub-efi-amd64-bin. The /boot/grub/i386-pc/grub.efi file sounds like a 32-bit version of EFI GRUB, which is useful only for certain Mac hardware models that had the odd combination of a 32-bit UEFI firmware but a 64-bit operating system.
            – telcoM
            Jan 7 at 17:23










          • lol, /boot/grub/i386-pc/grub.efi doesn't exist!
            – Popcorn
            Jan 7 at 17:29










          • okay, running boot-repair, will post if it worked!
            – Popcorn
            Jan 7 at 17:34










          • I don't know why or how, but boot-repair did it! I have both OS listed directly on grub (Though, I have extra entries like Windows UEFI something, I only need Elementary, Advanced menu and Windows on /dev/sda2 ) Thanks for the help!
            – Popcorn
            Jan 7 at 17:47


















          Removed the partition, still no avail. Also, there's no file called /boot/grub/device.map (weird?). Yes, I have a file /boot/grub/i386-pc/grub.efi. Also, the drive wasn't mounted, so I mounted it, it still contained the ubuntu grub files, so removed them. Running grub-install returns the same error stated at the top (gpt partition labled bios_grub blah blah). With target returns: modinfo.sh doesn't exist.
          – Popcorn
          Jan 7 at 17:18




          Removed the partition, still no avail. Also, there's no file called /boot/grub/device.map (weird?). Yes, I have a file /boot/grub/i386-pc/grub.efi. Also, the drive wasn't mounted, so I mounted it, it still contained the ubuntu grub files, so removed them. Running grub-install returns the same error stated at the top (gpt partition labled bios_grub blah blah). With target returns: modinfo.sh doesn't exist.
          – Popcorn
          Jan 7 at 17:18












          At least in Debian 9, the parts of GRUB that are specific to x86_64 UEFI are in package named grub-efi-amd64-bin. The /boot/grub/i386-pc/grub.efi file sounds like a 32-bit version of EFI GRUB, which is useful only for certain Mac hardware models that had the odd combination of a 32-bit UEFI firmware but a 64-bit operating system.
          – telcoM
          Jan 7 at 17:23




          At least in Debian 9, the parts of GRUB that are specific to x86_64 UEFI are in package named grub-efi-amd64-bin. The /boot/grub/i386-pc/grub.efi file sounds like a 32-bit version of EFI GRUB, which is useful only for certain Mac hardware models that had the odd combination of a 32-bit UEFI firmware but a 64-bit operating system.
          – telcoM
          Jan 7 at 17:23












          lol, /boot/grub/i386-pc/grub.efi doesn't exist!
          – Popcorn
          Jan 7 at 17:29




          lol, /boot/grub/i386-pc/grub.efi doesn't exist!
          – Popcorn
          Jan 7 at 17:29












          okay, running boot-repair, will post if it worked!
          – Popcorn
          Jan 7 at 17:34




          okay, running boot-repair, will post if it worked!
          – Popcorn
          Jan 7 at 17:34












          I don't know why or how, but boot-repair did it! I have both OS listed directly on grub (Though, I have extra entries like Windows UEFI something, I only need Elementary, Advanced menu and Windows on /dev/sda2 ) Thanks for the help!
          – Popcorn
          Jan 7 at 17:47






          I don't know why or how, but boot-repair did it! I have both OS listed directly on grub (Though, I have extra entries like Windows UEFI something, I only need Elementary, Advanced menu and Windows on /dev/sda2 ) Thanks for the help!
          – Popcorn
          Jan 7 at 17:47




















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2f415392%2ferratic-grub-behaviour-reinstall-linux-on-dual-boot%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

          Morgemoulin

          Scott Moir

          Souastre