How can I manually define the grub prefix variable?











up vote
2
down vote

favorite
1












My grub broke, I don't know what caused it, it happened after I booted off a usb live image of a linux distro I was going to try to install, but I was only in the anaconda setup menu, the installation itself had not started yet. he installer froze out of the blue before I could start the installation, and I had to reboot the system. After I did somehow my grub installation on /dev/sdb broke and I can't boot into my existing OSes.



My setup is as follows: /dev/sdb1 (Boot), /dev/sdb3 (Arch Linux Root) /dev/sdb2 (Windows boot) /dev/sdb4 (Empty partition, reserved to be used as an LVM for other linux distros I intend to install).



The grub prefix should be (hd1,msdos1)/grub, but when I try to reinstall grub and fix it, it for some reason always wants to put (hd1,msdos3)/boot/grub as the prefix and root.



When I try to boot it gives me the typical error: file '/grub/i386-pc/normal.mod' not found, and I'm a little bit confused since the grub-install command runs fine on arch reporting no errors, but still doesn't install grub correctly.



This is what I do to boot from grub rescue:



set prefix=(hd1,msdos1)/grub
insmod normal
normal


When I do that it loads correctly, now I only need a way to define this manually when grub is installed. Also, just to be clear, running grub-install again does not fix the problem, only repeats it. Grub seems to expect me to have it installed on /boot/grub on /dev/sdb3 when it is in fact installed on /grub on /dev/sdb1










share|improve this question




























    up vote
    2
    down vote

    favorite
    1












    My grub broke, I don't know what caused it, it happened after I booted off a usb live image of a linux distro I was going to try to install, but I was only in the anaconda setup menu, the installation itself had not started yet. he installer froze out of the blue before I could start the installation, and I had to reboot the system. After I did somehow my grub installation on /dev/sdb broke and I can't boot into my existing OSes.



    My setup is as follows: /dev/sdb1 (Boot), /dev/sdb3 (Arch Linux Root) /dev/sdb2 (Windows boot) /dev/sdb4 (Empty partition, reserved to be used as an LVM for other linux distros I intend to install).



    The grub prefix should be (hd1,msdos1)/grub, but when I try to reinstall grub and fix it, it for some reason always wants to put (hd1,msdos3)/boot/grub as the prefix and root.



    When I try to boot it gives me the typical error: file '/grub/i386-pc/normal.mod' not found, and I'm a little bit confused since the grub-install command runs fine on arch reporting no errors, but still doesn't install grub correctly.



    This is what I do to boot from grub rescue:



    set prefix=(hd1,msdos1)/grub
    insmod normal
    normal


    When I do that it loads correctly, now I only need a way to define this manually when grub is installed. Also, just to be clear, running grub-install again does not fix the problem, only repeats it. Grub seems to expect me to have it installed on /boot/grub on /dev/sdb3 when it is in fact installed on /grub on /dev/sdb1










    share|improve this question


























      up vote
      2
      down vote

      favorite
      1









      up vote
      2
      down vote

      favorite
      1






      1





      My grub broke, I don't know what caused it, it happened after I booted off a usb live image of a linux distro I was going to try to install, but I was only in the anaconda setup menu, the installation itself had not started yet. he installer froze out of the blue before I could start the installation, and I had to reboot the system. After I did somehow my grub installation on /dev/sdb broke and I can't boot into my existing OSes.



      My setup is as follows: /dev/sdb1 (Boot), /dev/sdb3 (Arch Linux Root) /dev/sdb2 (Windows boot) /dev/sdb4 (Empty partition, reserved to be used as an LVM for other linux distros I intend to install).



      The grub prefix should be (hd1,msdos1)/grub, but when I try to reinstall grub and fix it, it for some reason always wants to put (hd1,msdos3)/boot/grub as the prefix and root.



      When I try to boot it gives me the typical error: file '/grub/i386-pc/normal.mod' not found, and I'm a little bit confused since the grub-install command runs fine on arch reporting no errors, but still doesn't install grub correctly.



      This is what I do to boot from grub rescue:



      set prefix=(hd1,msdos1)/grub
      insmod normal
      normal


      When I do that it loads correctly, now I only need a way to define this manually when grub is installed. Also, just to be clear, running grub-install again does not fix the problem, only repeats it. Grub seems to expect me to have it installed on /boot/grub on /dev/sdb3 when it is in fact installed on /grub on /dev/sdb1










      share|improve this question















      My grub broke, I don't know what caused it, it happened after I booted off a usb live image of a linux distro I was going to try to install, but I was only in the anaconda setup menu, the installation itself had not started yet. he installer froze out of the blue before I could start the installation, and I had to reboot the system. After I did somehow my grub installation on /dev/sdb broke and I can't boot into my existing OSes.



      My setup is as follows: /dev/sdb1 (Boot), /dev/sdb3 (Arch Linux Root) /dev/sdb2 (Windows boot) /dev/sdb4 (Empty partition, reserved to be used as an LVM for other linux distros I intend to install).



      The grub prefix should be (hd1,msdos1)/grub, but when I try to reinstall grub and fix it, it for some reason always wants to put (hd1,msdos3)/boot/grub as the prefix and root.



      When I try to boot it gives me the typical error: file '/grub/i386-pc/normal.mod' not found, and I'm a little bit confused since the grub-install command runs fine on arch reporting no errors, but still doesn't install grub correctly.



      This is what I do to boot from grub rescue:



      set prefix=(hd1,msdos1)/grub
      insmod normal
      normal


      When I do that it loads correctly, now I only need a way to define this manually when grub is installed. Also, just to be clear, running grub-install again does not fix the problem, only repeats it. Grub seems to expect me to have it installed on /boot/grub on /dev/sdb3 when it is in fact installed on /grub on /dev/sdb1







      grub2






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 26 '16 at 2:10

























      asked Feb 25 '16 at 22:08









      Cestarian

      82411125




      82411125






















          4 Answers
          4






          active

          oldest

          votes

















          up vote
          1
          down vote













          E.G.:
          grub-install --boot-directory=/media/USERNAME/Mounted_BootVolume/ --force /dev/sda3



          where /dev/sda3 is the "Patch-Core-Onto-Partition" and may be (but doesnt have to be) the same as Mounted_BootVolume.



          ".../grub" as the trailing-target-dir obviously cannot be changed



          taken from manpage: --boot-directory=...
          install GRUB images under the directory DIR/grub instead of the boot/grub dir



          P.S.: the new custom-dir is implicitly reflected by any boot-up of the grub-shell (i.e. grub.cfg needs no added prefix= lines) AFAIK






          share|improve this answer






























            up vote
            0
            down vote













            Have you tried Boot-Repair? It's a live USB that tries to automatically fix your Grub installation.






            share|improve this answer





















            • looks interesting, but I need a permanent repair, I will need to be able to regenerate the grub configs and possibly reinstall it quite a few times.
              – Cestarian
              Feb 26 '16 at 1:46










            • Boot repair is permanent. And is always recommend as a first step +1
              – DnrDevil
              Feb 26 '16 at 11:43










            • I'm sorry, this is crapware. I tried it on two machines with a broken grub (one with broken grub entries, and the machine in question) on one machine which has a wired internet connection, it kept constantly nagging me about not being able to connect to the internet (while I was actually browsing firefox without problems) but I managed to struggle through the repair process somehow, and nothing was fixed. On the machine in question which is wireless, I had pretty much the same results. I wish I could downvote this shit answer more than once. (From what i understand this is aimed at ubuntu)
              – Cestarian
              Mar 7 '16 at 16:43


















            up vote
            0
            down vote













            Was your /boot filesystem mounted when you ran grub-install?



            (Unless you explicitly specify all the parameters, grub-install will attempt to auto-detect the partition that contains the /boot/grub directory, and will set the partition number and the default prefix accordingly. If /boot is a separate filesystem and not mounted while you're running grub-install, the auto-detection may get confused.)



            As a partial workaround (for the directory part of the prefix), you can do this while the /boot filesystem is mounted:



            cd /boot
            ln -s . boot


            Now there is a symbolic link /boot/bootwhich points right back to /boot, which looks nonsensical. (Don't worry, tools like find and locate are smart enough not to get trapped in an infinite loop from this.)



            But when GRUB is trying to access (partition)/boot/grub, it hits the symbolic link: when replaced with the link's target, the path becomes (partition)/./grub which is equal to just (partition)/grub... which is what you want.






            share|improve this answer





















            • /boot was mounted, but it's been a long time since I had this problem and no longer have the system available to verify solutions. But the problem was that the prefix wasn't just for the wrong directory path, it was for the wrong partition as well. A symlink would not solve it. I did manage to hotfix it like you're suggesting by moving the contents of /dev/sdb1 to the /boot directory on /dev/sdb3 (where /dev/sdb1 would normally be mounted)
              – Cestarian
              Sep 14 at 23:14


















            up vote
            0
            down vote













            I spent a few hours here banging my head against the wall, the missing piece of the puzzle is that grup-install does not regenerate your grub.cfg file, you need to run update-grub or the equivalent grub-mkconfig -o /boot/grub/grub.cfg command.






            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: 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%2f265861%2fhow-can-i-manually-define-the-grub-prefix-variable%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              4 Answers
              4






              active

              oldest

              votes








              4 Answers
              4






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              1
              down vote













              E.G.:
              grub-install --boot-directory=/media/USERNAME/Mounted_BootVolume/ --force /dev/sda3



              where /dev/sda3 is the "Patch-Core-Onto-Partition" and may be (but doesnt have to be) the same as Mounted_BootVolume.



              ".../grub" as the trailing-target-dir obviously cannot be changed



              taken from manpage: --boot-directory=...
              install GRUB images under the directory DIR/grub instead of the boot/grub dir



              P.S.: the new custom-dir is implicitly reflected by any boot-up of the grub-shell (i.e. grub.cfg needs no added prefix= lines) AFAIK






              share|improve this answer



























                up vote
                1
                down vote













                E.G.:
                grub-install --boot-directory=/media/USERNAME/Mounted_BootVolume/ --force /dev/sda3



                where /dev/sda3 is the "Patch-Core-Onto-Partition" and may be (but doesnt have to be) the same as Mounted_BootVolume.



                ".../grub" as the trailing-target-dir obviously cannot be changed



                taken from manpage: --boot-directory=...
                install GRUB images under the directory DIR/grub instead of the boot/grub dir



                P.S.: the new custom-dir is implicitly reflected by any boot-up of the grub-shell (i.e. grub.cfg needs no added prefix= lines) AFAIK






                share|improve this answer

























                  up vote
                  1
                  down vote










                  up vote
                  1
                  down vote









                  E.G.:
                  grub-install --boot-directory=/media/USERNAME/Mounted_BootVolume/ --force /dev/sda3



                  where /dev/sda3 is the "Patch-Core-Onto-Partition" and may be (but doesnt have to be) the same as Mounted_BootVolume.



                  ".../grub" as the trailing-target-dir obviously cannot be changed



                  taken from manpage: --boot-directory=...
                  install GRUB images under the directory DIR/grub instead of the boot/grub dir



                  P.S.: the new custom-dir is implicitly reflected by any boot-up of the grub-shell (i.e. grub.cfg needs no added prefix= lines) AFAIK






                  share|improve this answer














                  E.G.:
                  grub-install --boot-directory=/media/USERNAME/Mounted_BootVolume/ --force /dev/sda3



                  where /dev/sda3 is the "Patch-Core-Onto-Partition" and may be (but doesnt have to be) the same as Mounted_BootVolume.



                  ".../grub" as the trailing-target-dir obviously cannot be changed



                  taken from manpage: --boot-directory=...
                  install GRUB images under the directory DIR/grub instead of the boot/grub dir



                  P.S.: the new custom-dir is implicitly reflected by any boot-up of the grub-shell (i.e. grub.cfg needs no added prefix= lines) AFAIK







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jun 9 '16 at 19:28

























                  answered Jun 9 '16 at 19:02









                  Guest Oliver D. H. Steve

                  212




                  212
























                      up vote
                      0
                      down vote













                      Have you tried Boot-Repair? It's a live USB that tries to automatically fix your Grub installation.






                      share|improve this answer





















                      • looks interesting, but I need a permanent repair, I will need to be able to regenerate the grub configs and possibly reinstall it quite a few times.
                        – Cestarian
                        Feb 26 '16 at 1:46










                      • Boot repair is permanent. And is always recommend as a first step +1
                        – DnrDevil
                        Feb 26 '16 at 11:43










                      • I'm sorry, this is crapware. I tried it on two machines with a broken grub (one with broken grub entries, and the machine in question) on one machine which has a wired internet connection, it kept constantly nagging me about not being able to connect to the internet (while I was actually browsing firefox without problems) but I managed to struggle through the repair process somehow, and nothing was fixed. On the machine in question which is wireless, I had pretty much the same results. I wish I could downvote this shit answer more than once. (From what i understand this is aimed at ubuntu)
                        – Cestarian
                        Mar 7 '16 at 16:43















                      up vote
                      0
                      down vote













                      Have you tried Boot-Repair? It's a live USB that tries to automatically fix your Grub installation.






                      share|improve this answer





















                      • looks interesting, but I need a permanent repair, I will need to be able to regenerate the grub configs and possibly reinstall it quite a few times.
                        – Cestarian
                        Feb 26 '16 at 1:46










                      • Boot repair is permanent. And is always recommend as a first step +1
                        – DnrDevil
                        Feb 26 '16 at 11:43










                      • I'm sorry, this is crapware. I tried it on two machines with a broken grub (one with broken grub entries, and the machine in question) on one machine which has a wired internet connection, it kept constantly nagging me about not being able to connect to the internet (while I was actually browsing firefox without problems) but I managed to struggle through the repair process somehow, and nothing was fixed. On the machine in question which is wireless, I had pretty much the same results. I wish I could downvote this shit answer more than once. (From what i understand this is aimed at ubuntu)
                        – Cestarian
                        Mar 7 '16 at 16:43













                      up vote
                      0
                      down vote










                      up vote
                      0
                      down vote









                      Have you tried Boot-Repair? It's a live USB that tries to automatically fix your Grub installation.






                      share|improve this answer












                      Have you tried Boot-Repair? It's a live USB that tries to automatically fix your Grub installation.







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Feb 26 '16 at 0:34









                      Tim

                      263




                      263












                      • looks interesting, but I need a permanent repair, I will need to be able to regenerate the grub configs and possibly reinstall it quite a few times.
                        – Cestarian
                        Feb 26 '16 at 1:46










                      • Boot repair is permanent. And is always recommend as a first step +1
                        – DnrDevil
                        Feb 26 '16 at 11:43










                      • I'm sorry, this is crapware. I tried it on two machines with a broken grub (one with broken grub entries, and the machine in question) on one machine which has a wired internet connection, it kept constantly nagging me about not being able to connect to the internet (while I was actually browsing firefox without problems) but I managed to struggle through the repair process somehow, and nothing was fixed. On the machine in question which is wireless, I had pretty much the same results. I wish I could downvote this shit answer more than once. (From what i understand this is aimed at ubuntu)
                        – Cestarian
                        Mar 7 '16 at 16:43


















                      • looks interesting, but I need a permanent repair, I will need to be able to regenerate the grub configs and possibly reinstall it quite a few times.
                        – Cestarian
                        Feb 26 '16 at 1:46










                      • Boot repair is permanent. And is always recommend as a first step +1
                        – DnrDevil
                        Feb 26 '16 at 11:43










                      • I'm sorry, this is crapware. I tried it on two machines with a broken grub (one with broken grub entries, and the machine in question) on one machine which has a wired internet connection, it kept constantly nagging me about not being able to connect to the internet (while I was actually browsing firefox without problems) but I managed to struggle through the repair process somehow, and nothing was fixed. On the machine in question which is wireless, I had pretty much the same results. I wish I could downvote this shit answer more than once. (From what i understand this is aimed at ubuntu)
                        – Cestarian
                        Mar 7 '16 at 16:43
















                      looks interesting, but I need a permanent repair, I will need to be able to regenerate the grub configs and possibly reinstall it quite a few times.
                      – Cestarian
                      Feb 26 '16 at 1:46




                      looks interesting, but I need a permanent repair, I will need to be able to regenerate the grub configs and possibly reinstall it quite a few times.
                      – Cestarian
                      Feb 26 '16 at 1:46












                      Boot repair is permanent. And is always recommend as a first step +1
                      – DnrDevil
                      Feb 26 '16 at 11:43




                      Boot repair is permanent. And is always recommend as a first step +1
                      – DnrDevil
                      Feb 26 '16 at 11:43












                      I'm sorry, this is crapware. I tried it on two machines with a broken grub (one with broken grub entries, and the machine in question) on one machine which has a wired internet connection, it kept constantly nagging me about not being able to connect to the internet (while I was actually browsing firefox without problems) but I managed to struggle through the repair process somehow, and nothing was fixed. On the machine in question which is wireless, I had pretty much the same results. I wish I could downvote this shit answer more than once. (From what i understand this is aimed at ubuntu)
                      – Cestarian
                      Mar 7 '16 at 16:43




                      I'm sorry, this is crapware. I tried it on two machines with a broken grub (one with broken grub entries, and the machine in question) on one machine which has a wired internet connection, it kept constantly nagging me about not being able to connect to the internet (while I was actually browsing firefox without problems) but I managed to struggle through the repair process somehow, and nothing was fixed. On the machine in question which is wireless, I had pretty much the same results. I wish I could downvote this shit answer more than once. (From what i understand this is aimed at ubuntu)
                      – Cestarian
                      Mar 7 '16 at 16:43










                      up vote
                      0
                      down vote













                      Was your /boot filesystem mounted when you ran grub-install?



                      (Unless you explicitly specify all the parameters, grub-install will attempt to auto-detect the partition that contains the /boot/grub directory, and will set the partition number and the default prefix accordingly. If /boot is a separate filesystem and not mounted while you're running grub-install, the auto-detection may get confused.)



                      As a partial workaround (for the directory part of the prefix), you can do this while the /boot filesystem is mounted:



                      cd /boot
                      ln -s . boot


                      Now there is a symbolic link /boot/bootwhich points right back to /boot, which looks nonsensical. (Don't worry, tools like find and locate are smart enough not to get trapped in an infinite loop from this.)



                      But when GRUB is trying to access (partition)/boot/grub, it hits the symbolic link: when replaced with the link's target, the path becomes (partition)/./grub which is equal to just (partition)/grub... which is what you want.






                      share|improve this answer





















                      • /boot was mounted, but it's been a long time since I had this problem and no longer have the system available to verify solutions. But the problem was that the prefix wasn't just for the wrong directory path, it was for the wrong partition as well. A symlink would not solve it. I did manage to hotfix it like you're suggesting by moving the contents of /dev/sdb1 to the /boot directory on /dev/sdb3 (where /dev/sdb1 would normally be mounted)
                        – Cestarian
                        Sep 14 at 23:14















                      up vote
                      0
                      down vote













                      Was your /boot filesystem mounted when you ran grub-install?



                      (Unless you explicitly specify all the parameters, grub-install will attempt to auto-detect the partition that contains the /boot/grub directory, and will set the partition number and the default prefix accordingly. If /boot is a separate filesystem and not mounted while you're running grub-install, the auto-detection may get confused.)



                      As a partial workaround (for the directory part of the prefix), you can do this while the /boot filesystem is mounted:



                      cd /boot
                      ln -s . boot


                      Now there is a symbolic link /boot/bootwhich points right back to /boot, which looks nonsensical. (Don't worry, tools like find and locate are smart enough not to get trapped in an infinite loop from this.)



                      But when GRUB is trying to access (partition)/boot/grub, it hits the symbolic link: when replaced with the link's target, the path becomes (partition)/./grub which is equal to just (partition)/grub... which is what you want.






                      share|improve this answer





















                      • /boot was mounted, but it's been a long time since I had this problem and no longer have the system available to verify solutions. But the problem was that the prefix wasn't just for the wrong directory path, it was for the wrong partition as well. A symlink would not solve it. I did manage to hotfix it like you're suggesting by moving the contents of /dev/sdb1 to the /boot directory on /dev/sdb3 (where /dev/sdb1 would normally be mounted)
                        – Cestarian
                        Sep 14 at 23:14













                      up vote
                      0
                      down vote










                      up vote
                      0
                      down vote









                      Was your /boot filesystem mounted when you ran grub-install?



                      (Unless you explicitly specify all the parameters, grub-install will attempt to auto-detect the partition that contains the /boot/grub directory, and will set the partition number and the default prefix accordingly. If /boot is a separate filesystem and not mounted while you're running grub-install, the auto-detection may get confused.)



                      As a partial workaround (for the directory part of the prefix), you can do this while the /boot filesystem is mounted:



                      cd /boot
                      ln -s . boot


                      Now there is a symbolic link /boot/bootwhich points right back to /boot, which looks nonsensical. (Don't worry, tools like find and locate are smart enough not to get trapped in an infinite loop from this.)



                      But when GRUB is trying to access (partition)/boot/grub, it hits the symbolic link: when replaced with the link's target, the path becomes (partition)/./grub which is equal to just (partition)/grub... which is what you want.






                      share|improve this answer












                      Was your /boot filesystem mounted when you ran grub-install?



                      (Unless you explicitly specify all the parameters, grub-install will attempt to auto-detect the partition that contains the /boot/grub directory, and will set the partition number and the default prefix accordingly. If /boot is a separate filesystem and not mounted while you're running grub-install, the auto-detection may get confused.)



                      As a partial workaround (for the directory part of the prefix), you can do this while the /boot filesystem is mounted:



                      cd /boot
                      ln -s . boot


                      Now there is a symbolic link /boot/bootwhich points right back to /boot, which looks nonsensical. (Don't worry, tools like find and locate are smart enough not to get trapped in an infinite loop from this.)



                      But when GRUB is trying to access (partition)/boot/grub, it hits the symbolic link: when replaced with the link's target, the path becomes (partition)/./grub which is equal to just (partition)/grub... which is what you want.







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Sep 11 at 9:51









                      telcoM

                      14.6k11842




                      14.6k11842












                      • /boot was mounted, but it's been a long time since I had this problem and no longer have the system available to verify solutions. But the problem was that the prefix wasn't just for the wrong directory path, it was for the wrong partition as well. A symlink would not solve it. I did manage to hotfix it like you're suggesting by moving the contents of /dev/sdb1 to the /boot directory on /dev/sdb3 (where /dev/sdb1 would normally be mounted)
                        – Cestarian
                        Sep 14 at 23:14


















                      • /boot was mounted, but it's been a long time since I had this problem and no longer have the system available to verify solutions. But the problem was that the prefix wasn't just for the wrong directory path, it was for the wrong partition as well. A symlink would not solve it. I did manage to hotfix it like you're suggesting by moving the contents of /dev/sdb1 to the /boot directory on /dev/sdb3 (where /dev/sdb1 would normally be mounted)
                        – Cestarian
                        Sep 14 at 23:14
















                      /boot was mounted, but it's been a long time since I had this problem and no longer have the system available to verify solutions. But the problem was that the prefix wasn't just for the wrong directory path, it was for the wrong partition as well. A symlink would not solve it. I did manage to hotfix it like you're suggesting by moving the contents of /dev/sdb1 to the /boot directory on /dev/sdb3 (where /dev/sdb1 would normally be mounted)
                      – Cestarian
                      Sep 14 at 23:14




                      /boot was mounted, but it's been a long time since I had this problem and no longer have the system available to verify solutions. But the problem was that the prefix wasn't just for the wrong directory path, it was for the wrong partition as well. A symlink would not solve it. I did manage to hotfix it like you're suggesting by moving the contents of /dev/sdb1 to the /boot directory on /dev/sdb3 (where /dev/sdb1 would normally be mounted)
                      – Cestarian
                      Sep 14 at 23:14










                      up vote
                      0
                      down vote













                      I spent a few hours here banging my head against the wall, the missing piece of the puzzle is that grup-install does not regenerate your grub.cfg file, you need to run update-grub or the equivalent grub-mkconfig -o /boot/grub/grub.cfg command.






                      share|improve this answer

























                        up vote
                        0
                        down vote













                        I spent a few hours here banging my head against the wall, the missing piece of the puzzle is that grup-install does not regenerate your grub.cfg file, you need to run update-grub or the equivalent grub-mkconfig -o /boot/grub/grub.cfg command.






                        share|improve this answer























                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          I spent a few hours here banging my head against the wall, the missing piece of the puzzle is that grup-install does not regenerate your grub.cfg file, you need to run update-grub or the equivalent grub-mkconfig -o /boot/grub/grub.cfg command.






                          share|improve this answer












                          I spent a few hours here banging my head against the wall, the missing piece of the puzzle is that grup-install does not regenerate your grub.cfg file, you need to run update-grub or the equivalent grub-mkconfig -o /boot/grub/grub.cfg command.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 23 at 21:56









                          chx

                          531415




                          531415






























                              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%2f265861%2fhow-can-i-manually-define-the-grub-prefix-variable%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