How to handle a dual-boot system after recompiling a kernel?

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





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I have a dual-boot system, on /dev/sdb4 I have Gentoo, and on /dev/sdb5 I installed Ubuntu 18.04 afterwards. My boot partition is /dev/sdb2, and I let Ubuntu handle the whole bootloader stuff. And that worked well, Ubuntu found my Gentoo installation, added it to Grub, and I was able to boot into both operating systems.



Now I updated the Kernel within Gentoo, recompiled it and emerge --depcleaned, so the old Kernel is gone now. Didn't think much about it.



But now I can't boot into Gentoo anymore. There's still a Grub entry for it, but it doesn't work, so Grub boots into Ubuntu nonetheless. I've tried sudo grub-install /dev/sdb again, and also update-grub from within Ubuntu. It still says that it finds the Gentoo installation, and there is still a Grub entry for it, but it is not bootable.



I have mounted both Gentoo's and Ubuntu's /boot directory to /dev/sdb2, but let Ubuntu clean it in its own installation, so I fear that Gentoo's /boot directory points to the partition that Ubuntu has erased and created anew.



I'm still on a BIOS-system, by the way. No UEFI yet.



How can I repair this mess without having to go through reinstalling kind of everything?










share|improve this question
























  • For start show us the content of grub.cfg. fstab can be helpful too. gentoo doesn't delete old kernel with emerge --depcleaan, just removes its sources. If you compiled new kernel then most probably all all you need to do is copy new image to /boot/ and update grub config. You can do all these stuff from within ubuntu.

    – jimmij
    Mar 9 at 9:26











  • @jimmij: Thank you very much. Indeed I just had to do make install on the gentoo kernel to get it to the /boot partition and then grub-mkconfig in Ubuntu. However, I had to delete the grub.cfg file before as grub-mkconfig doesn't seem to overwrite it, if present. Now I have a functional dual-boot system again. Thank you. :)

    – Sonderoffizier Guck
    Mar 10 at 8:42

















0















I have a dual-boot system, on /dev/sdb4 I have Gentoo, and on /dev/sdb5 I installed Ubuntu 18.04 afterwards. My boot partition is /dev/sdb2, and I let Ubuntu handle the whole bootloader stuff. And that worked well, Ubuntu found my Gentoo installation, added it to Grub, and I was able to boot into both operating systems.



Now I updated the Kernel within Gentoo, recompiled it and emerge --depcleaned, so the old Kernel is gone now. Didn't think much about it.



But now I can't boot into Gentoo anymore. There's still a Grub entry for it, but it doesn't work, so Grub boots into Ubuntu nonetheless. I've tried sudo grub-install /dev/sdb again, and also update-grub from within Ubuntu. It still says that it finds the Gentoo installation, and there is still a Grub entry for it, but it is not bootable.



I have mounted both Gentoo's and Ubuntu's /boot directory to /dev/sdb2, but let Ubuntu clean it in its own installation, so I fear that Gentoo's /boot directory points to the partition that Ubuntu has erased and created anew.



I'm still on a BIOS-system, by the way. No UEFI yet.



How can I repair this mess without having to go through reinstalling kind of everything?










share|improve this question
























  • For start show us the content of grub.cfg. fstab can be helpful too. gentoo doesn't delete old kernel with emerge --depcleaan, just removes its sources. If you compiled new kernel then most probably all all you need to do is copy new image to /boot/ and update grub config. You can do all these stuff from within ubuntu.

    – jimmij
    Mar 9 at 9:26











  • @jimmij: Thank you very much. Indeed I just had to do make install on the gentoo kernel to get it to the /boot partition and then grub-mkconfig in Ubuntu. However, I had to delete the grub.cfg file before as grub-mkconfig doesn't seem to overwrite it, if present. Now I have a functional dual-boot system again. Thank you. :)

    – Sonderoffizier Guck
    Mar 10 at 8:42













0












0








0








I have a dual-boot system, on /dev/sdb4 I have Gentoo, and on /dev/sdb5 I installed Ubuntu 18.04 afterwards. My boot partition is /dev/sdb2, and I let Ubuntu handle the whole bootloader stuff. And that worked well, Ubuntu found my Gentoo installation, added it to Grub, and I was able to boot into both operating systems.



Now I updated the Kernel within Gentoo, recompiled it and emerge --depcleaned, so the old Kernel is gone now. Didn't think much about it.



But now I can't boot into Gentoo anymore. There's still a Grub entry for it, but it doesn't work, so Grub boots into Ubuntu nonetheless. I've tried sudo grub-install /dev/sdb again, and also update-grub from within Ubuntu. It still says that it finds the Gentoo installation, and there is still a Grub entry for it, but it is not bootable.



I have mounted both Gentoo's and Ubuntu's /boot directory to /dev/sdb2, but let Ubuntu clean it in its own installation, so I fear that Gentoo's /boot directory points to the partition that Ubuntu has erased and created anew.



I'm still on a BIOS-system, by the way. No UEFI yet.



How can I repair this mess without having to go through reinstalling kind of everything?










share|improve this question
















I have a dual-boot system, on /dev/sdb4 I have Gentoo, and on /dev/sdb5 I installed Ubuntu 18.04 afterwards. My boot partition is /dev/sdb2, and I let Ubuntu handle the whole bootloader stuff. And that worked well, Ubuntu found my Gentoo installation, added it to Grub, and I was able to boot into both operating systems.



Now I updated the Kernel within Gentoo, recompiled it and emerge --depcleaned, so the old Kernel is gone now. Didn't think much about it.



But now I can't boot into Gentoo anymore. There's still a Grub entry for it, but it doesn't work, so Grub boots into Ubuntu nonetheless. I've tried sudo grub-install /dev/sdb again, and also update-grub from within Ubuntu. It still says that it finds the Gentoo installation, and there is still a Grub entry for it, but it is not bootable.



I have mounted both Gentoo's and Ubuntu's /boot directory to /dev/sdb2, but let Ubuntu clean it in its own installation, so I fear that Gentoo's /boot directory points to the partition that Ubuntu has erased and created anew.



I'm still on a BIOS-system, by the way. No UEFI yet.



How can I repair this mess without having to go through reinstalling kind of everything?







ubuntu boot grub gentoo






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 9 at 9:26









Rui F Ribeiro

41.9k1483142




41.9k1483142










asked Mar 9 at 8:51









Sonderoffizier GuckSonderoffizier Guck

1




1












  • For start show us the content of grub.cfg. fstab can be helpful too. gentoo doesn't delete old kernel with emerge --depcleaan, just removes its sources. If you compiled new kernel then most probably all all you need to do is copy new image to /boot/ and update grub config. You can do all these stuff from within ubuntu.

    – jimmij
    Mar 9 at 9:26











  • @jimmij: Thank you very much. Indeed I just had to do make install on the gentoo kernel to get it to the /boot partition and then grub-mkconfig in Ubuntu. However, I had to delete the grub.cfg file before as grub-mkconfig doesn't seem to overwrite it, if present. Now I have a functional dual-boot system again. Thank you. :)

    – Sonderoffizier Guck
    Mar 10 at 8:42

















  • For start show us the content of grub.cfg. fstab can be helpful too. gentoo doesn't delete old kernel with emerge --depcleaan, just removes its sources. If you compiled new kernel then most probably all all you need to do is copy new image to /boot/ and update grub config. You can do all these stuff from within ubuntu.

    – jimmij
    Mar 9 at 9:26











  • @jimmij: Thank you very much. Indeed I just had to do make install on the gentoo kernel to get it to the /boot partition and then grub-mkconfig in Ubuntu. However, I had to delete the grub.cfg file before as grub-mkconfig doesn't seem to overwrite it, if present. Now I have a functional dual-boot system again. Thank you. :)

    – Sonderoffizier Guck
    Mar 10 at 8:42
















For start show us the content of grub.cfg. fstab can be helpful too. gentoo doesn't delete old kernel with emerge --depcleaan, just removes its sources. If you compiled new kernel then most probably all all you need to do is copy new image to /boot/ and update grub config. You can do all these stuff from within ubuntu.

– jimmij
Mar 9 at 9:26





For start show us the content of grub.cfg. fstab can be helpful too. gentoo doesn't delete old kernel with emerge --depcleaan, just removes its sources. If you compiled new kernel then most probably all all you need to do is copy new image to /boot/ and update grub config. You can do all these stuff from within ubuntu.

– jimmij
Mar 9 at 9:26













@jimmij: Thank you very much. Indeed I just had to do make install on the gentoo kernel to get it to the /boot partition and then grub-mkconfig in Ubuntu. However, I had to delete the grub.cfg file before as grub-mkconfig doesn't seem to overwrite it, if present. Now I have a functional dual-boot system again. Thank you. :)

– Sonderoffizier Guck
Mar 10 at 8:42





@jimmij: Thank you very much. Indeed I just had to do make install on the gentoo kernel to get it to the /boot partition and then grub-mkconfig in Ubuntu. However, I had to delete the grub.cfg file before as grub-mkconfig doesn't seem to overwrite it, if present. Now I have a functional dual-boot system again. Thank you. :)

– Sonderoffizier Guck
Mar 10 at 8:42










0






active

oldest

votes












Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f505288%2fhow-to-handle-a-dual-boot-system-after-recompiling-a-kernel%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • 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%2funix.stackexchange.com%2fquestions%2f505288%2fhow-to-handle-a-dual-boot-system-after-recompiling-a-kernel%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

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)