Restore Windows bootloader











up vote
4
down vote

favorite
1












I installed Ubuntu on my laptop and something happened and my Windows 7 bootloader is missing. I can boot only Ubuntu.
So, I tried to do something like suggested here
How to restore Windows 7 loader
or here, but when I see system recovery option there is no Windows 7 option.



enter image description here










share|improve this question




















  • 1




    What's the output of sudo os-prober? If that doesn't list Windows, please run Boot-Info and edit your question to include a link to its resulting info log. Thanks.
    – David Foerster
    Feb 23 '17 at 16:14










  • @DavidFoerster cool comment - after 5 months)
    – user2950593
    Feb 25 '17 at 9:15






  • 1




    Well, even if it doesn't help you it may help someone with the same issue who may want to ask a similar question and wants to know which info to provide. It's also a message to other reviewers why I think they should close this question as unclear for lack of information.
    – David Foerster
    Feb 25 '17 at 9:53

















up vote
4
down vote

favorite
1












I installed Ubuntu on my laptop and something happened and my Windows 7 bootloader is missing. I can boot only Ubuntu.
So, I tried to do something like suggested here
How to restore Windows 7 loader
or here, but when I see system recovery option there is no Windows 7 option.



enter image description here










share|improve this question




















  • 1




    What's the output of sudo os-prober? If that doesn't list Windows, please run Boot-Info and edit your question to include a link to its resulting info log. Thanks.
    – David Foerster
    Feb 23 '17 at 16:14










  • @DavidFoerster cool comment - after 5 months)
    – user2950593
    Feb 25 '17 at 9:15






  • 1




    Well, even if it doesn't help you it may help someone with the same issue who may want to ask a similar question and wants to know which info to provide. It's also a message to other reviewers why I think they should close this question as unclear for lack of information.
    – David Foerster
    Feb 25 '17 at 9:53















up vote
4
down vote

favorite
1









up vote
4
down vote

favorite
1






1





I installed Ubuntu on my laptop and something happened and my Windows 7 bootloader is missing. I can boot only Ubuntu.
So, I tried to do something like suggested here
How to restore Windows 7 loader
or here, but when I see system recovery option there is no Windows 7 option.



enter image description here










share|improve this question















I installed Ubuntu on my laptop and something happened and my Windows 7 bootloader is missing. I can boot only Ubuntu.
So, I tried to do something like suggested here
How to restore Windows 7 loader
or here, but when I see system recovery option there is no Windows 7 option.



enter image description here







boot windows bootloader






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 13 '17 at 12:23









Community

1




1










asked Sep 8 '16 at 20:51









user2950593

204139




204139








  • 1




    What's the output of sudo os-prober? If that doesn't list Windows, please run Boot-Info and edit your question to include a link to its resulting info log. Thanks.
    – David Foerster
    Feb 23 '17 at 16:14










  • @DavidFoerster cool comment - after 5 months)
    – user2950593
    Feb 25 '17 at 9:15






  • 1




    Well, even if it doesn't help you it may help someone with the same issue who may want to ask a similar question and wants to know which info to provide. It's also a message to other reviewers why I think they should close this question as unclear for lack of information.
    – David Foerster
    Feb 25 '17 at 9:53
















  • 1




    What's the output of sudo os-prober? If that doesn't list Windows, please run Boot-Info and edit your question to include a link to its resulting info log. Thanks.
    – David Foerster
    Feb 23 '17 at 16:14










  • @DavidFoerster cool comment - after 5 months)
    – user2950593
    Feb 25 '17 at 9:15






  • 1




    Well, even if it doesn't help you it may help someone with the same issue who may want to ask a similar question and wants to know which info to provide. It's also a message to other reviewers why I think they should close this question as unclear for lack of information.
    – David Foerster
    Feb 25 '17 at 9:53










1




1




What's the output of sudo os-prober? If that doesn't list Windows, please run Boot-Info and edit your question to include a link to its resulting info log. Thanks.
– David Foerster
Feb 23 '17 at 16:14




What's the output of sudo os-prober? If that doesn't list Windows, please run Boot-Info and edit your question to include a link to its resulting info log. Thanks.
– David Foerster
Feb 23 '17 at 16:14












@DavidFoerster cool comment - after 5 months)
– user2950593
Feb 25 '17 at 9:15




@DavidFoerster cool comment - after 5 months)
– user2950593
Feb 25 '17 at 9:15




1




1




Well, even if it doesn't help you it may help someone with the same issue who may want to ask a similar question and wants to know which info to provide. It's also a message to other reviewers why I think they should close this question as unclear for lack of information.
– David Foerster
Feb 25 '17 at 9:53






Well, even if it doesn't help you it may help someone with the same issue who may want to ask a similar question and wants to know which info to provide. It's also a message to other reviewers why I think they should close this question as unclear for lack of information.
– David Foerster
Feb 25 '17 at 9:53












3 Answers
3






active

oldest

votes

















up vote
4
down vote













Can you still log into Ubuntu? If you can, open a terminal and type:



sudo update-grub


It will hopefully detect the Windows 7 installation and add its option to the grub boot menu.






share|improve this answer




























    up vote
    3
    down vote













    Add Windows to GRUB boot menu




    • Add Windows 10 to GRUB OS list


    Boot Windows from grub rescue prompt




    • Boot Windows from grub rescue command prompt




    Repair Windows MBR



    This tutorial shows how to repair your Windows bootloader (MBR) from Ubuntu dual boot or Ubuntu live DVD/USB. This can be useful if you don't have a Windows DVD on hand.



    Boot into your Ubuntu operating system. When you're in Ubuntu, open the terminal and follow the below steps.





    1. Run this command to check your disk:



      sudo fdisk -l


      The output tells you the disk information:



      Disk /dev/sda: 320.1 GB, 320072933376 bytes
      255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
      Units = sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 4096 bytes
      I/O size (minimum/optimal): 4096 bytes / 4096 bytes
      Disk identifier: 0x016c8108

      Device Boot Start End Blocks Id System
      /dev/sda1 * 63 39054014 19526976 7 HPFS/NTFS/exFAT



    2. Now run these commands to install syslinux, which is a suite of lightweight IBM PC MBR bootloaders for starting up computers with the Linux kernel.



      sudo apt update
      sudo apt install syslinux



    3. Once installed, you can fix your Windows bootloader by running the below command in the terminal:



      sudo dd if=/usr/lib/syslinux/mbr/mbr.bin of=/dev/sda



    Rescatux



    Rescatux is a free bootable live CD/USB that can repair GRUB and the Windows bootloader. Rescatux has a graphical interface with a menu of operating system rescue tasks. If your hard disk has the MBR partitioning format, you can select the Restore Windows MBR (BETA) option to repair the Windows bootloader. If your computer has UEFI firmware, you can select among the UEFI options Boot options.



    Boot options:




    • (>=0.41 beta 1) Update UEFI order

    • (>=0.41 beta 1) Create a new UEFI Boot entry

    • (>=0.41 beta 1) UEFI Partition Status

    • (>=0.41 beta 1) Fake Microsoft Windows UEFI

    • (>=0.41 beta 1) Hide Microsoft Windows UEFI

    • (>=0.41 beta 1) Reinstall Microsoft Windows EFI

    • (>=0.41 beta 1) Check UEFI Boot


    GRUB options:




    • (>=0.40 beta 11) Easy GNU/Linux Boot Fix

    • Restore GRUB and GRUB2

    • (>=0.31 beta 4) Update any GRUB2 menu

    • Update Debian/Ubuntu GRUB menus


    Windows options:




    • Restore Windows MBR (BETA)

    • Clear Windows passwords

    • (>=0.31 beta 4) Promote a Windows user to Administrator role

    • (>=0.41 beta 1) Reinstall Microsoft Windows EFI

    • (>=0.31 beta 4) Unlock Windows user


    Password options:




    • Change GNU/Linux Password

    • Regenerate sudoers file

    • Clear Windows passwords


    enter image description here
    Rescapp is a nice wizard that will guide you through your rescue tasks.





    How to make a Rescatux live USB from Ubuntu




    1. Insert a USB flash drive and check if the boot flag has been enabled on the flash drive using the GParted application. Unmount the USB flash drive. Open GParted and select the USB flash drive from the menu list of drives. From the GParted menu select: Partition -> Manage Flags -> check boot.


    2. It is very important to verify that the device that you are installing the Rescatux live USB to is indeed your flash drive, so that you don't overwrite any of your system or personal files which may make your operating system unbootable. In Ubuntu you can find the device name of the flash drive using the Disks application.



    3. Unmount the USB partition device. Let's say the USB partition device is /dev/sdc1



      sudo umount /dev/sdc1 # replace sdc1 with the partition name of your USB drive


    4. Change directories using cd to the path of the directory where the Rescatux iso file that you downloaded is located.



    5. Write the Rescatux iso file to the USB flash drive. In the following command replace rescatux_0.xxxx.iso with the name of the Rescatux iso file you downloaded.



      sudo dd if=rescatux_0.xxxx.iso of=/dev/sdc   
      sudo sync



    I have also been able to make a Rescatux live USB using the built-in Startup Disk Creator app.






    share|improve this answer






























      up vote
      1
      down vote













      You can use this utility to boot to your windows. SuperGrub2 lets you boot to any present OS regardless of MBR or Boot menu.



      You can also use Rescatux from the same people to reinstall your windows boot loader.






      share|improve this answer





















        Your Answer








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

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

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


        }
        });














        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f822708%2frestore-windows-bootloader%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes








        up vote
        4
        down vote













        Can you still log into Ubuntu? If you can, open a terminal and type:



        sudo update-grub


        It will hopefully detect the Windows 7 installation and add its option to the grub boot menu.






        share|improve this answer

























          up vote
          4
          down vote













          Can you still log into Ubuntu? If you can, open a terminal and type:



          sudo update-grub


          It will hopefully detect the Windows 7 installation and add its option to the grub boot menu.






          share|improve this answer























            up vote
            4
            down vote










            up vote
            4
            down vote









            Can you still log into Ubuntu? If you can, open a terminal and type:



            sudo update-grub


            It will hopefully detect the Windows 7 installation and add its option to the grub boot menu.






            share|improve this answer












            Can you still log into Ubuntu? If you can, open a terminal and type:



            sudo update-grub


            It will hopefully detect the Windows 7 installation and add its option to the grub boot menu.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Sep 8 '16 at 21:01









            Syed Ali Irtaza Kazmi

            715




            715
























                up vote
                3
                down vote













                Add Windows to GRUB boot menu




                • Add Windows 10 to GRUB OS list


                Boot Windows from grub rescue prompt




                • Boot Windows from grub rescue command prompt




                Repair Windows MBR



                This tutorial shows how to repair your Windows bootloader (MBR) from Ubuntu dual boot or Ubuntu live DVD/USB. This can be useful if you don't have a Windows DVD on hand.



                Boot into your Ubuntu operating system. When you're in Ubuntu, open the terminal and follow the below steps.





                1. Run this command to check your disk:



                  sudo fdisk -l


                  The output tells you the disk information:



                  Disk /dev/sda: 320.1 GB, 320072933376 bytes
                  255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
                  Units = sectors of 1 * 512 = 512 bytes
                  Sector size (logical/physical): 512 bytes / 4096 bytes
                  I/O size (minimum/optimal): 4096 bytes / 4096 bytes
                  Disk identifier: 0x016c8108

                  Device Boot Start End Blocks Id System
                  /dev/sda1 * 63 39054014 19526976 7 HPFS/NTFS/exFAT



                2. Now run these commands to install syslinux, which is a suite of lightweight IBM PC MBR bootloaders for starting up computers with the Linux kernel.



                  sudo apt update
                  sudo apt install syslinux



                3. Once installed, you can fix your Windows bootloader by running the below command in the terminal:



                  sudo dd if=/usr/lib/syslinux/mbr/mbr.bin of=/dev/sda



                Rescatux



                Rescatux is a free bootable live CD/USB that can repair GRUB and the Windows bootloader. Rescatux has a graphical interface with a menu of operating system rescue tasks. If your hard disk has the MBR partitioning format, you can select the Restore Windows MBR (BETA) option to repair the Windows bootloader. If your computer has UEFI firmware, you can select among the UEFI options Boot options.



                Boot options:




                • (>=0.41 beta 1) Update UEFI order

                • (>=0.41 beta 1) Create a new UEFI Boot entry

                • (>=0.41 beta 1) UEFI Partition Status

                • (>=0.41 beta 1) Fake Microsoft Windows UEFI

                • (>=0.41 beta 1) Hide Microsoft Windows UEFI

                • (>=0.41 beta 1) Reinstall Microsoft Windows EFI

                • (>=0.41 beta 1) Check UEFI Boot


                GRUB options:




                • (>=0.40 beta 11) Easy GNU/Linux Boot Fix

                • Restore GRUB and GRUB2

                • (>=0.31 beta 4) Update any GRUB2 menu

                • Update Debian/Ubuntu GRUB menus


                Windows options:




                • Restore Windows MBR (BETA)

                • Clear Windows passwords

                • (>=0.31 beta 4) Promote a Windows user to Administrator role

                • (>=0.41 beta 1) Reinstall Microsoft Windows EFI

                • (>=0.31 beta 4) Unlock Windows user


                Password options:




                • Change GNU/Linux Password

                • Regenerate sudoers file

                • Clear Windows passwords


                enter image description here
                Rescapp is a nice wizard that will guide you through your rescue tasks.





                How to make a Rescatux live USB from Ubuntu




                1. Insert a USB flash drive and check if the boot flag has been enabled on the flash drive using the GParted application. Unmount the USB flash drive. Open GParted and select the USB flash drive from the menu list of drives. From the GParted menu select: Partition -> Manage Flags -> check boot.


                2. It is very important to verify that the device that you are installing the Rescatux live USB to is indeed your flash drive, so that you don't overwrite any of your system or personal files which may make your operating system unbootable. In Ubuntu you can find the device name of the flash drive using the Disks application.



                3. Unmount the USB partition device. Let's say the USB partition device is /dev/sdc1



                  sudo umount /dev/sdc1 # replace sdc1 with the partition name of your USB drive


                4. Change directories using cd to the path of the directory where the Rescatux iso file that you downloaded is located.



                5. Write the Rescatux iso file to the USB flash drive. In the following command replace rescatux_0.xxxx.iso with the name of the Rescatux iso file you downloaded.



                  sudo dd if=rescatux_0.xxxx.iso of=/dev/sdc   
                  sudo sync



                I have also been able to make a Rescatux live USB using the built-in Startup Disk Creator app.






                share|improve this answer



























                  up vote
                  3
                  down vote













                  Add Windows to GRUB boot menu




                  • Add Windows 10 to GRUB OS list


                  Boot Windows from grub rescue prompt




                  • Boot Windows from grub rescue command prompt




                  Repair Windows MBR



                  This tutorial shows how to repair your Windows bootloader (MBR) from Ubuntu dual boot or Ubuntu live DVD/USB. This can be useful if you don't have a Windows DVD on hand.



                  Boot into your Ubuntu operating system. When you're in Ubuntu, open the terminal and follow the below steps.





                  1. Run this command to check your disk:



                    sudo fdisk -l


                    The output tells you the disk information:



                    Disk /dev/sda: 320.1 GB, 320072933376 bytes
                    255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
                    Units = sectors of 1 * 512 = 512 bytes
                    Sector size (logical/physical): 512 bytes / 4096 bytes
                    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
                    Disk identifier: 0x016c8108

                    Device Boot Start End Blocks Id System
                    /dev/sda1 * 63 39054014 19526976 7 HPFS/NTFS/exFAT



                  2. Now run these commands to install syslinux, which is a suite of lightweight IBM PC MBR bootloaders for starting up computers with the Linux kernel.



                    sudo apt update
                    sudo apt install syslinux



                  3. Once installed, you can fix your Windows bootloader by running the below command in the terminal:



                    sudo dd if=/usr/lib/syslinux/mbr/mbr.bin of=/dev/sda



                  Rescatux



                  Rescatux is a free bootable live CD/USB that can repair GRUB and the Windows bootloader. Rescatux has a graphical interface with a menu of operating system rescue tasks. If your hard disk has the MBR partitioning format, you can select the Restore Windows MBR (BETA) option to repair the Windows bootloader. If your computer has UEFI firmware, you can select among the UEFI options Boot options.



                  Boot options:




                  • (>=0.41 beta 1) Update UEFI order

                  • (>=0.41 beta 1) Create a new UEFI Boot entry

                  • (>=0.41 beta 1) UEFI Partition Status

                  • (>=0.41 beta 1) Fake Microsoft Windows UEFI

                  • (>=0.41 beta 1) Hide Microsoft Windows UEFI

                  • (>=0.41 beta 1) Reinstall Microsoft Windows EFI

                  • (>=0.41 beta 1) Check UEFI Boot


                  GRUB options:




                  • (>=0.40 beta 11) Easy GNU/Linux Boot Fix

                  • Restore GRUB and GRUB2

                  • (>=0.31 beta 4) Update any GRUB2 menu

                  • Update Debian/Ubuntu GRUB menus


                  Windows options:




                  • Restore Windows MBR (BETA)

                  • Clear Windows passwords

                  • (>=0.31 beta 4) Promote a Windows user to Administrator role

                  • (>=0.41 beta 1) Reinstall Microsoft Windows EFI

                  • (>=0.31 beta 4) Unlock Windows user


                  Password options:




                  • Change GNU/Linux Password

                  • Regenerate sudoers file

                  • Clear Windows passwords


                  enter image description here
                  Rescapp is a nice wizard that will guide you through your rescue tasks.





                  How to make a Rescatux live USB from Ubuntu




                  1. Insert a USB flash drive and check if the boot flag has been enabled on the flash drive using the GParted application. Unmount the USB flash drive. Open GParted and select the USB flash drive from the menu list of drives. From the GParted menu select: Partition -> Manage Flags -> check boot.


                  2. It is very important to verify that the device that you are installing the Rescatux live USB to is indeed your flash drive, so that you don't overwrite any of your system or personal files which may make your operating system unbootable. In Ubuntu you can find the device name of the flash drive using the Disks application.



                  3. Unmount the USB partition device. Let's say the USB partition device is /dev/sdc1



                    sudo umount /dev/sdc1 # replace sdc1 with the partition name of your USB drive


                  4. Change directories using cd to the path of the directory where the Rescatux iso file that you downloaded is located.



                  5. Write the Rescatux iso file to the USB flash drive. In the following command replace rescatux_0.xxxx.iso with the name of the Rescatux iso file you downloaded.



                    sudo dd if=rescatux_0.xxxx.iso of=/dev/sdc   
                    sudo sync



                  I have also been able to make a Rescatux live USB using the built-in Startup Disk Creator app.






                  share|improve this answer

























                    up vote
                    3
                    down vote










                    up vote
                    3
                    down vote









                    Add Windows to GRUB boot menu




                    • Add Windows 10 to GRUB OS list


                    Boot Windows from grub rescue prompt




                    • Boot Windows from grub rescue command prompt




                    Repair Windows MBR



                    This tutorial shows how to repair your Windows bootloader (MBR) from Ubuntu dual boot or Ubuntu live DVD/USB. This can be useful if you don't have a Windows DVD on hand.



                    Boot into your Ubuntu operating system. When you're in Ubuntu, open the terminal and follow the below steps.





                    1. Run this command to check your disk:



                      sudo fdisk -l


                      The output tells you the disk information:



                      Disk /dev/sda: 320.1 GB, 320072933376 bytes
                      255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
                      Units = sectors of 1 * 512 = 512 bytes
                      Sector size (logical/physical): 512 bytes / 4096 bytes
                      I/O size (minimum/optimal): 4096 bytes / 4096 bytes
                      Disk identifier: 0x016c8108

                      Device Boot Start End Blocks Id System
                      /dev/sda1 * 63 39054014 19526976 7 HPFS/NTFS/exFAT



                    2. Now run these commands to install syslinux, which is a suite of lightweight IBM PC MBR bootloaders for starting up computers with the Linux kernel.



                      sudo apt update
                      sudo apt install syslinux



                    3. Once installed, you can fix your Windows bootloader by running the below command in the terminal:



                      sudo dd if=/usr/lib/syslinux/mbr/mbr.bin of=/dev/sda



                    Rescatux



                    Rescatux is a free bootable live CD/USB that can repair GRUB and the Windows bootloader. Rescatux has a graphical interface with a menu of operating system rescue tasks. If your hard disk has the MBR partitioning format, you can select the Restore Windows MBR (BETA) option to repair the Windows bootloader. If your computer has UEFI firmware, you can select among the UEFI options Boot options.



                    Boot options:




                    • (>=0.41 beta 1) Update UEFI order

                    • (>=0.41 beta 1) Create a new UEFI Boot entry

                    • (>=0.41 beta 1) UEFI Partition Status

                    • (>=0.41 beta 1) Fake Microsoft Windows UEFI

                    • (>=0.41 beta 1) Hide Microsoft Windows UEFI

                    • (>=0.41 beta 1) Reinstall Microsoft Windows EFI

                    • (>=0.41 beta 1) Check UEFI Boot


                    GRUB options:




                    • (>=0.40 beta 11) Easy GNU/Linux Boot Fix

                    • Restore GRUB and GRUB2

                    • (>=0.31 beta 4) Update any GRUB2 menu

                    • Update Debian/Ubuntu GRUB menus


                    Windows options:




                    • Restore Windows MBR (BETA)

                    • Clear Windows passwords

                    • (>=0.31 beta 4) Promote a Windows user to Administrator role

                    • (>=0.41 beta 1) Reinstall Microsoft Windows EFI

                    • (>=0.31 beta 4) Unlock Windows user


                    Password options:




                    • Change GNU/Linux Password

                    • Regenerate sudoers file

                    • Clear Windows passwords


                    enter image description here
                    Rescapp is a nice wizard that will guide you through your rescue tasks.





                    How to make a Rescatux live USB from Ubuntu




                    1. Insert a USB flash drive and check if the boot flag has been enabled on the flash drive using the GParted application. Unmount the USB flash drive. Open GParted and select the USB flash drive from the menu list of drives. From the GParted menu select: Partition -> Manage Flags -> check boot.


                    2. It is very important to verify that the device that you are installing the Rescatux live USB to is indeed your flash drive, so that you don't overwrite any of your system or personal files which may make your operating system unbootable. In Ubuntu you can find the device name of the flash drive using the Disks application.



                    3. Unmount the USB partition device. Let's say the USB partition device is /dev/sdc1



                      sudo umount /dev/sdc1 # replace sdc1 with the partition name of your USB drive


                    4. Change directories using cd to the path of the directory where the Rescatux iso file that you downloaded is located.



                    5. Write the Rescatux iso file to the USB flash drive. In the following command replace rescatux_0.xxxx.iso with the name of the Rescatux iso file you downloaded.



                      sudo dd if=rescatux_0.xxxx.iso of=/dev/sdc   
                      sudo sync



                    I have also been able to make a Rescatux live USB using the built-in Startup Disk Creator app.






                    share|improve this answer














                    Add Windows to GRUB boot menu




                    • Add Windows 10 to GRUB OS list


                    Boot Windows from grub rescue prompt




                    • Boot Windows from grub rescue command prompt




                    Repair Windows MBR



                    This tutorial shows how to repair your Windows bootloader (MBR) from Ubuntu dual boot or Ubuntu live DVD/USB. This can be useful if you don't have a Windows DVD on hand.



                    Boot into your Ubuntu operating system. When you're in Ubuntu, open the terminal and follow the below steps.





                    1. Run this command to check your disk:



                      sudo fdisk -l


                      The output tells you the disk information:



                      Disk /dev/sda: 320.1 GB, 320072933376 bytes
                      255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
                      Units = sectors of 1 * 512 = 512 bytes
                      Sector size (logical/physical): 512 bytes / 4096 bytes
                      I/O size (minimum/optimal): 4096 bytes / 4096 bytes
                      Disk identifier: 0x016c8108

                      Device Boot Start End Blocks Id System
                      /dev/sda1 * 63 39054014 19526976 7 HPFS/NTFS/exFAT



                    2. Now run these commands to install syslinux, which is a suite of lightweight IBM PC MBR bootloaders for starting up computers with the Linux kernel.



                      sudo apt update
                      sudo apt install syslinux



                    3. Once installed, you can fix your Windows bootloader by running the below command in the terminal:



                      sudo dd if=/usr/lib/syslinux/mbr/mbr.bin of=/dev/sda



                    Rescatux



                    Rescatux is a free bootable live CD/USB that can repair GRUB and the Windows bootloader. Rescatux has a graphical interface with a menu of operating system rescue tasks. If your hard disk has the MBR partitioning format, you can select the Restore Windows MBR (BETA) option to repair the Windows bootloader. If your computer has UEFI firmware, you can select among the UEFI options Boot options.



                    Boot options:




                    • (>=0.41 beta 1) Update UEFI order

                    • (>=0.41 beta 1) Create a new UEFI Boot entry

                    • (>=0.41 beta 1) UEFI Partition Status

                    • (>=0.41 beta 1) Fake Microsoft Windows UEFI

                    • (>=0.41 beta 1) Hide Microsoft Windows UEFI

                    • (>=0.41 beta 1) Reinstall Microsoft Windows EFI

                    • (>=0.41 beta 1) Check UEFI Boot


                    GRUB options:




                    • (>=0.40 beta 11) Easy GNU/Linux Boot Fix

                    • Restore GRUB and GRUB2

                    • (>=0.31 beta 4) Update any GRUB2 menu

                    • Update Debian/Ubuntu GRUB menus


                    Windows options:




                    • Restore Windows MBR (BETA)

                    • Clear Windows passwords

                    • (>=0.31 beta 4) Promote a Windows user to Administrator role

                    • (>=0.41 beta 1) Reinstall Microsoft Windows EFI

                    • (>=0.31 beta 4) Unlock Windows user


                    Password options:




                    • Change GNU/Linux Password

                    • Regenerate sudoers file

                    • Clear Windows passwords


                    enter image description here
                    Rescapp is a nice wizard that will guide you through your rescue tasks.





                    How to make a Rescatux live USB from Ubuntu




                    1. Insert a USB flash drive and check if the boot flag has been enabled on the flash drive using the GParted application. Unmount the USB flash drive. Open GParted and select the USB flash drive from the menu list of drives. From the GParted menu select: Partition -> Manage Flags -> check boot.


                    2. It is very important to verify that the device that you are installing the Rescatux live USB to is indeed your flash drive, so that you don't overwrite any of your system or personal files which may make your operating system unbootable. In Ubuntu you can find the device name of the flash drive using the Disks application.



                    3. Unmount the USB partition device. Let's say the USB partition device is /dev/sdc1



                      sudo umount /dev/sdc1 # replace sdc1 with the partition name of your USB drive


                    4. Change directories using cd to the path of the directory where the Rescatux iso file that you downloaded is located.



                    5. Write the Rescatux iso file to the USB flash drive. In the following command replace rescatux_0.xxxx.iso with the name of the Rescatux iso file you downloaded.



                      sudo dd if=rescatux_0.xxxx.iso of=/dev/sdc   
                      sudo sync



                    I have also been able to make a Rescatux live USB using the built-in Startup Disk Creator app.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Dec 7 at 15:02

























                    answered Oct 1 '16 at 11:06









                    karel

                    56k11124142




                    56k11124142






















                        up vote
                        1
                        down vote













                        You can use this utility to boot to your windows. SuperGrub2 lets you boot to any present OS regardless of MBR or Boot menu.



                        You can also use Rescatux from the same people to reinstall your windows boot loader.






                        share|improve this answer

























                          up vote
                          1
                          down vote













                          You can use this utility to boot to your windows. SuperGrub2 lets you boot to any present OS regardless of MBR or Boot menu.



                          You can also use Rescatux from the same people to reinstall your windows boot loader.






                          share|improve this answer























                            up vote
                            1
                            down vote










                            up vote
                            1
                            down vote









                            You can use this utility to boot to your windows. SuperGrub2 lets you boot to any present OS regardless of MBR or Boot menu.



                            You can also use Rescatux from the same people to reinstall your windows boot loader.






                            share|improve this answer












                            You can use this utility to boot to your windows. SuperGrub2 lets you boot to any present OS regardless of MBR or Boot menu.



                            You can also use Rescatux from the same people to reinstall your windows boot loader.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Sep 8 '16 at 21:19









                            thesoundman20

                            1534




                            1534






























                                draft saved

                                draft discarded




















































                                Thanks for contributing an answer to Ask Ubuntu!


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

                                But avoid



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

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


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





                                Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                                Please pay close attention to the following guidance:


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

                                But avoid



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

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


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




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f822708%2frestore-windows-bootloader%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 did Captain America manage to do this?

                                迪纳利

                                南乌拉尔铁路局