'Upgraded' to Windows 10 on dual boot, and can't boot to Ubuntu partition












1















I recently updated my windows 7 to 10, and destroyed grub in the process. I ran Boot-Repair on a live CD and managed to get the Windows Partition back. However grub still doesn't come up for me.



The boot-repair url I received was http://paste.ubuntu.com/12189762/.



Edit:



Oldfred helped me figure out the problem. I didn't really understand how the partition worked. The extended partition wraps around both the linux and swap partition, but for some reason the linux partition was not showing up. I booted to a live disk and ran parted rescue:



sudo parted /dev/sda unit s print //this printed the current partition table

sudo parted
unit s
rescue
Start? //Here I entered in 1 sector after the extended partition
End? //Here I entered in 1 sector before the swap parition


After that I ran boot-repair again and was able to restore grub back in place! Everything is working great now. Hopefully this post can help someone else!










share|improve this question





























    1















    I recently updated my windows 7 to 10, and destroyed grub in the process. I ran Boot-Repair on a live CD and managed to get the Windows Partition back. However grub still doesn't come up for me.



    The boot-repair url I received was http://paste.ubuntu.com/12189762/.



    Edit:



    Oldfred helped me figure out the problem. I didn't really understand how the partition worked. The extended partition wraps around both the linux and swap partition, but for some reason the linux partition was not showing up. I booted to a live disk and ran parted rescue:



    sudo parted /dev/sda unit s print //this printed the current partition table

    sudo parted
    unit s
    rescue
    Start? //Here I entered in 1 sector after the extended partition
    End? //Here I entered in 1 sector before the swap parition


    After that I ran boot-repair again and was able to restore grub back in place! Everything is working great now. Hopefully this post can help someone else!










    share|improve this question



























      1












      1








      1


      1






      I recently updated my windows 7 to 10, and destroyed grub in the process. I ran Boot-Repair on a live CD and managed to get the Windows Partition back. However grub still doesn't come up for me.



      The boot-repair url I received was http://paste.ubuntu.com/12189762/.



      Edit:



      Oldfred helped me figure out the problem. I didn't really understand how the partition worked. The extended partition wraps around both the linux and swap partition, but for some reason the linux partition was not showing up. I booted to a live disk and ran parted rescue:



      sudo parted /dev/sda unit s print //this printed the current partition table

      sudo parted
      unit s
      rescue
      Start? //Here I entered in 1 sector after the extended partition
      End? //Here I entered in 1 sector before the swap parition


      After that I ran boot-repair again and was able to restore grub back in place! Everything is working great now. Hopefully this post can help someone else!










      share|improve this question
















      I recently updated my windows 7 to 10, and destroyed grub in the process. I ran Boot-Repair on a live CD and managed to get the Windows Partition back. However grub still doesn't come up for me.



      The boot-repair url I received was http://paste.ubuntu.com/12189762/.



      Edit:



      Oldfred helped me figure out the problem. I didn't really understand how the partition worked. The extended partition wraps around both the linux and swap partition, but for some reason the linux partition was not showing up. I booted to a live disk and ran parted rescue:



      sudo parted /dev/sda unit s print //this printed the current partition table

      sudo parted
      unit s
      rescue
      Start? //Here I entered in 1 sector after the extended partition
      End? //Here I entered in 1 sector before the swap parition


      After that I ran boot-repair again and was able to restore grub back in place! Everything is working great now. Hopefully this post can help someone else!







      boot dual-boot grub2 partitioning






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 27 '15 at 20:55









      oldfred

      7,83421421




      7,83421421










      asked Aug 25 '15 at 2:22









      kvangentkvangent

      815




      815






















          1 Answer
          1






          active

          oldest

          votes


















          2














          It is not grub that is missing, but your Linux partition.



           /dev/sda2             208,894   416,761,855   416,552,962   5 Extended
          /dev/sda5 400,158,720 416,761,855 16,603,136 82 Linux
          swap / Solaris


          You have a missing partition one or two sectors after the start of the extended and a few sectors before the start of sda5 swap. It probalby was sda5, and swap was sda6 but since using UUID to boot does not matter. Many use testdisk or parted rescue and reinstall grub to MBR and system works.



          Backup partition table before any changes, so you can get back to current if changes not correct



          sudo sfdisk -d /dev/sda > PT_sda.txt


          More details:



          Windows 10 upgrade led to grub rescue



          Use parted rescue to restore missing partition details in post #22



          http://ubuntuforums.org/showthread.php?t=1775331



          http://www.gnu.org/software/parted/manual/html_node/rescue.html






          share|improve this answer


























          • Can you give me any more information on how to recover this partition? I have downloaded and run TestDisk, but it is over my head. I'm afraid to make and changes and ruin something. Is parted rescue easier to use? What range would I put into it then? I am running TestDisk again right now and taking screen shots. I found nothing on the QuickSearch but I'm doing the deeper search just in case. I'll upload the screens in the morning if that will help?

            – kvangent
            Aug 26 '15 at 3:01













          • I have not done the recovery, so do not know details more than what others have posted. Both have worked. But make the partition table backup as a few recover incorrect partitions and create more issues. You want all your existing partitions and one more logical L which includes the space in the extended partition. With parted rescue you may just be able to input sector after start of extended and sector before swap?

            – oldfred
            Aug 26 '15 at 3:43













          • As I said, I'm a complete novice when it comes to how partitioning works. I downloaded and ran TestDisk from my window side and have uploaded the results here: imgur.com/a/pYzct. I'm on the last frame but I'm not sure what I should do. I think when I hit enter it will change my partition table but I'm not sure?

            – kvangent
            Aug 26 '15 at 18:12











          • Did you back up partition table with sfdisk? If not do that first. Your quick search shows your existing partitions. And extended starts at 13,0,50, So I think the Linux partition that is deleted starting at 13,0,52 is the one you want to change from D to L. Only question is if you undelete that is that the only partition it writes or does it add it? IF you have the backup and it does not work you can easily restore to where you are now, and do it over.

            – oldfred
            Aug 26 '15 at 18:35











          • How can I back up the partition table with sfdisk? Will I have to switch back to the live disk?

            – kvangent
            Aug 26 '15 at 19:11











          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%2f665445%2fupgraded-to-windows-10-on-dual-boot-and-cant-boot-to-ubuntu-partition%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          It is not grub that is missing, but your Linux partition.



           /dev/sda2             208,894   416,761,855   416,552,962   5 Extended
          /dev/sda5 400,158,720 416,761,855 16,603,136 82 Linux
          swap / Solaris


          You have a missing partition one or two sectors after the start of the extended and a few sectors before the start of sda5 swap. It probalby was sda5, and swap was sda6 but since using UUID to boot does not matter. Many use testdisk or parted rescue and reinstall grub to MBR and system works.



          Backup partition table before any changes, so you can get back to current if changes not correct



          sudo sfdisk -d /dev/sda > PT_sda.txt


          More details:



          Windows 10 upgrade led to grub rescue



          Use parted rescue to restore missing partition details in post #22



          http://ubuntuforums.org/showthread.php?t=1775331



          http://www.gnu.org/software/parted/manual/html_node/rescue.html






          share|improve this answer


























          • Can you give me any more information on how to recover this partition? I have downloaded and run TestDisk, but it is over my head. I'm afraid to make and changes and ruin something. Is parted rescue easier to use? What range would I put into it then? I am running TestDisk again right now and taking screen shots. I found nothing on the QuickSearch but I'm doing the deeper search just in case. I'll upload the screens in the morning if that will help?

            – kvangent
            Aug 26 '15 at 3:01













          • I have not done the recovery, so do not know details more than what others have posted. Both have worked. But make the partition table backup as a few recover incorrect partitions and create more issues. You want all your existing partitions and one more logical L which includes the space in the extended partition. With parted rescue you may just be able to input sector after start of extended and sector before swap?

            – oldfred
            Aug 26 '15 at 3:43













          • As I said, I'm a complete novice when it comes to how partitioning works. I downloaded and ran TestDisk from my window side and have uploaded the results here: imgur.com/a/pYzct. I'm on the last frame but I'm not sure what I should do. I think when I hit enter it will change my partition table but I'm not sure?

            – kvangent
            Aug 26 '15 at 18:12











          • Did you back up partition table with sfdisk? If not do that first. Your quick search shows your existing partitions. And extended starts at 13,0,50, So I think the Linux partition that is deleted starting at 13,0,52 is the one you want to change from D to L. Only question is if you undelete that is that the only partition it writes or does it add it? IF you have the backup and it does not work you can easily restore to where you are now, and do it over.

            – oldfred
            Aug 26 '15 at 18:35











          • How can I back up the partition table with sfdisk? Will I have to switch back to the live disk?

            – kvangent
            Aug 26 '15 at 19:11
















          2














          It is not grub that is missing, but your Linux partition.



           /dev/sda2             208,894   416,761,855   416,552,962   5 Extended
          /dev/sda5 400,158,720 416,761,855 16,603,136 82 Linux
          swap / Solaris


          You have a missing partition one or two sectors after the start of the extended and a few sectors before the start of sda5 swap. It probalby was sda5, and swap was sda6 but since using UUID to boot does not matter. Many use testdisk or parted rescue and reinstall grub to MBR and system works.



          Backup partition table before any changes, so you can get back to current if changes not correct



          sudo sfdisk -d /dev/sda > PT_sda.txt


          More details:



          Windows 10 upgrade led to grub rescue



          Use parted rescue to restore missing partition details in post #22



          http://ubuntuforums.org/showthread.php?t=1775331



          http://www.gnu.org/software/parted/manual/html_node/rescue.html






          share|improve this answer


























          • Can you give me any more information on how to recover this partition? I have downloaded and run TestDisk, but it is over my head. I'm afraid to make and changes and ruin something. Is parted rescue easier to use? What range would I put into it then? I am running TestDisk again right now and taking screen shots. I found nothing on the QuickSearch but I'm doing the deeper search just in case. I'll upload the screens in the morning if that will help?

            – kvangent
            Aug 26 '15 at 3:01













          • I have not done the recovery, so do not know details more than what others have posted. Both have worked. But make the partition table backup as a few recover incorrect partitions and create more issues. You want all your existing partitions and one more logical L which includes the space in the extended partition. With parted rescue you may just be able to input sector after start of extended and sector before swap?

            – oldfred
            Aug 26 '15 at 3:43













          • As I said, I'm a complete novice when it comes to how partitioning works. I downloaded and ran TestDisk from my window side and have uploaded the results here: imgur.com/a/pYzct. I'm on the last frame but I'm not sure what I should do. I think when I hit enter it will change my partition table but I'm not sure?

            – kvangent
            Aug 26 '15 at 18:12











          • Did you back up partition table with sfdisk? If not do that first. Your quick search shows your existing partitions. And extended starts at 13,0,50, So I think the Linux partition that is deleted starting at 13,0,52 is the one you want to change from D to L. Only question is if you undelete that is that the only partition it writes or does it add it? IF you have the backup and it does not work you can easily restore to where you are now, and do it over.

            – oldfred
            Aug 26 '15 at 18:35











          • How can I back up the partition table with sfdisk? Will I have to switch back to the live disk?

            – kvangent
            Aug 26 '15 at 19:11














          2












          2








          2







          It is not grub that is missing, but your Linux partition.



           /dev/sda2             208,894   416,761,855   416,552,962   5 Extended
          /dev/sda5 400,158,720 416,761,855 16,603,136 82 Linux
          swap / Solaris


          You have a missing partition one or two sectors after the start of the extended and a few sectors before the start of sda5 swap. It probalby was sda5, and swap was sda6 but since using UUID to boot does not matter. Many use testdisk or parted rescue and reinstall grub to MBR and system works.



          Backup partition table before any changes, so you can get back to current if changes not correct



          sudo sfdisk -d /dev/sda > PT_sda.txt


          More details:



          Windows 10 upgrade led to grub rescue



          Use parted rescue to restore missing partition details in post #22



          http://ubuntuforums.org/showthread.php?t=1775331



          http://www.gnu.org/software/parted/manual/html_node/rescue.html






          share|improve this answer















          It is not grub that is missing, but your Linux partition.



           /dev/sda2             208,894   416,761,855   416,552,962   5 Extended
          /dev/sda5 400,158,720 416,761,855 16,603,136 82 Linux
          swap / Solaris


          You have a missing partition one or two sectors after the start of the extended and a few sectors before the start of sda5 swap. It probalby was sda5, and swap was sda6 but since using UUID to boot does not matter. Many use testdisk or parted rescue and reinstall grub to MBR and system works.



          Backup partition table before any changes, so you can get back to current if changes not correct



          sudo sfdisk -d /dev/sda > PT_sda.txt


          More details:



          Windows 10 upgrade led to grub rescue



          Use parted rescue to restore missing partition details in post #22



          http://ubuntuforums.org/showthread.php?t=1775331



          http://www.gnu.org/software/parted/manual/html_node/rescue.html







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Feb 25 at 14:43

























          answered Aug 25 '15 at 3:54









          oldfredoldfred

          7,83421421




          7,83421421













          • Can you give me any more information on how to recover this partition? I have downloaded and run TestDisk, but it is over my head. I'm afraid to make and changes and ruin something. Is parted rescue easier to use? What range would I put into it then? I am running TestDisk again right now and taking screen shots. I found nothing on the QuickSearch but I'm doing the deeper search just in case. I'll upload the screens in the morning if that will help?

            – kvangent
            Aug 26 '15 at 3:01













          • I have not done the recovery, so do not know details more than what others have posted. Both have worked. But make the partition table backup as a few recover incorrect partitions and create more issues. You want all your existing partitions and one more logical L which includes the space in the extended partition. With parted rescue you may just be able to input sector after start of extended and sector before swap?

            – oldfred
            Aug 26 '15 at 3:43













          • As I said, I'm a complete novice when it comes to how partitioning works. I downloaded and ran TestDisk from my window side and have uploaded the results here: imgur.com/a/pYzct. I'm on the last frame but I'm not sure what I should do. I think when I hit enter it will change my partition table but I'm not sure?

            – kvangent
            Aug 26 '15 at 18:12











          • Did you back up partition table with sfdisk? If not do that first. Your quick search shows your existing partitions. And extended starts at 13,0,50, So I think the Linux partition that is deleted starting at 13,0,52 is the one you want to change from D to L. Only question is if you undelete that is that the only partition it writes or does it add it? IF you have the backup and it does not work you can easily restore to where you are now, and do it over.

            – oldfred
            Aug 26 '15 at 18:35











          • How can I back up the partition table with sfdisk? Will I have to switch back to the live disk?

            – kvangent
            Aug 26 '15 at 19:11



















          • Can you give me any more information on how to recover this partition? I have downloaded and run TestDisk, but it is over my head. I'm afraid to make and changes and ruin something. Is parted rescue easier to use? What range would I put into it then? I am running TestDisk again right now and taking screen shots. I found nothing on the QuickSearch but I'm doing the deeper search just in case. I'll upload the screens in the morning if that will help?

            – kvangent
            Aug 26 '15 at 3:01













          • I have not done the recovery, so do not know details more than what others have posted. Both have worked. But make the partition table backup as a few recover incorrect partitions and create more issues. You want all your existing partitions and one more logical L which includes the space in the extended partition. With parted rescue you may just be able to input sector after start of extended and sector before swap?

            – oldfred
            Aug 26 '15 at 3:43













          • As I said, I'm a complete novice when it comes to how partitioning works. I downloaded and ran TestDisk from my window side and have uploaded the results here: imgur.com/a/pYzct. I'm on the last frame but I'm not sure what I should do. I think when I hit enter it will change my partition table but I'm not sure?

            – kvangent
            Aug 26 '15 at 18:12











          • Did you back up partition table with sfdisk? If not do that first. Your quick search shows your existing partitions. And extended starts at 13,0,50, So I think the Linux partition that is deleted starting at 13,0,52 is the one you want to change from D to L. Only question is if you undelete that is that the only partition it writes or does it add it? IF you have the backup and it does not work you can easily restore to where you are now, and do it over.

            – oldfred
            Aug 26 '15 at 18:35











          • How can I back up the partition table with sfdisk? Will I have to switch back to the live disk?

            – kvangent
            Aug 26 '15 at 19:11

















          Can you give me any more information on how to recover this partition? I have downloaded and run TestDisk, but it is over my head. I'm afraid to make and changes and ruin something. Is parted rescue easier to use? What range would I put into it then? I am running TestDisk again right now and taking screen shots. I found nothing on the QuickSearch but I'm doing the deeper search just in case. I'll upload the screens in the morning if that will help?

          – kvangent
          Aug 26 '15 at 3:01







          Can you give me any more information on how to recover this partition? I have downloaded and run TestDisk, but it is over my head. I'm afraid to make and changes and ruin something. Is parted rescue easier to use? What range would I put into it then? I am running TestDisk again right now and taking screen shots. I found nothing on the QuickSearch but I'm doing the deeper search just in case. I'll upload the screens in the morning if that will help?

          – kvangent
          Aug 26 '15 at 3:01















          I have not done the recovery, so do not know details more than what others have posted. Both have worked. But make the partition table backup as a few recover incorrect partitions and create more issues. You want all your existing partitions and one more logical L which includes the space in the extended partition. With parted rescue you may just be able to input sector after start of extended and sector before swap?

          – oldfred
          Aug 26 '15 at 3:43







          I have not done the recovery, so do not know details more than what others have posted. Both have worked. But make the partition table backup as a few recover incorrect partitions and create more issues. You want all your existing partitions and one more logical L which includes the space in the extended partition. With parted rescue you may just be able to input sector after start of extended and sector before swap?

          – oldfred
          Aug 26 '15 at 3:43















          As I said, I'm a complete novice when it comes to how partitioning works. I downloaded and ran TestDisk from my window side and have uploaded the results here: imgur.com/a/pYzct. I'm on the last frame but I'm not sure what I should do. I think when I hit enter it will change my partition table but I'm not sure?

          – kvangent
          Aug 26 '15 at 18:12





          As I said, I'm a complete novice when it comes to how partitioning works. I downloaded and ran TestDisk from my window side and have uploaded the results here: imgur.com/a/pYzct. I'm on the last frame but I'm not sure what I should do. I think when I hit enter it will change my partition table but I'm not sure?

          – kvangent
          Aug 26 '15 at 18:12













          Did you back up partition table with sfdisk? If not do that first. Your quick search shows your existing partitions. And extended starts at 13,0,50, So I think the Linux partition that is deleted starting at 13,0,52 is the one you want to change from D to L. Only question is if you undelete that is that the only partition it writes or does it add it? IF you have the backup and it does not work you can easily restore to where you are now, and do it over.

          – oldfred
          Aug 26 '15 at 18:35





          Did you back up partition table with sfdisk? If not do that first. Your quick search shows your existing partitions. And extended starts at 13,0,50, So I think the Linux partition that is deleted starting at 13,0,52 is the one you want to change from D to L. Only question is if you undelete that is that the only partition it writes or does it add it? IF you have the backup and it does not work you can easily restore to where you are now, and do it over.

          – oldfred
          Aug 26 '15 at 18:35













          How can I back up the partition table with sfdisk? Will I have to switch back to the live disk?

          – kvangent
          Aug 26 '15 at 19:11





          How can I back up the partition table with sfdisk? Will I have to switch back to the live disk?

          – kvangent
          Aug 26 '15 at 19:11


















          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%2f665445%2fupgraded-to-windows-10-on-dual-boot-and-cant-boot-to-ubuntu-partition%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

          flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

          Mangá

          Eduardo VII do Reino Unido