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

Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom: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?
ubuntu boot grub gentoo
add a comment |
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
For start show us the content ofgrub.cfg.fstabcan be helpful too. gentoo doesn't delete old kernel withemerge --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 domake installon the gentoo kernel to get it to the/bootpartition and thengrub-mkconfigin Ubuntu. However, I had to delete thegrub.cfgfile before asgrub-mkconfigdoesn'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
add a comment |
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
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
ubuntu boot grub gentoo
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 ofgrub.cfg.fstabcan be helpful too. gentoo doesn't delete old kernel withemerge --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 domake installon the gentoo kernel to get it to the/bootpartition and thengrub-mkconfigin Ubuntu. However, I had to delete thegrub.cfgfile before asgrub-mkconfigdoesn'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
add a comment |
For start show us the content ofgrub.cfg.fstabcan be helpful too. gentoo doesn't delete old kernel withemerge --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 domake installon the gentoo kernel to get it to the/bootpartition and thengrub-mkconfigin Ubuntu. However, I had to delete thegrub.cfgfile before asgrub-mkconfigdoesn'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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
For start show us the content of
grub.cfg.fstabcan be helpful too. gentoo doesn't delete old kernel withemerge --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 installon the gentoo kernel to get it to the/bootpartition and thengrub-mkconfigin Ubuntu. However, I had to delete thegrub.cfgfile before asgrub-mkconfigdoesn'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