Ubuntu 12.04 & Mac Os X - GRUB Rescue prompt SET commands made permanent?











up vote
1
down vote

favorite












I recently re-installed my Mac OS X partition. This somehow messed up my entire partition scheme it seems.



First I got dropped to the Grub rescue> prompt when trying to boot Ubuntu. I had never having seen it before and help command was not recognized, so I started googling. I ended up reading most of the grub recovery documentation.



I made it boot by using the set command to set root and prefix variable, then loaded normal mode plugin and ran it. It Presented me with the normal grub boot menu, and I booted Ubuntu just fine.
As the documentation also states these changes are not permanent and I have to edit /boot/grub/grub.cfg - more specifically it states that I have to ensure variables search, linux and intrd variables.



My problem is with trying to edit this file, my Ubuntu installation fails to reboot. After some wait time, I shut it down the hard way. When I then try to boot again, i'm back at the grub rescue> prompt again...



So to make ubuntu boot I use these commands:



set prefix=(hd0,gpt6)/boot/grub
set root=(hd0,gpt6)
insmod normal
normal -> select ubuntu


When editing /boot/grub/grub.cfg the section I'm supposed to edit I edit like this (I think it's the search line making the screw up, but i cannot figure out what i may delete):



EDIT: REMOVED LINES TO MAKE THE EDITED LINES MORE READABLE!



Unedited entry :



set root='(hd0,gpt6)'
search --no-floppy --fs-uuid --set=root ebba50e2-d298-4764-afb5-463c47532158
linux /boot/vmlinuz-3.2.0-23-generic root=UUID=ebba50e2-d298-4764-afb5-463c47532158 ro acpi_backlight=vendor acpi_osi=Linux quiet splash pcie_aspm=force $vt_handoff
initrd /boot/initrd.img-3.2.0-23-generic


EDITED entry:



set root='(hd0,gpt6)'
search --no-floppy --fs-uuid --set=root ebba50e2-d298-4764-afb5-463c47532158
echo 'Loading Linux 3.0.0-14-generic ...'
linux /boot/vmlinuz-3.0.0-14-generic root=/dev/sda6 ro acpi_backlight=vendor acpi_osi=Linux
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-14-generic


I think that I edited the last section in (the Ubuntu recovery menu entry) correctly. The first entry looks (Ubuntu normal mode) like the grub.cfg file itself wants it to look ? which is correct?
My question now is, is this change correct? - And will I have to do the same for every menu entry? ;)



NB. after this not working I tried sudo grub-install /dev/sda6 - but I get an error saying this is a partition, and embedding is not supported - this is noob info since I have not researched this part enough yet, just thought it might bring some useful information..










share|improve this question




























    up vote
    1
    down vote

    favorite












    I recently re-installed my Mac OS X partition. This somehow messed up my entire partition scheme it seems.



    First I got dropped to the Grub rescue> prompt when trying to boot Ubuntu. I had never having seen it before and help command was not recognized, so I started googling. I ended up reading most of the grub recovery documentation.



    I made it boot by using the set command to set root and prefix variable, then loaded normal mode plugin and ran it. It Presented me with the normal grub boot menu, and I booted Ubuntu just fine.
    As the documentation also states these changes are not permanent and I have to edit /boot/grub/grub.cfg - more specifically it states that I have to ensure variables search, linux and intrd variables.



    My problem is with trying to edit this file, my Ubuntu installation fails to reboot. After some wait time, I shut it down the hard way. When I then try to boot again, i'm back at the grub rescue> prompt again...



    So to make ubuntu boot I use these commands:



    set prefix=(hd0,gpt6)/boot/grub
    set root=(hd0,gpt6)
    insmod normal
    normal -> select ubuntu


    When editing /boot/grub/grub.cfg the section I'm supposed to edit I edit like this (I think it's the search line making the screw up, but i cannot figure out what i may delete):



    EDIT: REMOVED LINES TO MAKE THE EDITED LINES MORE READABLE!



    Unedited entry :



    set root='(hd0,gpt6)'
    search --no-floppy --fs-uuid --set=root ebba50e2-d298-4764-afb5-463c47532158
    linux /boot/vmlinuz-3.2.0-23-generic root=UUID=ebba50e2-d298-4764-afb5-463c47532158 ro acpi_backlight=vendor acpi_osi=Linux quiet splash pcie_aspm=force $vt_handoff
    initrd /boot/initrd.img-3.2.0-23-generic


    EDITED entry:



    set root='(hd0,gpt6)'
    search --no-floppy --fs-uuid --set=root ebba50e2-d298-4764-afb5-463c47532158
    echo 'Loading Linux 3.0.0-14-generic ...'
    linux /boot/vmlinuz-3.0.0-14-generic root=/dev/sda6 ro acpi_backlight=vendor acpi_osi=Linux
    echo 'Loading initial ramdisk ...'
    initrd /boot/initrd.img-3.0.0-14-generic


    I think that I edited the last section in (the Ubuntu recovery menu entry) correctly. The first entry looks (Ubuntu normal mode) like the grub.cfg file itself wants it to look ? which is correct?
    My question now is, is this change correct? - And will I have to do the same for every menu entry? ;)



    NB. after this not working I tried sudo grub-install /dev/sda6 - but I get an error saying this is a partition, and embedding is not supported - this is noob info since I have not researched this part enough yet, just thought it might bring some useful information..










    share|improve this question


























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I recently re-installed my Mac OS X partition. This somehow messed up my entire partition scheme it seems.



      First I got dropped to the Grub rescue> prompt when trying to boot Ubuntu. I had never having seen it before and help command was not recognized, so I started googling. I ended up reading most of the grub recovery documentation.



      I made it boot by using the set command to set root and prefix variable, then loaded normal mode plugin and ran it. It Presented me with the normal grub boot menu, and I booted Ubuntu just fine.
      As the documentation also states these changes are not permanent and I have to edit /boot/grub/grub.cfg - more specifically it states that I have to ensure variables search, linux and intrd variables.



      My problem is with trying to edit this file, my Ubuntu installation fails to reboot. After some wait time, I shut it down the hard way. When I then try to boot again, i'm back at the grub rescue> prompt again...



      So to make ubuntu boot I use these commands:



      set prefix=(hd0,gpt6)/boot/grub
      set root=(hd0,gpt6)
      insmod normal
      normal -> select ubuntu


      When editing /boot/grub/grub.cfg the section I'm supposed to edit I edit like this (I think it's the search line making the screw up, but i cannot figure out what i may delete):



      EDIT: REMOVED LINES TO MAKE THE EDITED LINES MORE READABLE!



      Unedited entry :



      set root='(hd0,gpt6)'
      search --no-floppy --fs-uuid --set=root ebba50e2-d298-4764-afb5-463c47532158
      linux /boot/vmlinuz-3.2.0-23-generic root=UUID=ebba50e2-d298-4764-afb5-463c47532158 ro acpi_backlight=vendor acpi_osi=Linux quiet splash pcie_aspm=force $vt_handoff
      initrd /boot/initrd.img-3.2.0-23-generic


      EDITED entry:



      set root='(hd0,gpt6)'
      search --no-floppy --fs-uuid --set=root ebba50e2-d298-4764-afb5-463c47532158
      echo 'Loading Linux 3.0.0-14-generic ...'
      linux /boot/vmlinuz-3.0.0-14-generic root=/dev/sda6 ro acpi_backlight=vendor acpi_osi=Linux
      echo 'Loading initial ramdisk ...'
      initrd /boot/initrd.img-3.0.0-14-generic


      I think that I edited the last section in (the Ubuntu recovery menu entry) correctly. The first entry looks (Ubuntu normal mode) like the grub.cfg file itself wants it to look ? which is correct?
      My question now is, is this change correct? - And will I have to do the same for every menu entry? ;)



      NB. after this not working I tried sudo grub-install /dev/sda6 - but I get an error saying this is a partition, and embedding is not supported - this is noob info since I have not researched this part enough yet, just thought it might bring some useful information..










      share|improve this question















      I recently re-installed my Mac OS X partition. This somehow messed up my entire partition scheme it seems.



      First I got dropped to the Grub rescue> prompt when trying to boot Ubuntu. I had never having seen it before and help command was not recognized, so I started googling. I ended up reading most of the grub recovery documentation.



      I made it boot by using the set command to set root and prefix variable, then loaded normal mode plugin and ran it. It Presented me with the normal grub boot menu, and I booted Ubuntu just fine.
      As the documentation also states these changes are not permanent and I have to edit /boot/grub/grub.cfg - more specifically it states that I have to ensure variables search, linux and intrd variables.



      My problem is with trying to edit this file, my Ubuntu installation fails to reboot. After some wait time, I shut it down the hard way. When I then try to boot again, i'm back at the grub rescue> prompt again...



      So to make ubuntu boot I use these commands:



      set prefix=(hd0,gpt6)/boot/grub
      set root=(hd0,gpt6)
      insmod normal
      normal -> select ubuntu


      When editing /boot/grub/grub.cfg the section I'm supposed to edit I edit like this (I think it's the search line making the screw up, but i cannot figure out what i may delete):



      EDIT: REMOVED LINES TO MAKE THE EDITED LINES MORE READABLE!



      Unedited entry :



      set root='(hd0,gpt6)'
      search --no-floppy --fs-uuid --set=root ebba50e2-d298-4764-afb5-463c47532158
      linux /boot/vmlinuz-3.2.0-23-generic root=UUID=ebba50e2-d298-4764-afb5-463c47532158 ro acpi_backlight=vendor acpi_osi=Linux quiet splash pcie_aspm=force $vt_handoff
      initrd /boot/initrd.img-3.2.0-23-generic


      EDITED entry:



      set root='(hd0,gpt6)'
      search --no-floppy --fs-uuid --set=root ebba50e2-d298-4764-afb5-463c47532158
      echo 'Loading Linux 3.0.0-14-generic ...'
      linux /boot/vmlinuz-3.0.0-14-generic root=/dev/sda6 ro acpi_backlight=vendor acpi_osi=Linux
      echo 'Loading initial ramdisk ...'
      initrd /boot/initrd.img-3.0.0-14-generic


      I think that I edited the last section in (the Ubuntu recovery menu entry) correctly. The first entry looks (Ubuntu normal mode) like the grub.cfg file itself wants it to look ? which is correct?
      My question now is, is this change correct? - And will I have to do the same for every menu entry? ;)



      NB. after this not working I tried sudo grub-install /dev/sda6 - but I get an error saying this is a partition, and embedding is not supported - this is noob info since I have not researched this part enough yet, just thought it might bring some useful information..







      12.04 boot grub2 configuration






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 2 '13 at 9:25









      Kevin Bowen

      14.2k145969




      14.2k145969










      asked Apr 30 '12 at 19:03









      Mstendorf

      15119




      15119






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          I had a similar problem, where I installed Ubuntu over Kubuntu. I finished installing and started my computer up, and BOOM, I no longer had a menu to choose my OS, only the rescue prompt. I started playing around, and I found out that the fix for me was simple:



          I just needed to set a different hard drive to boot from. This probably won't apply if you're using only one hard drive. Somehow, when I installed Ubuntu, the bootloader either got moved or the BIOS got changed, but I had to set the boot order differently to see my menu again. After that, I can now see my grub menu.



          Hope this helps!






          share|improve this answer





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            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%2faskubuntu.com%2fquestions%2f128780%2fubuntu-12-04-mac-os-x-grub-rescue-prompt-set-commands-made-permanent%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








            up vote
            0
            down vote













            I had a similar problem, where I installed Ubuntu over Kubuntu. I finished installing and started my computer up, and BOOM, I no longer had a menu to choose my OS, only the rescue prompt. I started playing around, and I found out that the fix for me was simple:



            I just needed to set a different hard drive to boot from. This probably won't apply if you're using only one hard drive. Somehow, when I installed Ubuntu, the bootloader either got moved or the BIOS got changed, but I had to set the boot order differently to see my menu again. After that, I can now see my grub menu.



            Hope this helps!






            share|improve this answer

























              up vote
              0
              down vote













              I had a similar problem, where I installed Ubuntu over Kubuntu. I finished installing and started my computer up, and BOOM, I no longer had a menu to choose my OS, only the rescue prompt. I started playing around, and I found out that the fix for me was simple:



              I just needed to set a different hard drive to boot from. This probably won't apply if you're using only one hard drive. Somehow, when I installed Ubuntu, the bootloader either got moved or the BIOS got changed, but I had to set the boot order differently to see my menu again. After that, I can now see my grub menu.



              Hope this helps!






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                I had a similar problem, where I installed Ubuntu over Kubuntu. I finished installing and started my computer up, and BOOM, I no longer had a menu to choose my OS, only the rescue prompt. I started playing around, and I found out that the fix for me was simple:



                I just needed to set a different hard drive to boot from. This probably won't apply if you're using only one hard drive. Somehow, when I installed Ubuntu, the bootloader either got moved or the BIOS got changed, but I had to set the boot order differently to see my menu again. After that, I can now see my grub menu.



                Hope this helps!






                share|improve this answer












                I had a similar problem, where I installed Ubuntu over Kubuntu. I finished installing and started my computer up, and BOOM, I no longer had a menu to choose my OS, only the rescue prompt. I started playing around, and I found out that the fix for me was simple:



                I just needed to set a different hard drive to boot from. This probably won't apply if you're using only one hard drive. Somehow, when I installed Ubuntu, the bootloader either got moved or the BIOS got changed, but I had to set the boot order differently to see my menu again. After that, I can now see my grub menu.



                Hope this helps!







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 31 '12 at 12:59









                Goldentoa11

                11118




                11118






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • 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%2faskubuntu.com%2fquestions%2f128780%2fubuntu-12-04-mac-os-x-grub-rescue-prompt-set-commands-made-permanent%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

                    How to change which sound is reproduced for terminal bell?

                    Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                    Can I use Tabulator js library in my java Spring + Thymeleaf project?