Grub Rescue after installing Elementary OS Freya

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











up vote
1
down vote

favorite












I used to dual boot windows 10(recently upgraded from windows7) and elementary os luna.
Windows is installed on my C drive, and Luna was installed on a partitioned D drive (i splitted 100GB for elementary).



Tody i decided to install the new Elementary OS Freya,so what I did was,
- first I created a bootable usb using Rufus (i didn't use this program when i installed the luna version but I'm unsure if that's the problem)
- then, i went into bios to change the boot priorities to boot the usb.
- I booted into the grub menu and chose 'install elementary os'
- so everything seemed fine until i reached the 'installation type' point
- i checked 'something else'
- Oringally, Luna was installed on sda5, so I formatted sda5 and installed it there
- after the installation, the laptop rebooted and i can no longer boot into windows or elementary os.
I tried changing my boot priorities in bios but it still resulted in grub rescue.



Is there anyway that I can boot into windows through the grub rescue or do i need to create a gparted usb to fix it?










share|improve this question















migrated from askubuntu.com Aug 24 '15 at 3:20


This question came from our site for Ubuntu users and developers.


















    up vote
    1
    down vote

    favorite












    I used to dual boot windows 10(recently upgraded from windows7) and elementary os luna.
    Windows is installed on my C drive, and Luna was installed on a partitioned D drive (i splitted 100GB for elementary).



    Tody i decided to install the new Elementary OS Freya,so what I did was,
    - first I created a bootable usb using Rufus (i didn't use this program when i installed the luna version but I'm unsure if that's the problem)
    - then, i went into bios to change the boot priorities to boot the usb.
    - I booted into the grub menu and chose 'install elementary os'
    - so everything seemed fine until i reached the 'installation type' point
    - i checked 'something else'
    - Oringally, Luna was installed on sda5, so I formatted sda5 and installed it there
    - after the installation, the laptop rebooted and i can no longer boot into windows or elementary os.
    I tried changing my boot priorities in bios but it still resulted in grub rescue.



    Is there anyway that I can boot into windows through the grub rescue or do i need to create a gparted usb to fix it?










    share|improve this question















    migrated from askubuntu.com Aug 24 '15 at 3:20


    This question came from our site for Ubuntu users and developers.
















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I used to dual boot windows 10(recently upgraded from windows7) and elementary os luna.
      Windows is installed on my C drive, and Luna was installed on a partitioned D drive (i splitted 100GB for elementary).



      Tody i decided to install the new Elementary OS Freya,so what I did was,
      - first I created a bootable usb using Rufus (i didn't use this program when i installed the luna version but I'm unsure if that's the problem)
      - then, i went into bios to change the boot priorities to boot the usb.
      - I booted into the grub menu and chose 'install elementary os'
      - so everything seemed fine until i reached the 'installation type' point
      - i checked 'something else'
      - Oringally, Luna was installed on sda5, so I formatted sda5 and installed it there
      - after the installation, the laptop rebooted and i can no longer boot into windows or elementary os.
      I tried changing my boot priorities in bios but it still resulted in grub rescue.



      Is there anyway that I can boot into windows through the grub rescue or do i need to create a gparted usb to fix it?










      share|improve this question















      I used to dual boot windows 10(recently upgraded from windows7) and elementary os luna.
      Windows is installed on my C drive, and Luna was installed on a partitioned D drive (i splitted 100GB for elementary).



      Tody i decided to install the new Elementary OS Freya,so what I did was,
      - first I created a bootable usb using Rufus (i didn't use this program when i installed the luna version but I'm unsure if that's the problem)
      - then, i went into bios to change the boot priorities to boot the usb.
      - I booted into the grub menu and chose 'install elementary os'
      - so everything seemed fine until i reached the 'installation type' point
      - i checked 'something else'
      - Oringally, Luna was installed on sda5, so I formatted sda5 and installed it there
      - after the installation, the laptop rebooted and i can no longer boot into windows or elementary os.
      I tried changing my boot priorities in bios but it still resulted in grub rescue.



      Is there anyway that I can boot into windows through the grub rescue or do i need to create a gparted usb to fix it?







      boot dual-boot partition windows






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 27 mins ago









      Rui F Ribeiro

      37.3k1374118




      37.3k1374118










      asked Aug 23 '15 at 22:34









      applepie

      711110




      711110




      migrated from askubuntu.com Aug 24 '15 at 3:20


      This question came from our site for Ubuntu users and developers.






      migrated from askubuntu.com Aug 24 '15 at 3:20


      This question came from our site for Ubuntu users and developers.






















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          Why this has happened



          I am no expert but from what I understand I think this issue is caused by a mistakenly placed bootflag. Whenever you are installing a linux OS for dual booting you want to make sure the bootloader is installed on dev/sda (i installed it on dev/sda5 which is probably why i got the grub rescue error)



          To fix this (it worked, at least for me)



          in short answer:



          • completely remove your linux


          • change the bootflag back to windows bootloader


          • run boot-repair


          ------------------------- your should be able to boot back into windows at this point ---------------------------



          • change your no longer needed linux partition into free unallocated space


          • try to reinstall your linux again on that free unallocated space


          in long answer:



          • first, try to install the boot repair on your usb. The disk image can be found on this link: https://help.ubuntu.com/community/Boot-Repair


          • change your bios settings so you can boot into your usb


          • use the uninstall OS tool to uninstall your unbootable linux (in my case is elementary os)


          • use gparted to set the bootflag back to your Windows OS (just set it to the partiton which literally says OS)


          • use the boot-repair tool which will further ensure everything is back to normal


          • you should then be able to successfully boot back into you windows the next time you restart your computer


          • use the windows disk management tool to delete the no longer needed linux partition so it becomes unallocated space


          • get the partition wizard: http://www.partitionwizard.com/free-partition-manager.html and use it to extend your D drive or C drive with that unallocated space.


          • Go back to windows disk management tool and shrink D drive or C drive by the amount of space you want to give your linux (they should ask you to enter a number). this step might not be needed if you can just change the unneeded linux space into freespace.


          • The previous three steps was done to reset the 'unbootable linux partition' back to freespace which can then allow you to freshly install on it again. However I think there might be a quicker way to skip the extending part and just changing the unbootable linux partition into freespace with a click


          • After fixing the bootloader and allocated the spaces required for your next attempt on installing linux, you can finally try to reinstall your linux again


          • reboot into your usb and install the OS on your freespace (e.g. dev/sda6) but this time make sure you choose the correct place of where the bootloader is placed. (i chose dev/sda on my successful attempt and it worked like a charm).


          a possibly quicker fix



          • since this problem is probably caused by bootflag, the complete removal of linux might not be needed. Instead you can just change where the bootflag is suppose to be.





          share|improve this answer



























            up vote
            1
            down vote













            I found it easier to install Ubuntu alongside, after this grub is set up properly with all systems listed (Win, Elementary, Ubuntu) in the menu. (Then you can delete Ubuntu partitions since you no longer need it)






            share|improve this answer



























              up vote
              0
              down vote













              Once you have booted into your OS run this in terminal



              • connect to the Internet



              • open a new Terminal, then type the following commands (press Enter after each line):



                sudo add-apt-repository ppa:yannubuntu/boot-repair
                sudo apt-get update
                sudo apt-get install -y boot-repair && boot-repair






              share|improve this answer






















                Your Answer







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

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

                else
                createEditor();

                );

                function createEditor()
                StackExchange.prepareEditor(
                heartbeatType: 'answer',
                convertImagesToLinks: false,
                noModals: false,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: null,
                bindNavPrevention: true,
                postfix: "",
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                );



                );













                 

                draft saved


                draft discarded


















                StackExchange.ready(
                function ()
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f225032%2fgrub-rescue-after-installing-elementary-os-freya%23new-answer', 'question_page');

                );

                Post as a guest






























                3 Answers
                3






                active

                oldest

                votes








                3 Answers
                3






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes








                up vote
                1
                down vote



                accepted










                Why this has happened



                I am no expert but from what I understand I think this issue is caused by a mistakenly placed bootflag. Whenever you are installing a linux OS for dual booting you want to make sure the bootloader is installed on dev/sda (i installed it on dev/sda5 which is probably why i got the grub rescue error)



                To fix this (it worked, at least for me)



                in short answer:



                • completely remove your linux


                • change the bootflag back to windows bootloader


                • run boot-repair


                ------------------------- your should be able to boot back into windows at this point ---------------------------



                • change your no longer needed linux partition into free unallocated space


                • try to reinstall your linux again on that free unallocated space


                in long answer:



                • first, try to install the boot repair on your usb. The disk image can be found on this link: https://help.ubuntu.com/community/Boot-Repair


                • change your bios settings so you can boot into your usb


                • use the uninstall OS tool to uninstall your unbootable linux (in my case is elementary os)


                • use gparted to set the bootflag back to your Windows OS (just set it to the partiton which literally says OS)


                • use the boot-repair tool which will further ensure everything is back to normal


                • you should then be able to successfully boot back into you windows the next time you restart your computer


                • use the windows disk management tool to delete the no longer needed linux partition so it becomes unallocated space


                • get the partition wizard: http://www.partitionwizard.com/free-partition-manager.html and use it to extend your D drive or C drive with that unallocated space.


                • Go back to windows disk management tool and shrink D drive or C drive by the amount of space you want to give your linux (they should ask you to enter a number). this step might not be needed if you can just change the unneeded linux space into freespace.


                • The previous three steps was done to reset the 'unbootable linux partition' back to freespace which can then allow you to freshly install on it again. However I think there might be a quicker way to skip the extending part and just changing the unbootable linux partition into freespace with a click


                • After fixing the bootloader and allocated the spaces required for your next attempt on installing linux, you can finally try to reinstall your linux again


                • reboot into your usb and install the OS on your freespace (e.g. dev/sda6) but this time make sure you choose the correct place of where the bootloader is placed. (i chose dev/sda on my successful attempt and it worked like a charm).


                a possibly quicker fix



                • since this problem is probably caused by bootflag, the complete removal of linux might not be needed. Instead you can just change where the bootflag is suppose to be.





                share|improve this answer
























                  up vote
                  1
                  down vote



                  accepted










                  Why this has happened



                  I am no expert but from what I understand I think this issue is caused by a mistakenly placed bootflag. Whenever you are installing a linux OS for dual booting you want to make sure the bootloader is installed on dev/sda (i installed it on dev/sda5 which is probably why i got the grub rescue error)



                  To fix this (it worked, at least for me)



                  in short answer:



                  • completely remove your linux


                  • change the bootflag back to windows bootloader


                  • run boot-repair


                  ------------------------- your should be able to boot back into windows at this point ---------------------------



                  • change your no longer needed linux partition into free unallocated space


                  • try to reinstall your linux again on that free unallocated space


                  in long answer:



                  • first, try to install the boot repair on your usb. The disk image can be found on this link: https://help.ubuntu.com/community/Boot-Repair


                  • change your bios settings so you can boot into your usb


                  • use the uninstall OS tool to uninstall your unbootable linux (in my case is elementary os)


                  • use gparted to set the bootflag back to your Windows OS (just set it to the partiton which literally says OS)


                  • use the boot-repair tool which will further ensure everything is back to normal


                  • you should then be able to successfully boot back into you windows the next time you restart your computer


                  • use the windows disk management tool to delete the no longer needed linux partition so it becomes unallocated space


                  • get the partition wizard: http://www.partitionwizard.com/free-partition-manager.html and use it to extend your D drive or C drive with that unallocated space.


                  • Go back to windows disk management tool and shrink D drive or C drive by the amount of space you want to give your linux (they should ask you to enter a number). this step might not be needed if you can just change the unneeded linux space into freespace.


                  • The previous three steps was done to reset the 'unbootable linux partition' back to freespace which can then allow you to freshly install on it again. However I think there might be a quicker way to skip the extending part and just changing the unbootable linux partition into freespace with a click


                  • After fixing the bootloader and allocated the spaces required for your next attempt on installing linux, you can finally try to reinstall your linux again


                  • reboot into your usb and install the OS on your freespace (e.g. dev/sda6) but this time make sure you choose the correct place of where the bootloader is placed. (i chose dev/sda on my successful attempt and it worked like a charm).


                  a possibly quicker fix



                  • since this problem is probably caused by bootflag, the complete removal of linux might not be needed. Instead you can just change where the bootflag is suppose to be.





                  share|improve this answer






















                    up vote
                    1
                    down vote



                    accepted







                    up vote
                    1
                    down vote



                    accepted






                    Why this has happened



                    I am no expert but from what I understand I think this issue is caused by a mistakenly placed bootflag. Whenever you are installing a linux OS for dual booting you want to make sure the bootloader is installed on dev/sda (i installed it on dev/sda5 which is probably why i got the grub rescue error)



                    To fix this (it worked, at least for me)



                    in short answer:



                    • completely remove your linux


                    • change the bootflag back to windows bootloader


                    • run boot-repair


                    ------------------------- your should be able to boot back into windows at this point ---------------------------



                    • change your no longer needed linux partition into free unallocated space


                    • try to reinstall your linux again on that free unallocated space


                    in long answer:



                    • first, try to install the boot repair on your usb. The disk image can be found on this link: https://help.ubuntu.com/community/Boot-Repair


                    • change your bios settings so you can boot into your usb


                    • use the uninstall OS tool to uninstall your unbootable linux (in my case is elementary os)


                    • use gparted to set the bootflag back to your Windows OS (just set it to the partiton which literally says OS)


                    • use the boot-repair tool which will further ensure everything is back to normal


                    • you should then be able to successfully boot back into you windows the next time you restart your computer


                    • use the windows disk management tool to delete the no longer needed linux partition so it becomes unallocated space


                    • get the partition wizard: http://www.partitionwizard.com/free-partition-manager.html and use it to extend your D drive or C drive with that unallocated space.


                    • Go back to windows disk management tool and shrink D drive or C drive by the amount of space you want to give your linux (they should ask you to enter a number). this step might not be needed if you can just change the unneeded linux space into freespace.


                    • The previous three steps was done to reset the 'unbootable linux partition' back to freespace which can then allow you to freshly install on it again. However I think there might be a quicker way to skip the extending part and just changing the unbootable linux partition into freespace with a click


                    • After fixing the bootloader and allocated the spaces required for your next attempt on installing linux, you can finally try to reinstall your linux again


                    • reboot into your usb and install the OS on your freespace (e.g. dev/sda6) but this time make sure you choose the correct place of where the bootloader is placed. (i chose dev/sda on my successful attempt and it worked like a charm).


                    a possibly quicker fix



                    • since this problem is probably caused by bootflag, the complete removal of linux might not be needed. Instead you can just change where the bootflag is suppose to be.





                    share|improve this answer












                    Why this has happened



                    I am no expert but from what I understand I think this issue is caused by a mistakenly placed bootflag. Whenever you are installing a linux OS for dual booting you want to make sure the bootloader is installed on dev/sda (i installed it on dev/sda5 which is probably why i got the grub rescue error)



                    To fix this (it worked, at least for me)



                    in short answer:



                    • completely remove your linux


                    • change the bootflag back to windows bootloader


                    • run boot-repair


                    ------------------------- your should be able to boot back into windows at this point ---------------------------



                    • change your no longer needed linux partition into free unallocated space


                    • try to reinstall your linux again on that free unallocated space


                    in long answer:



                    • first, try to install the boot repair on your usb. The disk image can be found on this link: https://help.ubuntu.com/community/Boot-Repair


                    • change your bios settings so you can boot into your usb


                    • use the uninstall OS tool to uninstall your unbootable linux (in my case is elementary os)


                    • use gparted to set the bootflag back to your Windows OS (just set it to the partiton which literally says OS)


                    • use the boot-repair tool which will further ensure everything is back to normal


                    • you should then be able to successfully boot back into you windows the next time you restart your computer


                    • use the windows disk management tool to delete the no longer needed linux partition so it becomes unallocated space


                    • get the partition wizard: http://www.partitionwizard.com/free-partition-manager.html and use it to extend your D drive or C drive with that unallocated space.


                    • Go back to windows disk management tool and shrink D drive or C drive by the amount of space you want to give your linux (they should ask you to enter a number). this step might not be needed if you can just change the unneeded linux space into freespace.


                    • The previous three steps was done to reset the 'unbootable linux partition' back to freespace which can then allow you to freshly install on it again. However I think there might be a quicker way to skip the extending part and just changing the unbootable linux partition into freespace with a click


                    • After fixing the bootloader and allocated the spaces required for your next attempt on installing linux, you can finally try to reinstall your linux again


                    • reboot into your usb and install the OS on your freespace (e.g. dev/sda6) but this time make sure you choose the correct place of where the bootloader is placed. (i chose dev/sda on my successful attempt and it worked like a charm).


                    a possibly quicker fix



                    • since this problem is probably caused by bootflag, the complete removal of linux might not be needed. Instead you can just change where the bootflag is suppose to be.






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Aug 27 '15 at 4:03









                    applepie

                    711110




                    711110






















                        up vote
                        1
                        down vote













                        I found it easier to install Ubuntu alongside, after this grub is set up properly with all systems listed (Win, Elementary, Ubuntu) in the menu. (Then you can delete Ubuntu partitions since you no longer need it)






                        share|improve this answer
























                          up vote
                          1
                          down vote













                          I found it easier to install Ubuntu alongside, after this grub is set up properly with all systems listed (Win, Elementary, Ubuntu) in the menu. (Then you can delete Ubuntu partitions since you no longer need it)






                          share|improve this answer






















                            up vote
                            1
                            down vote










                            up vote
                            1
                            down vote









                            I found it easier to install Ubuntu alongside, after this grub is set up properly with all systems listed (Win, Elementary, Ubuntu) in the menu. (Then you can delete Ubuntu partitions since you no longer need it)






                            share|improve this answer












                            I found it easier to install Ubuntu alongside, after this grub is set up properly with all systems listed (Win, Elementary, Ubuntu) in the menu. (Then you can delete Ubuntu partitions since you no longer need it)







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Oct 1 '15 at 18:58









                            Piotr Zając

                            111




                            111




















                                up vote
                                0
                                down vote













                                Once you have booted into your OS run this in terminal



                                • connect to the Internet



                                • open a new Terminal, then type the following commands (press Enter after each line):



                                  sudo add-apt-repository ppa:yannubuntu/boot-repair
                                  sudo apt-get update
                                  sudo apt-get install -y boot-repair && boot-repair






                                share|improve this answer


























                                  up vote
                                  0
                                  down vote













                                  Once you have booted into your OS run this in terminal



                                  • connect to the Internet



                                  • open a new Terminal, then type the following commands (press Enter after each line):



                                    sudo add-apt-repository ppa:yannubuntu/boot-repair
                                    sudo apt-get update
                                    sudo apt-get install -y boot-repair && boot-repair






                                  share|improve this answer
























                                    up vote
                                    0
                                    down vote










                                    up vote
                                    0
                                    down vote









                                    Once you have booted into your OS run this in terminal



                                    • connect to the Internet



                                    • open a new Terminal, then type the following commands (press Enter after each line):



                                      sudo add-apt-repository ppa:yannubuntu/boot-repair
                                      sudo apt-get update
                                      sudo apt-get install -y boot-repair && boot-repair






                                    share|improve this answer














                                    Once you have booted into your OS run this in terminal



                                    • connect to the Internet



                                    • open a new Terminal, then type the following commands (press Enter after each line):



                                      sudo add-apt-repository ppa:yannubuntu/boot-repair
                                      sudo apt-get update
                                      sudo apt-get install -y boot-repair && boot-repair







                                    share|improve this answer














                                    share|improve this answer



                                    share|improve this answer








                                    edited Dec 5 '15 at 21:43









                                    Jakuje

                                    16k52952




                                    16k52952










                                    answered Dec 5 '15 at 21:28









                                    john

                                    1




                                    1



























                                         

                                        draft saved


                                        draft discarded















































                                         


                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function ()
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f225032%2fgrub-rescue-after-installing-elementary-os-freya%23new-answer', 'question_page');

                                        );

                                        Post as a guest













































































                                        Popular posts from this blog

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

                                        Displaying single band from multi-band raster using QGIS

                                        How many registers does an x86_64 CPU actually have?