How to include second partition in GRUB











up vote
0
down vote

favorite












I have a single hard drive with two partitions, which currently looks like this:



Hard drive partitions



To keep it short and (hopefully) clear, here's what happened:




  1. Way back I created two partitions as shown, and installed Ubuntu 13.04 onto sda1, leaving sda2 empty

  2. I later installed Ubuntu 18.04 onto sda2, partitioning it as shown, and moved to this as my primary OS instance

  3. Since I'm not using sda1 any more I decided to experiment with migrating back to sda1 so that I could expand to use the whole hard drive; so I backed up sda2 to a NAS using CloneZilla Live

  4. After the backup, I restored the backup on top of sda1


This last step seemed to redo my GRUB configuration automatically, and it only shows me the entries for sda1.



Since I'm not quite ready to start working in sda1 yet, how do I get GRUB to show me the entries for sda2?










share|improve this question






















  • First of all, run sudo update-grub, reboot and see what happens.
    – mook765
    Nov 26 at 18:48










  • @mook765 I had tried that, and it didn't change anything for me (same GRUB menu). As part of writing this question I experimented with adding the boot flag to sda6, and that seems to now boot automatically into sda6 without showing GRUB. I still need to understand how to convince GRUB to show the OS's from both partitions?
    – Geoff
    Nov 26 at 18:50










  • I would run boot-repair as it not only repairs broken boots but also sets up grub entries automatically: help.ubuntu.com/community/Boot-Repair.
    – WinEunuuchs2Unix
    Nov 27 at 2:14










  • @WinEunuuchs2Unix Thanks - will take a look.
    – Geoff
    Nov 27 at 13:28















up vote
0
down vote

favorite












I have a single hard drive with two partitions, which currently looks like this:



Hard drive partitions



To keep it short and (hopefully) clear, here's what happened:




  1. Way back I created two partitions as shown, and installed Ubuntu 13.04 onto sda1, leaving sda2 empty

  2. I later installed Ubuntu 18.04 onto sda2, partitioning it as shown, and moved to this as my primary OS instance

  3. Since I'm not using sda1 any more I decided to experiment with migrating back to sda1 so that I could expand to use the whole hard drive; so I backed up sda2 to a NAS using CloneZilla Live

  4. After the backup, I restored the backup on top of sda1


This last step seemed to redo my GRUB configuration automatically, and it only shows me the entries for sda1.



Since I'm not quite ready to start working in sda1 yet, how do I get GRUB to show me the entries for sda2?










share|improve this question






















  • First of all, run sudo update-grub, reboot and see what happens.
    – mook765
    Nov 26 at 18:48










  • @mook765 I had tried that, and it didn't change anything for me (same GRUB menu). As part of writing this question I experimented with adding the boot flag to sda6, and that seems to now boot automatically into sda6 without showing GRUB. I still need to understand how to convince GRUB to show the OS's from both partitions?
    – Geoff
    Nov 26 at 18:50










  • I would run boot-repair as it not only repairs broken boots but also sets up grub entries automatically: help.ubuntu.com/community/Boot-Repair.
    – WinEunuuchs2Unix
    Nov 27 at 2:14










  • @WinEunuuchs2Unix Thanks - will take a look.
    – Geoff
    Nov 27 at 13:28













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have a single hard drive with two partitions, which currently looks like this:



Hard drive partitions



To keep it short and (hopefully) clear, here's what happened:




  1. Way back I created two partitions as shown, and installed Ubuntu 13.04 onto sda1, leaving sda2 empty

  2. I later installed Ubuntu 18.04 onto sda2, partitioning it as shown, and moved to this as my primary OS instance

  3. Since I'm not using sda1 any more I decided to experiment with migrating back to sda1 so that I could expand to use the whole hard drive; so I backed up sda2 to a NAS using CloneZilla Live

  4. After the backup, I restored the backup on top of sda1


This last step seemed to redo my GRUB configuration automatically, and it only shows me the entries for sda1.



Since I'm not quite ready to start working in sda1 yet, how do I get GRUB to show me the entries for sda2?










share|improve this question













I have a single hard drive with two partitions, which currently looks like this:



Hard drive partitions



To keep it short and (hopefully) clear, here's what happened:




  1. Way back I created two partitions as shown, and installed Ubuntu 13.04 onto sda1, leaving sda2 empty

  2. I later installed Ubuntu 18.04 onto sda2, partitioning it as shown, and moved to this as my primary OS instance

  3. Since I'm not using sda1 any more I decided to experiment with migrating back to sda1 so that I could expand to use the whole hard drive; so I backed up sda2 to a NAS using CloneZilla Live

  4. After the backup, I restored the backup on top of sda1


This last step seemed to redo my GRUB configuration automatically, and it only shows me the entries for sda1.



Since I'm not quite ready to start working in sda1 yet, how do I get GRUB to show me the entries for sda2?







boot grub2 partitioning






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 26 at 18:12









Geoff

118115




118115












  • First of all, run sudo update-grub, reboot and see what happens.
    – mook765
    Nov 26 at 18:48










  • @mook765 I had tried that, and it didn't change anything for me (same GRUB menu). As part of writing this question I experimented with adding the boot flag to sda6, and that seems to now boot automatically into sda6 without showing GRUB. I still need to understand how to convince GRUB to show the OS's from both partitions?
    – Geoff
    Nov 26 at 18:50










  • I would run boot-repair as it not only repairs broken boots but also sets up grub entries automatically: help.ubuntu.com/community/Boot-Repair.
    – WinEunuuchs2Unix
    Nov 27 at 2:14










  • @WinEunuuchs2Unix Thanks - will take a look.
    – Geoff
    Nov 27 at 13:28


















  • First of all, run sudo update-grub, reboot and see what happens.
    – mook765
    Nov 26 at 18:48










  • @mook765 I had tried that, and it didn't change anything for me (same GRUB menu). As part of writing this question I experimented with adding the boot flag to sda6, and that seems to now boot automatically into sda6 without showing GRUB. I still need to understand how to convince GRUB to show the OS's from both partitions?
    – Geoff
    Nov 26 at 18:50










  • I would run boot-repair as it not only repairs broken boots but also sets up grub entries automatically: help.ubuntu.com/community/Boot-Repair.
    – WinEunuuchs2Unix
    Nov 27 at 2:14










  • @WinEunuuchs2Unix Thanks - will take a look.
    – Geoff
    Nov 27 at 13:28
















First of all, run sudo update-grub, reboot and see what happens.
– mook765
Nov 26 at 18:48




First of all, run sudo update-grub, reboot and see what happens.
– mook765
Nov 26 at 18:48












@mook765 I had tried that, and it didn't change anything for me (same GRUB menu). As part of writing this question I experimented with adding the boot flag to sda6, and that seems to now boot automatically into sda6 without showing GRUB. I still need to understand how to convince GRUB to show the OS's from both partitions?
– Geoff
Nov 26 at 18:50




@mook765 I had tried that, and it didn't change anything for me (same GRUB menu). As part of writing this question I experimented with adding the boot flag to sda6, and that seems to now boot automatically into sda6 without showing GRUB. I still need to understand how to convince GRUB to show the OS's from both partitions?
– Geoff
Nov 26 at 18:50












I would run boot-repair as it not only repairs broken boots but also sets up grub entries automatically: help.ubuntu.com/community/Boot-Repair.
– WinEunuuchs2Unix
Nov 27 at 2:14




I would run boot-repair as it not only repairs broken boots but also sets up grub entries automatically: help.ubuntu.com/community/Boot-Repair.
– WinEunuuchs2Unix
Nov 27 at 2:14












@WinEunuuchs2Unix Thanks - will take a look.
– Geoff
Nov 27 at 13:28




@WinEunuuchs2Unix Thanks - will take a look.
– Geoff
Nov 27 at 13:28















active

oldest

votes











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%2f1096254%2fhow-to-include-second-partition-in-grub%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















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%2f1096254%2fhow-to-include-second-partition-in-grub%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 change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents