[Bug 1678187] Re: Removing a linux-image-extra package fails, if /boot is about full
Sorry I was not clear enough. When I said "Filled with" I meant that they were the files occupying space. I'm sorry if that gave the idea that the corresponding vmlinuz-* files weren't present - it was just that in terms of bytes occupied, the initrd files are the big ones. As you can see from the directory listings, this has been a problem, and, since I'm using a Lenovo Thinkbook 15, I used the OEM kernel install. I probably followed https://wiki.ubuntu.com/Kernel/OEMKernel to install it and it fixed my audio problems. When removing kernels, I followed the instructions on the RemoveOldKernels page once I found them. What this bug is about is that when you somehow get a full /boot (from whatever cause), the updates stop working. Since /boot is a finite resource, it would be nice if the system could recover either automatically, or in an easy-to-initiate way. Thank you for my free operating system :-) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1678187 Title: Removing a linux-image-extra package fails, if /boot is about full To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1678187/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1678187] Re: Removing a linux-image-extra package fails, if /boot is about full
Ok, did it. That's freed up a load of space. Where would I file the bug about having two sets of kernels? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1678187 Title: Removing a linux-image-extra package fails, if /boot is about full To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1678187/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1678187] Re: Removing a linux-image-extra package fails, if /boot is about full
I've not yet found a way to make a USB boot that would allow me to start the machine in the event of something going wrong. Without a plan to revert the change, I'm a bit nervous. I know it *should* work fine - but I don't want to suddenly have an unbootable laptop I can't rescue. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1678187 Title: Removing a linux-image-extra package fails, if /boot is about full To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1678187/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1678187] Re: Removing a linux-image-extra package fails, if /boot is about full
Thanks for that advice. I'm a bit in trepidation about removing the default HWE. How do I protect myself from having an unbootable system? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1678187 Title: Removing a linux-image-extra package fails, if /boot is about full To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1678187/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1678187] Re: Removing a linux-image-extra package fails, if /boot is about full
And then I tried "sudo linux-purge --keep=1". That has tidied up a bit, but there's still not much space?field.comment=And then I tried "sudo linux-purge --keep=1". That has tidied up a bit, but there's still not much space. Now /boot contains: # du -sh /boot/* 248K/boot/config-5.10.0-1038-oem 248K/boot/config-5.10.0-1044-oem 248K/boot/config-5.11.0-25-generic 248K/boot/config-5.11.0-27-generic 48M /boot/efi 8.0M/boot/grub 0 /boot/initrd.img 113M/boot/initrd.img-5.10.0-1038-oem 113M/boot/initrd.img-5.10.0-1044-oem 112M/boot/initrd.img-5.11.0-25-generic 112M/boot/initrd.img-5.11.0-27-generic 0 /boot/initrd.img.old 16K /boot/lost+found 180K/boot/memtest86+.bin 184K/boot/memtest86+.elf 184K/boot/memtest86+_multiboot.bin 5.6M/boot/System.map-5.10.0-1038-oem 5.6M/boot/System.map-5.10.0-1044-oem 5.6M/boot/System.map-5.11.0-25-generic 5.6M/boot/System.map-5.11.0-27-generic 0 /boot/vmlinuz 12M /boot/vmlinuz-5.10.0-1038-oem 12M /boot/vmlinuz-5.10.0-1044-oem 9.7M/boot/vmlinuz-5.11.0-25-generic 9.7M/boot/vmlinuz-5.11.0-27-generic 0 /boot/vmlinuz.old # df -h /boot Filesystem Size Used Avail Use% Mounted on /dev/nvme0n1p2 705M 526M 129M 81% /boot ** Attachment added: "linux-purge-keep-1.txt" https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1678187/+attachment/5519055/+files/linux-purge-keep-1.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1678187 Title: Removing a linux-image-extra package fails, if /boot is about full To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1678187/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1678187] Re: Removing a linux-image-extra package fails, if /boot is about full
Here is the result of linux-purge --info My /boot is like this: # du -sh /boot/* 248K/boot/config-5.10.0-1038-oem 248K/boot/config-5.10.0-1044-oem 248K/boot/config-5.11.0-25-generic 248K/boot/config-5.11.0-27-generic 244K/boot/config-5.8.0-63-generic 48M /boot/efi 8.0M/boot/grub 0 /boot/initrd.img 113M/boot/initrd.img-5.10.0-1038-oem 113M/boot/initrd.img-5.10.0-1044-oem 112M/boot/initrd.img-5.11.0-25-generic 112M/boot/initrd.img-5.11.0-27-generic 113M/boot/initrd.img-5.8.0-63-generic 0 /boot/initrd.img.old 16K /boot/lost+found 180K/boot/memtest86+.bin 184K/boot/memtest86+.elf 184K/boot/memtest86+_multiboot.bin 5.6M/boot/System.map-5.10.0-1038-oem 5.6M/boot/System.map-5.10.0-1044-oem 5.6M/boot/System.map-5.11.0-25-generic 5.6M/boot/System.map-5.11.0-27-generic 5.3M/boot/System.map-5.8.0-63-generic 0 /boot/vmlinuz 12M /boot/vmlinuz-5.10.0-1038-oem 12M /boot/vmlinuz-5.10.0-1044-oem 9.7M/boot/vmlinuz-5.11.0-25-generic 9.7M/boot/vmlinuz-5.11.0-27-generic 9.4M/boot/vmlinuz-5.8.0-63-generic 0 /boot/vmlinuz.old ** Attachment added: "linux-purge-info.txt" https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1678187/+attachment/5519054/+files/linux-purge-info.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1678187 Title: Removing a linux-image-extra package fails, if /boot is about full To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1678187/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1678187] Re: Removing a linux-image-extra package fails, if /boot is about full
I managed to get some free space back on /boot. I'm posting this in the hopes that what I did may inform any fixing process. 1) List kernels with `dpkg -l | tail -n +6 | grep -E 'linux-image-[0-9]+'` 2) Delete the oldest initrd with update-initramfs -d -k 5.8.0-59-generic. There was now 111Mb free on /boot 3) Run `linux-purge -f`. This did nothing, but it output (presumably from running apt) a "The following packages were automatically installed and are no longer required" message 4) Run `apt autoremove`. This removed some kernels and initrd files. Now I have 256Mb free. This would be easier if /boot was a little larger. The install process gives you the choice of "totally automatic" and "you're on your own, buddy!" when partitioning. One neat trick the old Centos install has was to allow you to pre-load the manual partitioning scheme with the default, which you could then modify. ** Attachment added: "Directory listing for /boot" https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1678187/+attachment/5512855/+files/slash-boot-contents-after-fix.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1678187 Title: Removing a linux-image-extra package fails, if /boot is about full To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1678187/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1678187] Re: Removing a linux-image-extra package fails, if /boot is about full
I have now run linux-purge. It only freed up 50Mb or so, and no kernels got removed ** Attachment added: "Directory listing for /boot" https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1678187/+attachment/5512828/+files/slash-boot-contents-post-linux-purge.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1678187 Title: Removing a linux-image-extra package fails, if /boot is about full To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1678187/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1678187] Re: Removing a linux-image-extra package fails, if /boot is about full
Ok, more information. Just got warned that /boot is full again. I have attached a directory listing for /boot. Where do I find the logs for the update process that's doing this? ** Attachment added: "Directory listing for /boot" https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1678187/+attachment/5512827/+files/shash-boot-contents.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1678187 Title: Removing a linux-image-extra package fails, if /boot is about full To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1678187/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1678187] Re: Removing a linux-image-extra package fails, if /boot is about full
This was a fresh install of 20.04. I enabled encryption as it's a work laptop. I don't think I have logs - just the failure due to /boot being full on the update UI. I then followed the instructions at https://help.ubuntu.com/community/RemoveOldKernels under "Safely remove old kernels" so I could complete the update. There were no /boot/initrd.img-*.old-dkms files, just kernels and initrds corresponding to the kernels. /boot is about 700Mb. More space is taken as both the -generic and -oem kernels are being installed, even though I'd prefer the -oem ones. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1678187 Title: Removing a linux-image-extra package fails, if /boot is about full To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1678187/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1678187] Re: Removing a linux-image-extra package fails, if /boot is about full
Just ran in to this on Ubuntu 20.04, with an encrypted root partition. The partition layout is the one automatically generated when you install and ask for root partition encryption - I didn't mess with it. Drive is 512Gb NVME Machine is a Lenovo Thinkbook 15 Kernel 5.8.0-59-generic The /boot partition is 732Mb, but is filled with initrd.img* files. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1678187 Title: Removing a linux-image-extra package fails, if /boot is about full To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1678187/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs