How to start a windows partition from the Grub command line











up vote
11
down vote

favorite
2












I have Windows 10 HOME installed on my system. After I installed Windows 10 HOME, I installed Ubuntu 14.04 LTS on a separate partition so that I could dual boot.



I removed Ubuntu 14.04 LTS by deleting the partition it was installed on. Now I am unable to start my system. At boot, my system stops at the Grub command line.



I want to boot to my Windows 10 installation which I haven't removed from my system.



This is displayed at startup:



GNU GRUB version 2.02 beta2-9ubuntu1.3 <br> 
minimal BASH-like editing is supported.for the first word, TAB lists
possible commands completions.anywhere else TAB lists the possible device or file completion.
grub>


How can I boot my Windows partition from this grub command?










share|improve this question




























    up vote
    11
    down vote

    favorite
    2












    I have Windows 10 HOME installed on my system. After I installed Windows 10 HOME, I installed Ubuntu 14.04 LTS on a separate partition so that I could dual boot.



    I removed Ubuntu 14.04 LTS by deleting the partition it was installed on. Now I am unable to start my system. At boot, my system stops at the Grub command line.



    I want to boot to my Windows 10 installation which I haven't removed from my system.



    This is displayed at startup:



    GNU GRUB version 2.02 beta2-9ubuntu1.3 <br> 
    minimal BASH-like editing is supported.for the first word, TAB lists
    possible commands completions.anywhere else TAB lists the possible device or file completion.
    grub>


    How can I boot my Windows partition from this grub command?










    share|improve this question


























      up vote
      11
      down vote

      favorite
      2









      up vote
      11
      down vote

      favorite
      2






      2





      I have Windows 10 HOME installed on my system. After I installed Windows 10 HOME, I installed Ubuntu 14.04 LTS on a separate partition so that I could dual boot.



      I removed Ubuntu 14.04 LTS by deleting the partition it was installed on. Now I am unable to start my system. At boot, my system stops at the Grub command line.



      I want to boot to my Windows 10 installation which I haven't removed from my system.



      This is displayed at startup:



      GNU GRUB version 2.02 beta2-9ubuntu1.3 <br> 
      minimal BASH-like editing is supported.for the first word, TAB lists
      possible commands completions.anywhere else TAB lists the possible device or file completion.
      grub>


      How can I boot my Windows partition from this grub command?










      share|improve this question















      I have Windows 10 HOME installed on my system. After I installed Windows 10 HOME, I installed Ubuntu 14.04 LTS on a separate partition so that I could dual boot.



      I removed Ubuntu 14.04 LTS by deleting the partition it was installed on. Now I am unable to start my system. At boot, my system stops at the Grub command line.



      I want to boot to my Windows 10 installation which I haven't removed from my system.



      This is displayed at startup:



      GNU GRUB version 2.02 beta2-9ubuntu1.3 <br> 
      minimal BASH-like editing is supported.for the first word, TAB lists
      possible commands completions.anywhere else TAB lists the possible device or file completion.
      grub>


      How can I boot my Windows partition from this grub command?







      linux grub






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 1 at 22:26









      roaima

      42.4k551116




      42.4k551116










      asked Feb 1 '16 at 13:01









      ANKIT SAINI

      56113




      56113






















          10 Answers
          10






          active

          oldest

          votes

















          up vote
          13
          down vote













          Just enter the command 'exit' (without the quotes of course). It should take you to another menu that makes you select the Windows bootloader.



          Worked on Lenovo Y50






          share|improve this answer























          • Worked well on HP i5 7th Gen with Win10 after formatting the Ubuntu partition.
            – Elshan
            Jan 18 at 18:16












          • Glad it helped! @Elshan
            – adonayresom
            Jan 24 at 22:02












          • Worked in Lenovo ThinkPad, never expected it will work
            – Renjith
            Apr 29 at 3:53




















          up vote
          5
          down vote













          To boot to Windows, if Windows is installed on first drive/partition, enter in grub command line:



          insmod chain
          insmod ntfs
          set root=(hd0,1)
          chainloader +1


          see https://www.gnu.org/software/grub/manual/html_node/Chain_002dloading.html#Chain_002dloading for more details.






          share|improve this answer

















          • 3




            This worked for me. For completeness: you need to give the command "boot" after typing the above.
            – Tyr
            Jan 12 '17 at 10:45










          • This applies only if the Windows system disk is using MBR partitioning. For the GPT equivalent, see this answer by @79E09796
            – telcoM
            2 days ago


















          up vote
          5
          down vote













          The following worked for me with a GPT partitioned disk.



          insmod part_gpt
          insmod chain
          set root=(hd0,gpt1)
          chainloader /EFI/Microsoft/Boot/bootmgfw.efi
          boot


          Note that you can enter a command line from the grub boot menu and just type commands as above to test out different combinations.



          You need to enter the id of the EFI boot partition (not the windows partition) for the set root= command.



          In the command line grub mode ls will list the hard drive partitions, help lists available commands.



          Once you have set the root correctly you can ls / to view files and directories to find the correct path to the windows boot manager if it is not in the default location.






          share|improve this answer




























            up vote
            3
            down vote













            Guesing you have an UEFI device, the windows bootloader is still installed. You can select it back in UEFI setup menu under boot, where you will prbably have two options (GRUB and the old default as the second), delete the first one or switch the order.






            share|improve this answer





















            • Thank you. This was the easiest way and saved me a headache.
              – Astrobleme
              Mar 12 '17 at 22:07


















            up vote
            0
            down vote













            Boot from DVD win 10



            Open command line and type:



            diskpart

            select disk 0


            list volume


            check bootsect.exe



            For example E is the DVD



            E:
            cd boot
            dir


            if bootsect.exe exist type the following command :



            bootsect /nt60 SYS /mbr


            or bootsect /nt60 your-drive-letter: /mbr



            example bootsect /nt60 C: /mbr



            Reboot






            share|improve this answer






























              up vote
              0
              down vote













              I recently bumped into the same problem. (i.e. originally have a a separate partition with Ubuntu installed, dual bootable from a grub menu. I then deleted that Ubuntu partition from Windows disk management, and when I rebooted, just the grub command menu).



              What I did to get back to my Windows 10:




              1. Do a Ctrl + Alt + Delete to reboot. While rebooting, hold down the shift button.

              2. My PC then give me to option to press F12 for boot option. I clicked F12, and it gives me back a menu with Windows boot manager on it.

              3. I selected the Windows boot manager and click enter. I'm now back to Windows 10.






              share|improve this answer




























                up vote
                0
                down vote














                This worked for me, now I have to find a way to permanently fix the mbr.




                I recently bumped into the same problem. (i.e. originally have a a separate partition with Ubuntu installed, dual bootable from a grub menu. I then deleted that Ubuntu partition from Windows disk management, and when I rebooted, just the grub command menu).



                What I did to get back to my Windows 10:



                Do a Ctrl+Alt+Delete to reboot. While rebooting, hold down the shift button.
                My PC then give me to option to press F12 for boot option. I clicked F12, and it gives me back a menu with Windows boot manager on it.
                I selected the Windows boot manager and click enter. I'm now back to Windows 10.






                share|improve this answer






























                  up vote
                  0
                  down vote















                  This answer is for those with UEFI who have deleted the Ubuntu partitions before removing grub

                  You will be doing this from Windows 10. No bootable media required.



                  Where bootrec /fixmbr, bootsect /nt60 and the Ubuntu live with the boot-repair suggestions have failed, this has worked for me:



                  (This answer borrowed verbatim from here)




                  1. Run a cmd.exe process with administrator privileges

                  2. Run diskpart

                  3. Type: list disk then sel disk X where X is the drive your boot files reside on

                  4. Type list vol to see all partitions (volumes) on the disk

                  5. Select the EFI volume by typing: sel vol Y where Y is the SYSTEM volume (this is almost always the EFI partition)

                  6. For convenience, assign a drive letter by typing: assign letter=Z: where Z is a free (unused) drive letter

                  7. Type exit to leave disk part

                  8. While still in the cmd prompt, type: Z: and hit enter, where Z was the drive letter you just created.

                  9. Type dir to list directories on this mounted EFI partition

                  10. If you are in the right place, you should see a directory called EFI

                  11. Type cd EFI and then dir to list the child directories inside EFI

                  12. Type rmdir /S ubuntu to delete the ubuntu boot directory


                  Assuming you only ever had two operating systems (Win 10 & Ubuntu) you should now be able to boot directly to Windows without hitting the black grub screen.




                  Copied from https://askubuntu.com/questions/429610/uninstall-grub-and-use-windows-bootloader






                  share|improve this answer






























                    up vote
                    0
                    down vote













                    Just exit the grub by typing exit and go to bios setup and restore to default settings and restart the computer.






                    share|improve this answer








                    New contributor




                    phanindra tallam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.

























                      up vote
                      -1
                      down vote













                      Try this:



                      rootnoverify (hd0,0)
                      chainloader +1
                      makeactive
                      boot





                      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%2f259069%2fhow-to-start-a-windows-partition-from-the-grub-command-line%23new-answer', 'question_page');
                        }
                        );

                        Post as a guest















                        Required, but never shown

























                        10 Answers
                        10






                        active

                        oldest

                        votes








                        10 Answers
                        10






                        active

                        oldest

                        votes









                        active

                        oldest

                        votes






                        active

                        oldest

                        votes








                        up vote
                        13
                        down vote













                        Just enter the command 'exit' (without the quotes of course). It should take you to another menu that makes you select the Windows bootloader.



                        Worked on Lenovo Y50






                        share|improve this answer























                        • Worked well on HP i5 7th Gen with Win10 after formatting the Ubuntu partition.
                          – Elshan
                          Jan 18 at 18:16












                        • Glad it helped! @Elshan
                          – adonayresom
                          Jan 24 at 22:02












                        • Worked in Lenovo ThinkPad, never expected it will work
                          – Renjith
                          Apr 29 at 3:53

















                        up vote
                        13
                        down vote













                        Just enter the command 'exit' (without the quotes of course). It should take you to another menu that makes you select the Windows bootloader.



                        Worked on Lenovo Y50






                        share|improve this answer























                        • Worked well on HP i5 7th Gen with Win10 after formatting the Ubuntu partition.
                          – Elshan
                          Jan 18 at 18:16












                        • Glad it helped! @Elshan
                          – adonayresom
                          Jan 24 at 22:02












                        • Worked in Lenovo ThinkPad, never expected it will work
                          – Renjith
                          Apr 29 at 3:53















                        up vote
                        13
                        down vote










                        up vote
                        13
                        down vote









                        Just enter the command 'exit' (without the quotes of course). It should take you to another menu that makes you select the Windows bootloader.



                        Worked on Lenovo Y50






                        share|improve this answer














                        Just enter the command 'exit' (without the quotes of course). It should take you to another menu that makes you select the Windows bootloader.



                        Worked on Lenovo Y50







                        share|improve this answer














                        share|improve this answer



                        share|improve this answer








                        edited Jan 1 at 21:14

























                        answered Nov 7 '17 at 18:44









                        adonayresom

                        13115




                        13115












                        • Worked well on HP i5 7th Gen with Win10 after formatting the Ubuntu partition.
                          – Elshan
                          Jan 18 at 18:16












                        • Glad it helped! @Elshan
                          – adonayresom
                          Jan 24 at 22:02












                        • Worked in Lenovo ThinkPad, never expected it will work
                          – Renjith
                          Apr 29 at 3:53




















                        • Worked well on HP i5 7th Gen with Win10 after formatting the Ubuntu partition.
                          – Elshan
                          Jan 18 at 18:16












                        • Glad it helped! @Elshan
                          – adonayresom
                          Jan 24 at 22:02












                        • Worked in Lenovo ThinkPad, never expected it will work
                          – Renjith
                          Apr 29 at 3:53


















                        Worked well on HP i5 7th Gen with Win10 after formatting the Ubuntu partition.
                        – Elshan
                        Jan 18 at 18:16






                        Worked well on HP i5 7th Gen with Win10 after formatting the Ubuntu partition.
                        – Elshan
                        Jan 18 at 18:16














                        Glad it helped! @Elshan
                        – adonayresom
                        Jan 24 at 22:02






                        Glad it helped! @Elshan
                        – adonayresom
                        Jan 24 at 22:02














                        Worked in Lenovo ThinkPad, never expected it will work
                        – Renjith
                        Apr 29 at 3:53






                        Worked in Lenovo ThinkPad, never expected it will work
                        – Renjith
                        Apr 29 at 3:53














                        up vote
                        5
                        down vote













                        To boot to Windows, if Windows is installed on first drive/partition, enter in grub command line:



                        insmod chain
                        insmod ntfs
                        set root=(hd0,1)
                        chainloader +1


                        see https://www.gnu.org/software/grub/manual/html_node/Chain_002dloading.html#Chain_002dloading for more details.






                        share|improve this answer

















                        • 3




                          This worked for me. For completeness: you need to give the command "boot" after typing the above.
                          – Tyr
                          Jan 12 '17 at 10:45










                        • This applies only if the Windows system disk is using MBR partitioning. For the GPT equivalent, see this answer by @79E09796
                          – telcoM
                          2 days ago















                        up vote
                        5
                        down vote













                        To boot to Windows, if Windows is installed on first drive/partition, enter in grub command line:



                        insmod chain
                        insmod ntfs
                        set root=(hd0,1)
                        chainloader +1


                        see https://www.gnu.org/software/grub/manual/html_node/Chain_002dloading.html#Chain_002dloading for more details.






                        share|improve this answer

















                        • 3




                          This worked for me. For completeness: you need to give the command "boot" after typing the above.
                          – Tyr
                          Jan 12 '17 at 10:45










                        • This applies only if the Windows system disk is using MBR partitioning. For the GPT equivalent, see this answer by @79E09796
                          – telcoM
                          2 days ago













                        up vote
                        5
                        down vote










                        up vote
                        5
                        down vote









                        To boot to Windows, if Windows is installed on first drive/partition, enter in grub command line:



                        insmod chain
                        insmod ntfs
                        set root=(hd0,1)
                        chainloader +1


                        see https://www.gnu.org/software/grub/manual/html_node/Chain_002dloading.html#Chain_002dloading for more details.






                        share|improve this answer












                        To boot to Windows, if Windows is installed on first drive/partition, enter in grub command line:



                        insmod chain
                        insmod ntfs
                        set root=(hd0,1)
                        chainloader +1


                        see https://www.gnu.org/software/grub/manual/html_node/Chain_002dloading.html#Chain_002dloading for more details.







                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered Feb 1 '16 at 13:21









                        purplepsycho

                        1,89311318




                        1,89311318








                        • 3




                          This worked for me. For completeness: you need to give the command "boot" after typing the above.
                          – Tyr
                          Jan 12 '17 at 10:45










                        • This applies only if the Windows system disk is using MBR partitioning. For the GPT equivalent, see this answer by @79E09796
                          – telcoM
                          2 days ago














                        • 3




                          This worked for me. For completeness: you need to give the command "boot" after typing the above.
                          – Tyr
                          Jan 12 '17 at 10:45










                        • This applies only if the Windows system disk is using MBR partitioning. For the GPT equivalent, see this answer by @79E09796
                          – telcoM
                          2 days ago








                        3




                        3




                        This worked for me. For completeness: you need to give the command "boot" after typing the above.
                        – Tyr
                        Jan 12 '17 at 10:45




                        This worked for me. For completeness: you need to give the command "boot" after typing the above.
                        – Tyr
                        Jan 12 '17 at 10:45












                        This applies only if the Windows system disk is using MBR partitioning. For the GPT equivalent, see this answer by @79E09796
                        – telcoM
                        2 days ago




                        This applies only if the Windows system disk is using MBR partitioning. For the GPT equivalent, see this answer by @79E09796
                        – telcoM
                        2 days ago










                        up vote
                        5
                        down vote













                        The following worked for me with a GPT partitioned disk.



                        insmod part_gpt
                        insmod chain
                        set root=(hd0,gpt1)
                        chainloader /EFI/Microsoft/Boot/bootmgfw.efi
                        boot


                        Note that you can enter a command line from the grub boot menu and just type commands as above to test out different combinations.



                        You need to enter the id of the EFI boot partition (not the windows partition) for the set root= command.



                        In the command line grub mode ls will list the hard drive partitions, help lists available commands.



                        Once you have set the root correctly you can ls / to view files and directories to find the correct path to the windows boot manager if it is not in the default location.






                        share|improve this answer

























                          up vote
                          5
                          down vote













                          The following worked for me with a GPT partitioned disk.



                          insmod part_gpt
                          insmod chain
                          set root=(hd0,gpt1)
                          chainloader /EFI/Microsoft/Boot/bootmgfw.efi
                          boot


                          Note that you can enter a command line from the grub boot menu and just type commands as above to test out different combinations.



                          You need to enter the id of the EFI boot partition (not the windows partition) for the set root= command.



                          In the command line grub mode ls will list the hard drive partitions, help lists available commands.



                          Once you have set the root correctly you can ls / to view files and directories to find the correct path to the windows boot manager if it is not in the default location.






                          share|improve this answer























                            up vote
                            5
                            down vote










                            up vote
                            5
                            down vote









                            The following worked for me with a GPT partitioned disk.



                            insmod part_gpt
                            insmod chain
                            set root=(hd0,gpt1)
                            chainloader /EFI/Microsoft/Boot/bootmgfw.efi
                            boot


                            Note that you can enter a command line from the grub boot menu and just type commands as above to test out different combinations.



                            You need to enter the id of the EFI boot partition (not the windows partition) for the set root= command.



                            In the command line grub mode ls will list the hard drive partitions, help lists available commands.



                            Once you have set the root correctly you can ls / to view files and directories to find the correct path to the windows boot manager if it is not in the default location.






                            share|improve this answer












                            The following worked for me with a GPT partitioned disk.



                            insmod part_gpt
                            insmod chain
                            set root=(hd0,gpt1)
                            chainloader /EFI/Microsoft/Boot/bootmgfw.efi
                            boot


                            Note that you can enter a command line from the grub boot menu and just type commands as above to test out different combinations.



                            You need to enter the id of the EFI boot partition (not the windows partition) for the set root= command.



                            In the command line grub mode ls will list the hard drive partitions, help lists available commands.



                            Once you have set the root correctly you can ls / to view files and directories to find the correct path to the windows boot manager if it is not in the default location.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Mar 9 at 21:46









                            79E09796

                            15013




                            15013






















                                up vote
                                3
                                down vote













                                Guesing you have an UEFI device, the windows bootloader is still installed. You can select it back in UEFI setup menu under boot, where you will prbably have two options (GRUB and the old default as the second), delete the first one or switch the order.






                                share|improve this answer





















                                • Thank you. This was the easiest way and saved me a headache.
                                  – Astrobleme
                                  Mar 12 '17 at 22:07















                                up vote
                                3
                                down vote













                                Guesing you have an UEFI device, the windows bootloader is still installed. You can select it back in UEFI setup menu under boot, where you will prbably have two options (GRUB and the old default as the second), delete the first one or switch the order.






                                share|improve this answer





















                                • Thank you. This was the easiest way and saved me a headache.
                                  – Astrobleme
                                  Mar 12 '17 at 22:07













                                up vote
                                3
                                down vote










                                up vote
                                3
                                down vote









                                Guesing you have an UEFI device, the windows bootloader is still installed. You can select it back in UEFI setup menu under boot, where you will prbably have two options (GRUB and the old default as the second), delete the first one or switch the order.






                                share|improve this answer












                                Guesing you have an UEFI device, the windows bootloader is still installed. You can select it back in UEFI setup menu under boot, where you will prbably have two options (GRUB and the old default as the second), delete the first one or switch the order.







                                share|improve this answer












                                share|improve this answer



                                share|improve this answer










                                answered Feb 5 '16 at 9:00









                                Alko

                                7571515




                                7571515












                                • Thank you. This was the easiest way and saved me a headache.
                                  – Astrobleme
                                  Mar 12 '17 at 22:07


















                                • Thank you. This was the easiest way and saved me a headache.
                                  – Astrobleme
                                  Mar 12 '17 at 22:07
















                                Thank you. This was the easiest way and saved me a headache.
                                – Astrobleme
                                Mar 12 '17 at 22:07




                                Thank you. This was the easiest way and saved me a headache.
                                – Astrobleme
                                Mar 12 '17 at 22:07










                                up vote
                                0
                                down vote













                                Boot from DVD win 10



                                Open command line and type:



                                diskpart

                                select disk 0


                                list volume


                                check bootsect.exe



                                For example E is the DVD



                                E:
                                cd boot
                                dir


                                if bootsect.exe exist type the following command :



                                bootsect /nt60 SYS /mbr


                                or bootsect /nt60 your-drive-letter: /mbr



                                example bootsect /nt60 C: /mbr



                                Reboot






                                share|improve this answer



























                                  up vote
                                  0
                                  down vote













                                  Boot from DVD win 10



                                  Open command line and type:



                                  diskpart

                                  select disk 0


                                  list volume


                                  check bootsect.exe



                                  For example E is the DVD



                                  E:
                                  cd boot
                                  dir


                                  if bootsect.exe exist type the following command :



                                  bootsect /nt60 SYS /mbr


                                  or bootsect /nt60 your-drive-letter: /mbr



                                  example bootsect /nt60 C: /mbr



                                  Reboot






                                  share|improve this answer

























                                    up vote
                                    0
                                    down vote










                                    up vote
                                    0
                                    down vote









                                    Boot from DVD win 10



                                    Open command line and type:



                                    diskpart

                                    select disk 0


                                    list volume


                                    check bootsect.exe



                                    For example E is the DVD



                                    E:
                                    cd boot
                                    dir


                                    if bootsect.exe exist type the following command :



                                    bootsect /nt60 SYS /mbr


                                    or bootsect /nt60 your-drive-letter: /mbr



                                    example bootsect /nt60 C: /mbr



                                    Reboot






                                    share|improve this answer














                                    Boot from DVD win 10



                                    Open command line and type:



                                    diskpart

                                    select disk 0


                                    list volume


                                    check bootsect.exe



                                    For example E is the DVD



                                    E:
                                    cd boot
                                    dir


                                    if bootsect.exe exist type the following command :



                                    bootsect /nt60 SYS /mbr


                                    or bootsect /nt60 your-drive-letter: /mbr



                                    example bootsect /nt60 C: /mbr



                                    Reboot







                                    share|improve this answer














                                    share|improve this answer



                                    share|improve this answer








                                    edited Feb 1 '16 at 14:18

























                                    answered Feb 1 '16 at 14:07









                                    GAD3R

                                    24.9k1749105




                                    24.9k1749105






















                                        up vote
                                        0
                                        down vote













                                        I recently bumped into the same problem. (i.e. originally have a a separate partition with Ubuntu installed, dual bootable from a grub menu. I then deleted that Ubuntu partition from Windows disk management, and when I rebooted, just the grub command menu).



                                        What I did to get back to my Windows 10:




                                        1. Do a Ctrl + Alt + Delete to reboot. While rebooting, hold down the shift button.

                                        2. My PC then give me to option to press F12 for boot option. I clicked F12, and it gives me back a menu with Windows boot manager on it.

                                        3. I selected the Windows boot manager and click enter. I'm now back to Windows 10.






                                        share|improve this answer

























                                          up vote
                                          0
                                          down vote













                                          I recently bumped into the same problem. (i.e. originally have a a separate partition with Ubuntu installed, dual bootable from a grub menu. I then deleted that Ubuntu partition from Windows disk management, and when I rebooted, just the grub command menu).



                                          What I did to get back to my Windows 10:




                                          1. Do a Ctrl + Alt + Delete to reboot. While rebooting, hold down the shift button.

                                          2. My PC then give me to option to press F12 for boot option. I clicked F12, and it gives me back a menu with Windows boot manager on it.

                                          3. I selected the Windows boot manager and click enter. I'm now back to Windows 10.






                                          share|improve this answer























                                            up vote
                                            0
                                            down vote










                                            up vote
                                            0
                                            down vote









                                            I recently bumped into the same problem. (i.e. originally have a a separate partition with Ubuntu installed, dual bootable from a grub menu. I then deleted that Ubuntu partition from Windows disk management, and when I rebooted, just the grub command menu).



                                            What I did to get back to my Windows 10:




                                            1. Do a Ctrl + Alt + Delete to reboot. While rebooting, hold down the shift button.

                                            2. My PC then give me to option to press F12 for boot option. I clicked F12, and it gives me back a menu with Windows boot manager on it.

                                            3. I selected the Windows boot manager and click enter. I'm now back to Windows 10.






                                            share|improve this answer












                                            I recently bumped into the same problem. (i.e. originally have a a separate partition with Ubuntu installed, dual bootable from a grub menu. I then deleted that Ubuntu partition from Windows disk management, and when I rebooted, just the grub command menu).



                                            What I did to get back to my Windows 10:




                                            1. Do a Ctrl + Alt + Delete to reboot. While rebooting, hold down the shift button.

                                            2. My PC then give me to option to press F12 for boot option. I clicked F12, and it gives me back a menu with Windows boot manager on it.

                                            3. I selected the Windows boot manager and click enter. I'm now back to Windows 10.







                                            share|improve this answer












                                            share|improve this answer



                                            share|improve this answer










                                            answered May 29 '17 at 16:35









                                            Atlas7

                                            1012




                                            1012






















                                                up vote
                                                0
                                                down vote














                                                This worked for me, now I have to find a way to permanently fix the mbr.




                                                I recently bumped into the same problem. (i.e. originally have a a separate partition with Ubuntu installed, dual bootable from a grub menu. I then deleted that Ubuntu partition from Windows disk management, and when I rebooted, just the grub command menu).



                                                What I did to get back to my Windows 10:



                                                Do a Ctrl+Alt+Delete to reboot. While rebooting, hold down the shift button.
                                                My PC then give me to option to press F12 for boot option. I clicked F12, and it gives me back a menu with Windows boot manager on it.
                                                I selected the Windows boot manager and click enter. I'm now back to Windows 10.






                                                share|improve this answer



























                                                  up vote
                                                  0
                                                  down vote














                                                  This worked for me, now I have to find a way to permanently fix the mbr.




                                                  I recently bumped into the same problem. (i.e. originally have a a separate partition with Ubuntu installed, dual bootable from a grub menu. I then deleted that Ubuntu partition from Windows disk management, and when I rebooted, just the grub command menu).



                                                  What I did to get back to my Windows 10:



                                                  Do a Ctrl+Alt+Delete to reboot. While rebooting, hold down the shift button.
                                                  My PC then give me to option to press F12 for boot option. I clicked F12, and it gives me back a menu with Windows boot manager on it.
                                                  I selected the Windows boot manager and click enter. I'm now back to Windows 10.






                                                  share|improve this answer

























                                                    up vote
                                                    0
                                                    down vote










                                                    up vote
                                                    0
                                                    down vote










                                                    This worked for me, now I have to find a way to permanently fix the mbr.




                                                    I recently bumped into the same problem. (i.e. originally have a a separate partition with Ubuntu installed, dual bootable from a grub menu. I then deleted that Ubuntu partition from Windows disk management, and when I rebooted, just the grub command menu).



                                                    What I did to get back to my Windows 10:



                                                    Do a Ctrl+Alt+Delete to reboot. While rebooting, hold down the shift button.
                                                    My PC then give me to option to press F12 for boot option. I clicked F12, and it gives me back a menu with Windows boot manager on it.
                                                    I selected the Windows boot manager and click enter. I'm now back to Windows 10.






                                                    share|improve this answer















                                                    This worked for me, now I have to find a way to permanently fix the mbr.




                                                    I recently bumped into the same problem. (i.e. originally have a a separate partition with Ubuntu installed, dual bootable from a grub menu. I then deleted that Ubuntu partition from Windows disk management, and when I rebooted, just the grub command menu).



                                                    What I did to get back to my Windows 10:



                                                    Do a Ctrl+Alt+Delete to reboot. While rebooting, hold down the shift button.
                                                    My PC then give me to option to press F12 for boot option. I clicked F12, and it gives me back a menu with Windows boot manager on it.
                                                    I selected the Windows boot manager and click enter. I'm now back to Windows 10.







                                                    share|improve this answer














                                                    share|improve this answer



                                                    share|improve this answer








                                                    edited Aug 26 '17 at 19:28









                                                    Stephen Rauch

                                                    3,318101328




                                                    3,318101328










                                                    answered Aug 26 '17 at 19:18









                                                    John M. Marr

                                                    1




                                                    1






















                                                        up vote
                                                        0
                                                        down vote















                                                        This answer is for those with UEFI who have deleted the Ubuntu partitions before removing grub

                                                        You will be doing this from Windows 10. No bootable media required.



                                                        Where bootrec /fixmbr, bootsect /nt60 and the Ubuntu live with the boot-repair suggestions have failed, this has worked for me:



                                                        (This answer borrowed verbatim from here)




                                                        1. Run a cmd.exe process with administrator privileges

                                                        2. Run diskpart

                                                        3. Type: list disk then sel disk X where X is the drive your boot files reside on

                                                        4. Type list vol to see all partitions (volumes) on the disk

                                                        5. Select the EFI volume by typing: sel vol Y where Y is the SYSTEM volume (this is almost always the EFI partition)

                                                        6. For convenience, assign a drive letter by typing: assign letter=Z: where Z is a free (unused) drive letter

                                                        7. Type exit to leave disk part

                                                        8. While still in the cmd prompt, type: Z: and hit enter, where Z was the drive letter you just created.

                                                        9. Type dir to list directories on this mounted EFI partition

                                                        10. If you are in the right place, you should see a directory called EFI

                                                        11. Type cd EFI and then dir to list the child directories inside EFI

                                                        12. Type rmdir /S ubuntu to delete the ubuntu boot directory


                                                        Assuming you only ever had two operating systems (Win 10 & Ubuntu) you should now be able to boot directly to Windows without hitting the black grub screen.




                                                        Copied from https://askubuntu.com/questions/429610/uninstall-grub-and-use-windows-bootloader






                                                        share|improve this answer



























                                                          up vote
                                                          0
                                                          down vote















                                                          This answer is for those with UEFI who have deleted the Ubuntu partitions before removing grub

                                                          You will be doing this from Windows 10. No bootable media required.



                                                          Where bootrec /fixmbr, bootsect /nt60 and the Ubuntu live with the boot-repair suggestions have failed, this has worked for me:



                                                          (This answer borrowed verbatim from here)




                                                          1. Run a cmd.exe process with administrator privileges

                                                          2. Run diskpart

                                                          3. Type: list disk then sel disk X where X is the drive your boot files reside on

                                                          4. Type list vol to see all partitions (volumes) on the disk

                                                          5. Select the EFI volume by typing: sel vol Y where Y is the SYSTEM volume (this is almost always the EFI partition)

                                                          6. For convenience, assign a drive letter by typing: assign letter=Z: where Z is a free (unused) drive letter

                                                          7. Type exit to leave disk part

                                                          8. While still in the cmd prompt, type: Z: and hit enter, where Z was the drive letter you just created.

                                                          9. Type dir to list directories on this mounted EFI partition

                                                          10. If you are in the right place, you should see a directory called EFI

                                                          11. Type cd EFI and then dir to list the child directories inside EFI

                                                          12. Type rmdir /S ubuntu to delete the ubuntu boot directory


                                                          Assuming you only ever had two operating systems (Win 10 & Ubuntu) you should now be able to boot directly to Windows without hitting the black grub screen.




                                                          Copied from https://askubuntu.com/questions/429610/uninstall-grub-and-use-windows-bootloader






                                                          share|improve this answer

























                                                            up vote
                                                            0
                                                            down vote










                                                            up vote
                                                            0
                                                            down vote











                                                            This answer is for those with UEFI who have deleted the Ubuntu partitions before removing grub

                                                            You will be doing this from Windows 10. No bootable media required.



                                                            Where bootrec /fixmbr, bootsect /nt60 and the Ubuntu live with the boot-repair suggestions have failed, this has worked for me:



                                                            (This answer borrowed verbatim from here)




                                                            1. Run a cmd.exe process with administrator privileges

                                                            2. Run diskpart

                                                            3. Type: list disk then sel disk X where X is the drive your boot files reside on

                                                            4. Type list vol to see all partitions (volumes) on the disk

                                                            5. Select the EFI volume by typing: sel vol Y where Y is the SYSTEM volume (this is almost always the EFI partition)

                                                            6. For convenience, assign a drive letter by typing: assign letter=Z: where Z is a free (unused) drive letter

                                                            7. Type exit to leave disk part

                                                            8. While still in the cmd prompt, type: Z: and hit enter, where Z was the drive letter you just created.

                                                            9. Type dir to list directories on this mounted EFI partition

                                                            10. If you are in the right place, you should see a directory called EFI

                                                            11. Type cd EFI and then dir to list the child directories inside EFI

                                                            12. Type rmdir /S ubuntu to delete the ubuntu boot directory


                                                            Assuming you only ever had two operating systems (Win 10 & Ubuntu) you should now be able to boot directly to Windows without hitting the black grub screen.




                                                            Copied from https://askubuntu.com/questions/429610/uninstall-grub-and-use-windows-bootloader






                                                            share|improve this answer
















                                                            This answer is for those with UEFI who have deleted the Ubuntu partitions before removing grub

                                                            You will be doing this from Windows 10. No bootable media required.



                                                            Where bootrec /fixmbr, bootsect /nt60 and the Ubuntu live with the boot-repair suggestions have failed, this has worked for me:



                                                            (This answer borrowed verbatim from here)




                                                            1. Run a cmd.exe process with administrator privileges

                                                            2. Run diskpart

                                                            3. Type: list disk then sel disk X where X is the drive your boot files reside on

                                                            4. Type list vol to see all partitions (volumes) on the disk

                                                            5. Select the EFI volume by typing: sel vol Y where Y is the SYSTEM volume (this is almost always the EFI partition)

                                                            6. For convenience, assign a drive letter by typing: assign letter=Z: where Z is a free (unused) drive letter

                                                            7. Type exit to leave disk part

                                                            8. While still in the cmd prompt, type: Z: and hit enter, where Z was the drive letter you just created.

                                                            9. Type dir to list directories on this mounted EFI partition

                                                            10. If you are in the right place, you should see a directory called EFI

                                                            11. Type cd EFI and then dir to list the child directories inside EFI

                                                            12. Type rmdir /S ubuntu to delete the ubuntu boot directory


                                                            Assuming you only ever had two operating systems (Win 10 & Ubuntu) you should now be able to boot directly to Windows without hitting the black grub screen.




                                                            Copied from https://askubuntu.com/questions/429610/uninstall-grub-and-use-windows-bootloader







                                                            share|improve this answer














                                                            share|improve this answer



                                                            share|improve this answer








                                                            edited Sep 5 at 4:13









                                                            G-Man

                                                            12.7k93164




                                                            12.7k93164










                                                            answered Sep 4 at 22:58









                                                            sa my

                                                            1




                                                            1






















                                                                up vote
                                                                0
                                                                down vote













                                                                Just exit the grub by typing exit and go to bios setup and restore to default settings and restart the computer.






                                                                share|improve this answer








                                                                New contributor




                                                                phanindra tallam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                Check out our Code of Conduct.






















                                                                  up vote
                                                                  0
                                                                  down vote













                                                                  Just exit the grub by typing exit and go to bios setup and restore to default settings and restart the computer.






                                                                  share|improve this answer








                                                                  New contributor




                                                                  phanindra tallam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                  Check out our Code of Conduct.




















                                                                    up vote
                                                                    0
                                                                    down vote










                                                                    up vote
                                                                    0
                                                                    down vote









                                                                    Just exit the grub by typing exit and go to bios setup and restore to default settings and restart the computer.






                                                                    share|improve this answer








                                                                    New contributor




                                                                    phanindra tallam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                    Check out our Code of Conduct.









                                                                    Just exit the grub by typing exit and go to bios setup and restore to default settings and restart the computer.







                                                                    share|improve this answer








                                                                    New contributor




                                                                    phanindra tallam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                    Check out our Code of Conduct.









                                                                    share|improve this answer



                                                                    share|improve this answer






                                                                    New contributor




                                                                    phanindra tallam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                    Check out our Code of Conduct.









                                                                    answered 2 days ago









                                                                    phanindra tallam

                                                                    1




                                                                    1




                                                                    New contributor




                                                                    phanindra tallam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                    Check out our Code of Conduct.





                                                                    New contributor





                                                                    phanindra tallam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                    Check out our Code of Conduct.






                                                                    phanindra tallam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                    Check out our Code of Conduct.






















                                                                        up vote
                                                                        -1
                                                                        down vote













                                                                        Try this:



                                                                        rootnoverify (hd0,0)
                                                                        chainloader +1
                                                                        makeactive
                                                                        boot





                                                                        share|improve this answer



























                                                                          up vote
                                                                          -1
                                                                          down vote













                                                                          Try this:



                                                                          rootnoverify (hd0,0)
                                                                          chainloader +1
                                                                          makeactive
                                                                          boot





                                                                          share|improve this answer

























                                                                            up vote
                                                                            -1
                                                                            down vote










                                                                            up vote
                                                                            -1
                                                                            down vote









                                                                            Try this:



                                                                            rootnoverify (hd0,0)
                                                                            chainloader +1
                                                                            makeactive
                                                                            boot





                                                                            share|improve this answer














                                                                            Try this:



                                                                            rootnoverify (hd0,0)
                                                                            chainloader +1
                                                                            makeactive
                                                                            boot






                                                                            share|improve this answer














                                                                            share|improve this answer



                                                                            share|improve this answer








                                                                            edited Nov 23 '16 at 1:30









                                                                            techraf

                                                                            4,125102139




                                                                            4,125102139










                                                                            answered Nov 23 '16 at 1:10









                                                                            abhineet

                                                                            1




                                                                            1






























                                                                                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%2f259069%2fhow-to-start-a-windows-partition-from-the-grub-command-line%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

                                                                                サソリ

                                                                                広島県道265号伴広島線

                                                                                Setup Asymptote in Texstudio