Execute Windows MBR repair on Ubuntu disk by mistake

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








up vote
0
down vote

favorite
1












I got notebook with broken Windows booting and I have found some tricks how to repair it. I copied CMD from web and paste it to terminal. Imediately after pasting the CMD it executes with wrong disk. Then I tried to restart my computer and it says:



No boot signature in partition.


The CMD was:



sudo lilo -M /dev/sda mbr


Does anyone know how to repair it?










share|improve this question























  • I would imagine you have an EFI disk and lilo acts like it's processing an MBR disk. But I only use grub so it's just a guess. As the answer below suggests you should run testdisk if lilo documentation makes no mention of backing up the MBR (Master Boot Record) before it runs. Note both MRB disks and EFI disks utilize a Master Boot Record. (Confusing I know).
    – WinEunuuchs2Unix
    Apr 1 at 22:48














up vote
0
down vote

favorite
1












I got notebook with broken Windows booting and I have found some tricks how to repair it. I copied CMD from web and paste it to terminal. Imediately after pasting the CMD it executes with wrong disk. Then I tried to restart my computer and it says:



No boot signature in partition.


The CMD was:



sudo lilo -M /dev/sda mbr


Does anyone know how to repair it?










share|improve this question























  • I would imagine you have an EFI disk and lilo acts like it's processing an MBR disk. But I only use grub so it's just a guess. As the answer below suggests you should run testdisk if lilo documentation makes no mention of backing up the MBR (Master Boot Record) before it runs. Note both MRB disks and EFI disks utilize a Master Boot Record. (Confusing I know).
    – WinEunuuchs2Unix
    Apr 1 at 22:48












up vote
0
down vote

favorite
1









up vote
0
down vote

favorite
1






1





I got notebook with broken Windows booting and I have found some tricks how to repair it. I copied CMD from web and paste it to terminal. Imediately after pasting the CMD it executes with wrong disk. Then I tried to restart my computer and it says:



No boot signature in partition.


The CMD was:



sudo lilo -M /dev/sda mbr


Does anyone know how to repair it?










share|improve this question















I got notebook with broken Windows booting and I have found some tricks how to repair it. I copied CMD from web and paste it to terminal. Imediately after pasting the CMD it executes with wrong disk. Then I tried to restart my computer and it says:



No boot signature in partition.


The CMD was:



sudo lilo -M /dev/sda mbr


Does anyone know how to repair it?







boot windows boot-repair mbr






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 1 at 22:55









NerdOfLinux

1,499830




1,499830










asked Apr 1 at 22:30









user3414654

1




1











  • I would imagine you have an EFI disk and lilo acts like it's processing an MBR disk. But I only use grub so it's just a guess. As the answer below suggests you should run testdisk if lilo documentation makes no mention of backing up the MBR (Master Boot Record) before it runs. Note both MRB disks and EFI disks utilize a Master Boot Record. (Confusing I know).
    – WinEunuuchs2Unix
    Apr 1 at 22:48
















  • I would imagine you have an EFI disk and lilo acts like it's processing an MBR disk. But I only use grub so it's just a guess. As the answer below suggests you should run testdisk if lilo documentation makes no mention of backing up the MBR (Master Boot Record) before it runs. Note both MRB disks and EFI disks utilize a Master Boot Record. (Confusing I know).
    – WinEunuuchs2Unix
    Apr 1 at 22:48















I would imagine you have an EFI disk and lilo acts like it's processing an MBR disk. But I only use grub so it's just a guess. As the answer below suggests you should run testdisk if lilo documentation makes no mention of backing up the MBR (Master Boot Record) before it runs. Note both MRB disks and EFI disks utilize a Master Boot Record. (Confusing I know).
– WinEunuuchs2Unix
Apr 1 at 22:48




I would imagine you have an EFI disk and lilo acts like it's processing an MBR disk. But I only use grub so it's just a guess. As the answer below suggests you should run testdisk if lilo documentation makes no mention of backing up the MBR (Master Boot Record) before it runs. Note both MRB disks and EFI disks utilize a Master Boot Record. (Confusing I know).
– WinEunuuchs2Unix
Apr 1 at 22:48










2 Answers
2






active

oldest

votes

















up vote
0
down vote













I don't know much about boot stuff, but it sounds as if something has been overwritten. Try using testdisk. To do so, get a live CD or USB, boot into it, and in a terminal type:



sudo apt update
sudo apt install testdisk


and then run



sudo testdisk


and try this guide.






share|improve this answer



























    up vote
    0
    down vote













    Ok, I had to create bootable USB stick with same OS Ubuntu 16.04 and follow this: http://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd



    It restore grub...






    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: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













       

      draft saved


      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1021168%2fexecute-windows-mbr-repair-on-ubuntu-disk-by-mistake%23new-answer', 'question_page');

      );

      Post as a guest






























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      0
      down vote













      I don't know much about boot stuff, but it sounds as if something has been overwritten. Try using testdisk. To do so, get a live CD or USB, boot into it, and in a terminal type:



      sudo apt update
      sudo apt install testdisk


      and then run



      sudo testdisk


      and try this guide.






      share|improve this answer
























        up vote
        0
        down vote













        I don't know much about boot stuff, but it sounds as if something has been overwritten. Try using testdisk. To do so, get a live CD or USB, boot into it, and in a terminal type:



        sudo apt update
        sudo apt install testdisk


        and then run



        sudo testdisk


        and try this guide.






        share|improve this answer






















          up vote
          0
          down vote










          up vote
          0
          down vote









          I don't know much about boot stuff, but it sounds as if something has been overwritten. Try using testdisk. To do so, get a live CD or USB, boot into it, and in a terminal type:



          sudo apt update
          sudo apt install testdisk


          and then run



          sudo testdisk


          and try this guide.






          share|improve this answer












          I don't know much about boot stuff, but it sounds as if something has been overwritten. Try using testdisk. To do so, get a live CD or USB, boot into it, and in a terminal type:



          sudo apt update
          sudo apt install testdisk


          and then run



          sudo testdisk


          and try this guide.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 1 at 22:47









          NerdOfLinux

          1,499830




          1,499830






















              up vote
              0
              down vote













              Ok, I had to create bootable USB stick with same OS Ubuntu 16.04 and follow this: http://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd



              It restore grub...






              share|improve this answer
























                up vote
                0
                down vote













                Ok, I had to create bootable USB stick with same OS Ubuntu 16.04 and follow this: http://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd



                It restore grub...






                share|improve this answer






















                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  Ok, I had to create bootable USB stick with same OS Ubuntu 16.04 and follow this: http://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd



                  It restore grub...






                  share|improve this answer












                  Ok, I had to create bootable USB stick with same OS Ubuntu 16.04 and follow this: http://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd



                  It restore grub...







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 5 at 9:15









                  user3414654

                  1




                  1



























                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1021168%2fexecute-windows-mbr-repair-on-ubuntu-disk-by-mistake%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Popular posts from this blog

                      pylint3 and pip3 broken

                      Missing snmpget and snmpwalk

                      How to enroll fingerprints to Ubuntu 17.10 with VFS491