Ubuntu 18.04 LTS Why are kernels installed on /boot and not /boot/efi?












0















This is more of a knowledge based question. I came upon it because for the longest time I have been getting an out of disk space error in the /boot partition when I try to update my computer. And after upgrading to 18.04 from 16, I had no choice but to find a way to increase my /boot partition.



This is sort of the partitions I had
enter image description here



Unfortunately (in my situation) my main partition had an lvm2 pv file system so shrinking it was very risky and complex. So then I noticed that only 2% of my /boot/efi was being used and using a live OS, I used GParted to shrink the /boot/efi from the right and then expanded /boot from the left.



It all worked well and good. But I started researching more about these two types of boot partitions and I read around that the /boot partition is not really needed anymore. If that is the case, why are all my ubuntu kernels installed in /boot? And is there a way for me to merge them, thereby giving me more space for future updates? Or have I made a huge mistake resizing in the way that I did?



Apologies if this is a basic question for some of you. I haven't delved into such details of Ubuntu before.










share|improve this question























  • LVs are useful to 1) Make several drives appear to you as one, or 2) To build system-wide encryption upon. If #1, starting a system from an LV is complex. If #2, Ubuntu cannot boot when it's own system files are encrypted jibberish. Resizing the LV is rarely necessary - normal maintenance should free up enough space in /boot - my /boot is nearly 40% smaller than yours, with no problems. DO NOT muck with EFI dir unless you want an unbootable system.

    – user535733
    Dec 30 '18 at 20:23













  • @user535733 I used tweak to remove old kernels along with purge and autoremove and all those various things. But it just didn't seem enough. I used to have 16.04 and then I upgraded to 18.04 and since then the maintenance didn't help. And the only mucking around I did with EFI was to reduce it's space because only 2% of it was being used.

    – nbz
    Jan 1 at 9:38











  • @user535733 I also noticed on further investigating my boot directory that there are fairly large initrd.img files of older kernels. They never seem to get removed in the old kernel clean up. Could this be because of upgrading from 16.04 to 18.04 with a swap partition and NOT a swapfile?

    – nbz
    Jan 2 at 16:14











  • No, initrd.img files are cleaned out routinely and automagically when older kernels are removed PROPERLY. If initrd.img files remain, then look at the the workflow of removal, and wonder why you have not noticed all the error messages.

    – user535733
    Jan 2 at 18:42
















0















This is more of a knowledge based question. I came upon it because for the longest time I have been getting an out of disk space error in the /boot partition when I try to update my computer. And after upgrading to 18.04 from 16, I had no choice but to find a way to increase my /boot partition.



This is sort of the partitions I had
enter image description here



Unfortunately (in my situation) my main partition had an lvm2 pv file system so shrinking it was very risky and complex. So then I noticed that only 2% of my /boot/efi was being used and using a live OS, I used GParted to shrink the /boot/efi from the right and then expanded /boot from the left.



It all worked well and good. But I started researching more about these two types of boot partitions and I read around that the /boot partition is not really needed anymore. If that is the case, why are all my ubuntu kernels installed in /boot? And is there a way for me to merge them, thereby giving me more space for future updates? Or have I made a huge mistake resizing in the way that I did?



Apologies if this is a basic question for some of you. I haven't delved into such details of Ubuntu before.










share|improve this question























  • LVs are useful to 1) Make several drives appear to you as one, or 2) To build system-wide encryption upon. If #1, starting a system from an LV is complex. If #2, Ubuntu cannot boot when it's own system files are encrypted jibberish. Resizing the LV is rarely necessary - normal maintenance should free up enough space in /boot - my /boot is nearly 40% smaller than yours, with no problems. DO NOT muck with EFI dir unless you want an unbootable system.

    – user535733
    Dec 30 '18 at 20:23













  • @user535733 I used tweak to remove old kernels along with purge and autoremove and all those various things. But it just didn't seem enough. I used to have 16.04 and then I upgraded to 18.04 and since then the maintenance didn't help. And the only mucking around I did with EFI was to reduce it's space because only 2% of it was being used.

    – nbz
    Jan 1 at 9:38











  • @user535733 I also noticed on further investigating my boot directory that there are fairly large initrd.img files of older kernels. They never seem to get removed in the old kernel clean up. Could this be because of upgrading from 16.04 to 18.04 with a swap partition and NOT a swapfile?

    – nbz
    Jan 2 at 16:14











  • No, initrd.img files are cleaned out routinely and automagically when older kernels are removed PROPERLY. If initrd.img files remain, then look at the the workflow of removal, and wonder why you have not noticed all the error messages.

    – user535733
    Jan 2 at 18:42














0












0








0








This is more of a knowledge based question. I came upon it because for the longest time I have been getting an out of disk space error in the /boot partition when I try to update my computer. And after upgrading to 18.04 from 16, I had no choice but to find a way to increase my /boot partition.



This is sort of the partitions I had
enter image description here



Unfortunately (in my situation) my main partition had an lvm2 pv file system so shrinking it was very risky and complex. So then I noticed that only 2% of my /boot/efi was being used and using a live OS, I used GParted to shrink the /boot/efi from the right and then expanded /boot from the left.



It all worked well and good. But I started researching more about these two types of boot partitions and I read around that the /boot partition is not really needed anymore. If that is the case, why are all my ubuntu kernels installed in /boot? And is there a way for me to merge them, thereby giving me more space for future updates? Or have I made a huge mistake resizing in the way that I did?



Apologies if this is a basic question for some of you. I haven't delved into such details of Ubuntu before.










share|improve this question














This is more of a knowledge based question. I came upon it because for the longest time I have been getting an out of disk space error in the /boot partition when I try to update my computer. And after upgrading to 18.04 from 16, I had no choice but to find a way to increase my /boot partition.



This is sort of the partitions I had
enter image description here



Unfortunately (in my situation) my main partition had an lvm2 pv file system so shrinking it was very risky and complex. So then I noticed that only 2% of my /boot/efi was being used and using a live OS, I used GParted to shrink the /boot/efi from the right and then expanded /boot from the left.



It all worked well and good. But I started researching more about these two types of boot partitions and I read around that the /boot partition is not really needed anymore. If that is the case, why are all my ubuntu kernels installed in /boot? And is there a way for me to merge them, thereby giving me more space for future updates? Or have I made a huge mistake resizing in the way that I did?



Apologies if this is a basic question for some of you. I haven't delved into such details of Ubuntu before.







boot partitioning 18.04 uefi






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 30 '18 at 19:46









nbznbz

1013




1013













  • LVs are useful to 1) Make several drives appear to you as one, or 2) To build system-wide encryption upon. If #1, starting a system from an LV is complex. If #2, Ubuntu cannot boot when it's own system files are encrypted jibberish. Resizing the LV is rarely necessary - normal maintenance should free up enough space in /boot - my /boot is nearly 40% smaller than yours, with no problems. DO NOT muck with EFI dir unless you want an unbootable system.

    – user535733
    Dec 30 '18 at 20:23













  • @user535733 I used tweak to remove old kernels along with purge and autoremove and all those various things. But it just didn't seem enough. I used to have 16.04 and then I upgraded to 18.04 and since then the maintenance didn't help. And the only mucking around I did with EFI was to reduce it's space because only 2% of it was being used.

    – nbz
    Jan 1 at 9:38











  • @user535733 I also noticed on further investigating my boot directory that there are fairly large initrd.img files of older kernels. They never seem to get removed in the old kernel clean up. Could this be because of upgrading from 16.04 to 18.04 with a swap partition and NOT a swapfile?

    – nbz
    Jan 2 at 16:14











  • No, initrd.img files are cleaned out routinely and automagically when older kernels are removed PROPERLY. If initrd.img files remain, then look at the the workflow of removal, and wonder why you have not noticed all the error messages.

    – user535733
    Jan 2 at 18:42



















  • LVs are useful to 1) Make several drives appear to you as one, or 2) To build system-wide encryption upon. If #1, starting a system from an LV is complex. If #2, Ubuntu cannot boot when it's own system files are encrypted jibberish. Resizing the LV is rarely necessary - normal maintenance should free up enough space in /boot - my /boot is nearly 40% smaller than yours, with no problems. DO NOT muck with EFI dir unless you want an unbootable system.

    – user535733
    Dec 30 '18 at 20:23













  • @user535733 I used tweak to remove old kernels along with purge and autoremove and all those various things. But it just didn't seem enough. I used to have 16.04 and then I upgraded to 18.04 and since then the maintenance didn't help. And the only mucking around I did with EFI was to reduce it's space because only 2% of it was being used.

    – nbz
    Jan 1 at 9:38











  • @user535733 I also noticed on further investigating my boot directory that there are fairly large initrd.img files of older kernels. They never seem to get removed in the old kernel clean up. Could this be because of upgrading from 16.04 to 18.04 with a swap partition and NOT a swapfile?

    – nbz
    Jan 2 at 16:14











  • No, initrd.img files are cleaned out routinely and automagically when older kernels are removed PROPERLY. If initrd.img files remain, then look at the the workflow of removal, and wonder why you have not noticed all the error messages.

    – user535733
    Jan 2 at 18:42

















LVs are useful to 1) Make several drives appear to you as one, or 2) To build system-wide encryption upon. If #1, starting a system from an LV is complex. If #2, Ubuntu cannot boot when it's own system files are encrypted jibberish. Resizing the LV is rarely necessary - normal maintenance should free up enough space in /boot - my /boot is nearly 40% smaller than yours, with no problems. DO NOT muck with EFI dir unless you want an unbootable system.

– user535733
Dec 30 '18 at 20:23







LVs are useful to 1) Make several drives appear to you as one, or 2) To build system-wide encryption upon. If #1, starting a system from an LV is complex. If #2, Ubuntu cannot boot when it's own system files are encrypted jibberish. Resizing the LV is rarely necessary - normal maintenance should free up enough space in /boot - my /boot is nearly 40% smaller than yours, with no problems. DO NOT muck with EFI dir unless you want an unbootable system.

– user535733
Dec 30 '18 at 20:23















@user535733 I used tweak to remove old kernels along with purge and autoremove and all those various things. But it just didn't seem enough. I used to have 16.04 and then I upgraded to 18.04 and since then the maintenance didn't help. And the only mucking around I did with EFI was to reduce it's space because only 2% of it was being used.

– nbz
Jan 1 at 9:38





@user535733 I used tweak to remove old kernels along with purge and autoremove and all those various things. But it just didn't seem enough. I used to have 16.04 and then I upgraded to 18.04 and since then the maintenance didn't help. And the only mucking around I did with EFI was to reduce it's space because only 2% of it was being used.

– nbz
Jan 1 at 9:38













@user535733 I also noticed on further investigating my boot directory that there are fairly large initrd.img files of older kernels. They never seem to get removed in the old kernel clean up. Could this be because of upgrading from 16.04 to 18.04 with a swap partition and NOT a swapfile?

– nbz
Jan 2 at 16:14





@user535733 I also noticed on further investigating my boot directory that there are fairly large initrd.img files of older kernels. They never seem to get removed in the old kernel clean up. Could this be because of upgrading from 16.04 to 18.04 with a swap partition and NOT a swapfile?

– nbz
Jan 2 at 16:14













No, initrd.img files are cleaned out routinely and automagically when older kernels are removed PROPERLY. If initrd.img files remain, then look at the the workflow of removal, and wonder why you have not noticed all the error messages.

– user535733
Jan 2 at 18:42





No, initrd.img files are cleaned out routinely and automagically when older kernels are removed PROPERLY. If initrd.img files remain, then look at the the workflow of removal, and wonder why you have not noticed all the error messages.

– user535733
Jan 2 at 18:42










1 Answer
1






active

oldest

votes


















0














I think this answer from Unix & Linux Stack Exchange makes sense of it:




The EFI System Partition is the partition the EFI firmware (in ROM on the motherboard) knows of and from which the firmware can load EFI applications like boot loaders. So the ESP is the place where you put GRUB2 for the firmware to load and run. The /boot directory/partition is the place for GRUB to find files it needs, like you said. However, there is no reason the ESP and /boot can't be the same partition.







share|improve this answer
























  • I've read seen this one already. I was looking for a more in depth explanation. But maybe simplicity is the better way to go in this case.

    – nbz
    Jan 1 at 9:39











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%2f1105674%2fubuntu-18-04-lts-why-are-kernels-installed-on-boot-and-not-boot-efi%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









0














I think this answer from Unix & Linux Stack Exchange makes sense of it:




The EFI System Partition is the partition the EFI firmware (in ROM on the motherboard) knows of and from which the firmware can load EFI applications like boot loaders. So the ESP is the place where you put GRUB2 for the firmware to load and run. The /boot directory/partition is the place for GRUB to find files it needs, like you said. However, there is no reason the ESP and /boot can't be the same partition.







share|improve this answer
























  • I've read seen this one already. I was looking for a more in depth explanation. But maybe simplicity is the better way to go in this case.

    – nbz
    Jan 1 at 9:39
















0














I think this answer from Unix & Linux Stack Exchange makes sense of it:




The EFI System Partition is the partition the EFI firmware (in ROM on the motherboard) knows of and from which the firmware can load EFI applications like boot loaders. So the ESP is the place where you put GRUB2 for the firmware to load and run. The /boot directory/partition is the place for GRUB to find files it needs, like you said. However, there is no reason the ESP and /boot can't be the same partition.







share|improve this answer
























  • I've read seen this one already. I was looking for a more in depth explanation. But maybe simplicity is the better way to go in this case.

    – nbz
    Jan 1 at 9:39














0












0








0







I think this answer from Unix & Linux Stack Exchange makes sense of it:




The EFI System Partition is the partition the EFI firmware (in ROM on the motherboard) knows of and from which the firmware can load EFI applications like boot loaders. So the ESP is the place where you put GRUB2 for the firmware to load and run. The /boot directory/partition is the place for GRUB to find files it needs, like you said. However, there is no reason the ESP and /boot can't be the same partition.







share|improve this answer













I think this answer from Unix & Linux Stack Exchange makes sense of it:




The EFI System Partition is the partition the EFI firmware (in ROM on the motherboard) knows of and from which the firmware can load EFI applications like boot loaders. So the ESP is the place where you put GRUB2 for the firmware to load and run. The /boot directory/partition is the place for GRUB to find files it needs, like you said. However, there is no reason the ESP and /boot can't be the same partition.








share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 30 '18 at 19:50









Kristopher IvesKristopher Ives

2,25611119




2,25611119













  • I've read seen this one already. I was looking for a more in depth explanation. But maybe simplicity is the better way to go in this case.

    – nbz
    Jan 1 at 9:39



















  • I've read seen this one already. I was looking for a more in depth explanation. But maybe simplicity is the better way to go in this case.

    – nbz
    Jan 1 at 9:39

















I've read seen this one already. I was looking for a more in depth explanation. But maybe simplicity is the better way to go in this case.

– nbz
Jan 1 at 9:39





I've read seen this one already. I was looking for a more in depth explanation. But maybe simplicity is the better way to go in this case.

– nbz
Jan 1 at 9:39


















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%2f1105674%2fubuntu-18-04-lts-why-are-kernels-installed-on-boot-and-not-boot-efi%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