Ubuntu 18.04 LTS Why are kernels installed on /boot and not /boot/efi?
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
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
New contributor
add a comment |
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
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
New contributor
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
add a comment |
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
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
New contributor
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
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
boot partitioning 18.04 uefi
New contributor
New contributor
New contributor
asked Dec 30 '18 at 19:46
nbz
1013
1013
New contributor
New contributor
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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.
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
add a comment |
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
});
}
});
nbz is a new contributor. Be nice, and check out our Code of Conduct.
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%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
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.
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
add a comment |
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.
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
add a comment |
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.
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.
answered Dec 30 '18 at 19:50
Kristopher Ives
1,8181016
1,8181016
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
add a comment |
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
add a comment |
nbz is a new contributor. Be nice, and check out our Code of Conduct.
nbz is a new contributor. Be nice, and check out our Code of Conduct.
nbz is a new contributor. Be nice, and check out our Code of Conduct.
nbz is a new contributor. Be nice, and check out our Code of Conduct.
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.
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%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
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
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