How do I fix “Grub Rescue”? Uninstallation?












3















I am currently dual-booting windows 7 and Ubuntu. I am about to sell my computer so I was following a tutorial on how to uninstall Ubuntu. I had deleted my partitions like the tutorial
said and now I get this:



error : no such partition
grub rescue>_



I am now looking for help on




  1. Getting out of this "grub rescue"

  2. Uninstalling Ubuntu and/or factory reset


Notes
-Newbie
- No windows disks
-I have spare CDs










share|improve this question























  • Try boot-repair-disk ,it will help you to boot into windows.

    – Avinash Raj
    Nov 9 '13 at 7:53
















3















I am currently dual-booting windows 7 and Ubuntu. I am about to sell my computer so I was following a tutorial on how to uninstall Ubuntu. I had deleted my partitions like the tutorial
said and now I get this:



error : no such partition
grub rescue>_



I am now looking for help on




  1. Getting out of this "grub rescue"

  2. Uninstalling Ubuntu and/or factory reset


Notes
-Newbie
- No windows disks
-I have spare CDs










share|improve this question























  • Try boot-repair-disk ,it will help you to boot into windows.

    – Avinash Raj
    Nov 9 '13 at 7:53














3












3








3


2






I am currently dual-booting windows 7 and Ubuntu. I am about to sell my computer so I was following a tutorial on how to uninstall Ubuntu. I had deleted my partitions like the tutorial
said and now I get this:



error : no such partition
grub rescue>_



I am now looking for help on




  1. Getting out of this "grub rescue"

  2. Uninstalling Ubuntu and/or factory reset


Notes
-Newbie
- No windows disks
-I have spare CDs










share|improve this question














I am currently dual-booting windows 7 and Ubuntu. I am about to sell my computer so I was following a tutorial on how to uninstall Ubuntu. I had deleted my partitions like the tutorial
said and now I get this:



error : no such partition
grub rescue>_



I am now looking for help on




  1. Getting out of this "grub rescue"

  2. Uninstalling Ubuntu and/or factory reset


Notes
-Newbie
- No windows disks
-I have spare CDs







grub2






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 9 '13 at 7:49









Julien MackenzieJulien Mackenzie

31135




31135













  • Try boot-repair-disk ,it will help you to boot into windows.

    – Avinash Raj
    Nov 9 '13 at 7:53



















  • Try boot-repair-disk ,it will help you to boot into windows.

    – Avinash Raj
    Nov 9 '13 at 7:53

















Try boot-repair-disk ,it will help you to boot into windows.

– Avinash Raj
Nov 9 '13 at 7:53





Try boot-repair-disk ,it will help you to boot into windows.

– Avinash Raj
Nov 9 '13 at 7:53










2 Answers
2






active

oldest

votes


















6














(From within rescue mode)



Command: ls



It will list all your drives and partitions, like:



(hd0) (hd0,msdos2) (hd0,msdos1)


If you don't know your Ubuntu boot partition, check them one by one:



ls (hd0,msdos2)/
ls (hd0,msdos1)/


When you hit the right one, you'll get a line mentioning "lost+found" and so on.



Assuming (hd0,msdos2) is the right partition:



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


Now you'll be able to boot into Ubuntu. Once you do, execute the following commands:



sudo update-grub
sudo grub-install /dev/sda


Voila.






share|improve this answer





















  • 2





    He deleted the ubuntu partitions, so I guess there is no ubuntu to boot to

    – Dr_Bunsen
    Nov 9 '13 at 11:33











  • Yes he deleted the ubuntu partition and try to recover windows partition.

    – Avinash Raj
    Nov 9 '13 at 11:39











  • A Win 7 recovery DVD can be written from any Win 7 machine. Boot from recovery DVD, choose to recover win loader from the graphic menu, or choose to enter command line and execute bootrec /fixmbr and bootrec /fixboot.

    – Pavel
    Nov 9 '13 at 14:24



















1














You could do either of two things:





  1. Use a Windows 7 installation CD, boot it, and search for the repair option. After that you will get many options; then search for 'command prompt'. Type the following commands into a command prompt one-by-one and press Enter.




    • bootrec.exe/fixmbr


    • bootrec.exe/fixboot
      Thats it done. Or watch this YouTube tutorial.



  2. If you have any Linux installation CD/DVD or USB pendrive then live boot it and follow the steps shown on the page Boot-Repair. You will get the boot menu back.







share|improve this answer

























    Your Answer








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

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

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f373385%2fhow-do-i-fix-grub-rescue-uninstallation%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    6














    (From within rescue mode)



    Command: ls



    It will list all your drives and partitions, like:



    (hd0) (hd0,msdos2) (hd0,msdos1)


    If you don't know your Ubuntu boot partition, check them one by one:



    ls (hd0,msdos2)/
    ls (hd0,msdos1)/


    When you hit the right one, you'll get a line mentioning "lost+found" and so on.



    Assuming (hd0,msdos2) is the right partition:



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


    Now you'll be able to boot into Ubuntu. Once you do, execute the following commands:



    sudo update-grub
    sudo grub-install /dev/sda


    Voila.






    share|improve this answer





















    • 2





      He deleted the ubuntu partitions, so I guess there is no ubuntu to boot to

      – Dr_Bunsen
      Nov 9 '13 at 11:33











    • Yes he deleted the ubuntu partition and try to recover windows partition.

      – Avinash Raj
      Nov 9 '13 at 11:39











    • A Win 7 recovery DVD can be written from any Win 7 machine. Boot from recovery DVD, choose to recover win loader from the graphic menu, or choose to enter command line and execute bootrec /fixmbr and bootrec /fixboot.

      – Pavel
      Nov 9 '13 at 14:24
















    6














    (From within rescue mode)



    Command: ls



    It will list all your drives and partitions, like:



    (hd0) (hd0,msdos2) (hd0,msdos1)


    If you don't know your Ubuntu boot partition, check them one by one:



    ls (hd0,msdos2)/
    ls (hd0,msdos1)/


    When you hit the right one, you'll get a line mentioning "lost+found" and so on.



    Assuming (hd0,msdos2) is the right partition:



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


    Now you'll be able to boot into Ubuntu. Once you do, execute the following commands:



    sudo update-grub
    sudo grub-install /dev/sda


    Voila.






    share|improve this answer





















    • 2





      He deleted the ubuntu partitions, so I guess there is no ubuntu to boot to

      – Dr_Bunsen
      Nov 9 '13 at 11:33











    • Yes he deleted the ubuntu partition and try to recover windows partition.

      – Avinash Raj
      Nov 9 '13 at 11:39











    • A Win 7 recovery DVD can be written from any Win 7 machine. Boot from recovery DVD, choose to recover win loader from the graphic menu, or choose to enter command line and execute bootrec /fixmbr and bootrec /fixboot.

      – Pavel
      Nov 9 '13 at 14:24














    6












    6








    6







    (From within rescue mode)



    Command: ls



    It will list all your drives and partitions, like:



    (hd0) (hd0,msdos2) (hd0,msdos1)


    If you don't know your Ubuntu boot partition, check them one by one:



    ls (hd0,msdos2)/
    ls (hd0,msdos1)/


    When you hit the right one, you'll get a line mentioning "lost+found" and so on.



    Assuming (hd0,msdos2) is the right partition:



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


    Now you'll be able to boot into Ubuntu. Once you do, execute the following commands:



    sudo update-grub
    sudo grub-install /dev/sda


    Voila.






    share|improve this answer















    (From within rescue mode)



    Command: ls



    It will list all your drives and partitions, like:



    (hd0) (hd0,msdos2) (hd0,msdos1)


    If you don't know your Ubuntu boot partition, check them one by one:



    ls (hd0,msdos2)/
    ls (hd0,msdos1)/


    When you hit the right one, you'll get a line mentioning "lost+found" and so on.



    Assuming (hd0,msdos2) is the right partition:



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


    Now you'll be able to boot into Ubuntu. Once you do, execute the following commands:



    sudo update-grub
    sudo grub-install /dev/sda


    Voila.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Jun 19 '16 at 13:56









    dadexix86

    5,4182596




    5,4182596










    answered Nov 9 '13 at 8:46









    PavelPavel

    87311022




    87311022








    • 2





      He deleted the ubuntu partitions, so I guess there is no ubuntu to boot to

      – Dr_Bunsen
      Nov 9 '13 at 11:33











    • Yes he deleted the ubuntu partition and try to recover windows partition.

      – Avinash Raj
      Nov 9 '13 at 11:39











    • A Win 7 recovery DVD can be written from any Win 7 machine. Boot from recovery DVD, choose to recover win loader from the graphic menu, or choose to enter command line and execute bootrec /fixmbr and bootrec /fixboot.

      – Pavel
      Nov 9 '13 at 14:24














    • 2





      He deleted the ubuntu partitions, so I guess there is no ubuntu to boot to

      – Dr_Bunsen
      Nov 9 '13 at 11:33











    • Yes he deleted the ubuntu partition and try to recover windows partition.

      – Avinash Raj
      Nov 9 '13 at 11:39











    • A Win 7 recovery DVD can be written from any Win 7 machine. Boot from recovery DVD, choose to recover win loader from the graphic menu, or choose to enter command line and execute bootrec /fixmbr and bootrec /fixboot.

      – Pavel
      Nov 9 '13 at 14:24








    2




    2





    He deleted the ubuntu partitions, so I guess there is no ubuntu to boot to

    – Dr_Bunsen
    Nov 9 '13 at 11:33





    He deleted the ubuntu partitions, so I guess there is no ubuntu to boot to

    – Dr_Bunsen
    Nov 9 '13 at 11:33













    Yes he deleted the ubuntu partition and try to recover windows partition.

    – Avinash Raj
    Nov 9 '13 at 11:39





    Yes he deleted the ubuntu partition and try to recover windows partition.

    – Avinash Raj
    Nov 9 '13 at 11:39













    A Win 7 recovery DVD can be written from any Win 7 machine. Boot from recovery DVD, choose to recover win loader from the graphic menu, or choose to enter command line and execute bootrec /fixmbr and bootrec /fixboot.

    – Pavel
    Nov 9 '13 at 14:24





    A Win 7 recovery DVD can be written from any Win 7 machine. Boot from recovery DVD, choose to recover win loader from the graphic menu, or choose to enter command line and execute bootrec /fixmbr and bootrec /fixboot.

    – Pavel
    Nov 9 '13 at 14:24













    1














    You could do either of two things:





    1. Use a Windows 7 installation CD, boot it, and search for the repair option. After that you will get many options; then search for 'command prompt'. Type the following commands into a command prompt one-by-one and press Enter.




      • bootrec.exe/fixmbr


      • bootrec.exe/fixboot
        Thats it done. Or watch this YouTube tutorial.



    2. If you have any Linux installation CD/DVD or USB pendrive then live boot it and follow the steps shown on the page Boot-Repair. You will get the boot menu back.







    share|improve this answer






























      1














      You could do either of two things:





      1. Use a Windows 7 installation CD, boot it, and search for the repair option. After that you will get many options; then search for 'command prompt'. Type the following commands into a command prompt one-by-one and press Enter.




        • bootrec.exe/fixmbr


        • bootrec.exe/fixboot
          Thats it done. Or watch this YouTube tutorial.



      2. If you have any Linux installation CD/DVD or USB pendrive then live boot it and follow the steps shown on the page Boot-Repair. You will get the boot menu back.







      share|improve this answer




























        1












        1








        1







        You could do either of two things:





        1. Use a Windows 7 installation CD, boot it, and search for the repair option. After that you will get many options; then search for 'command prompt'. Type the following commands into a command prompt one-by-one and press Enter.




          • bootrec.exe/fixmbr


          • bootrec.exe/fixboot
            Thats it done. Or watch this YouTube tutorial.



        2. If you have any Linux installation CD/DVD or USB pendrive then live boot it and follow the steps shown on the page Boot-Repair. You will get the boot menu back.







        share|improve this answer















        You could do either of two things:





        1. Use a Windows 7 installation CD, boot it, and search for the repair option. After that you will get many options; then search for 'command prompt'. Type the following commands into a command prompt one-by-one and press Enter.




          • bootrec.exe/fixmbr


          • bootrec.exe/fixboot
            Thats it done. Or watch this YouTube tutorial.



        2. If you have any Linux installation CD/DVD or USB pendrive then live boot it and follow the steps shown on the page Boot-Repair. You will get the boot menu back.








        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jun 19 '16 at 15:45









        Peter Mortensen

        1,03721016




        1,03721016










        answered Oct 12 '14 at 22:55









        Edward TorvaldsEdward Torvalds

        5,09274079




        5,09274079






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f373385%2fhow-do-i-fix-grub-rescue-uninstallation%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to make a Squid Proxy server?

            Is this a new Fibonacci Identity?

            19世紀