Choose style:

Author Topic: /boot full  (Read 693 times)

0 Members and 1 Guest are viewing this topic.

Offline drdave

  • nOOb
  • *
  • Posts: 4
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 8
/boot full
« on: March 24, 2018, 12:27:55 pm »
Newbie -- trying to download/install updates as I haven't been on in a while.  Update installation failed due to /boot partition full.  Can I a) remove older versions, or b) somehow expand the /boot directory, and which would be best/easiest?

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26468
  • Karma: 2872
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: /boot full
« Reply #1 on: March 24, 2018, 01:50:31 pm »
What's the output from:
Code: [Select]
dpkg -l | grep linux-image
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline drdave

  • nOOb
  • *
  • Posts: 4
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 8
Re: /boot full
« Reply #2 on: March 27, 2018, 09:57:38 am »
dave@dave-MIR-795HS ~ $ dpkg -l | grep linux-image
ii  linux-image-4.10.0-32-generic               4.10.0-32.36~16.04.1                                        amd64        Linux kernel image for version 4.10.0 on 64 bit x86 SMP
ii  linux-image-4.10.0-35-generic               4.10.0-35.39~16.04.1                                        amd64        Linux kernel image for version 4.10.0 on 64 bit x86 SMP
ii  linux-image-4.10.0-40-generic               4.10.0-40.44~16.04.1                                        amd64        Linux kernel image for version 4.10.0 on 64 bit x86 SMP
ii  linux-image-4.10.0-42-generic               4.10.0-42.46~16.04.1                                        amd64        Linux kernel image for version 4.10.0 on 64 bit x86 SMP
ii  linux-image-4.8.0-53-generic                4.8.0-53.56~16.04.1                                         amd64        Linux kernel image for version 4.8.0 on 64 bit x86 SMP
ii  linux-image-4.8.0-54-generic                4.8.0-54.57~16.04.1                                         amd64        Linux kernel image for version 4.8.0 on 64 bit x86 SMP
ii  linux-image-4.8.0-56-generic                4.8.0-56.61~16.04.1                                         amd64        Linux kernel image for version 4.8.0 on 64 bit x86 SMP
ii  linux-image-4.8.0-58-generic                4.8.0-58.63~16.04.1                                         amd64        Linux kernel image for version 4.8.0 on 64 bit x86 SMP
ii  linux-image-extra-4.10.0-32-generic         4.10.0-32.36~16.04.1                                        amd64        Linux kernel extra modules for version 4.10.0 on 64 bit x86 SMP
ii  linux-image-extra-4.10.0-35-generic         4.10.0-35.39~16.04.1                                        amd64        Linux kernel extra modules for version 4.10.0 on 64 bit x86 SMP
ii  linux-image-extra-4.10.0-40-generic         4.10.0-40.44~16.04.1                                        amd64        Linux kernel extra modules for version 4.10.0 on 64 bit x86 SMP
iF  linux-image-extra-4.10.0-42-generic         4.10.0-42.46~16.04.1                                        amd64        Linux kernel extra modules for version 4.10.0 on 64 bit x86 SMP
iU  linux-image-extra-4.13.0-37-generic         4.13.0-37.42~16.04.1                                        amd64        Linux kernel extra modules for version 4.13.0 on 64 bit x86 SMP
ii  linux-image-extra-4.8.0-53-generic          4.8.0-53.56~16.04.1                                         amd64        Linux kernel extra modules for version 4.8.0 on 64 bit x86 SMP
ii  linux-image-extra-4.8.0-54-generic          4.8.0-54.57~16.04.1                                         amd64        Linux kernel extra modules for version 4.8.0 on 64 bit x86 SMP
ii  linux-image-extra-4.8.0-56-generic          4.8.0-56.61~16.04.1                                         amd64        Linux kernel extra modules for version 4.8.0 on 64 bit x86 SMP
ii  linux-image-extra-4.8.0-58-generic          4.8.0-58.63~16.04.1                                         amd64        Linux kernel extra modules for version 4.8.0 on 64 bit x86 SMP
iU  linux-image-generic-hwe-16.04               4.13.0.37.56                                                amd64        Generic Linux kernel image

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26468
  • Karma: 2872
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: /boot full
« Reply #3 on: March 27, 2018, 02:45:21 pm »
Run this long command:
Code: [Select]
sudo apt-get remove --purge linux-image-4.10.0-32-generic linux-image-4.10.0-35-generic  linux-image-4.10.0-40-generic linux-image-4.10.0-42-generic linux-image-4.8.0-53-generic linux-image-4.8.0-54-generic linux-image-4.8.0-56-generic linux-image-4.8.0-58-generic linux-image-extra-4.10.0-32-generic linux-image-extra-4.10.0-35-generic linux-image-extra-4.10.0-40-generic linux-image-extra-4.10.0-42-generic linux-image-extra-4.8.0-53-generic linux-image-extra-4.8.0-54-generic linux-image-extra-4.8.0-56-generic linux-image-extra-4.8.0-58-generic
then
Code: [Select]
sudo apt-get autoremove
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline drdave

  • nOOb
  • *
  • Posts: 4
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 8
Re: /boot full
« Reply #4 on: April 03, 2018, 11:37:23 am »
dave@dave-MIR-795HS /boot $ sudo apt-get remove --purge linux-image-4.10.0-32-generic linux-image-4.10.0-35-generic  linux-image-4.10.0-40-generic linux-image-4.10.0-42-generic linux-image-4.8.0-53-generic linux-image-4.8.0-54-generic linux-image-4.8.0-56-generic linux-image-4.8.0-58-generic linux-image-extra-4.10.0-32-generic linux-image-extra-4.10.0-35-generic linux-image-extra-4.10.0-40-generic linux-image-extra-4.10.0-42-generic linux-image-extra-4.8.0-53-generic linux-image-extra-4.8.0-54-generic linux-image-extra-4.8.0-56-generic linux-image-extra-4.8.0-58-generic
[sudo] password for dave:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 linux-image-extra-4.13.0-37-generic : Depends: linux-image-4.13.0-37-generic but it is not going to be installed
 linux-image-generic-hwe-16.04 : Depends: linux-image-4.13.0-37-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Offline drdave

  • nOOb
  • *
  • Posts: 4
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 8
Re: /boot full
« Reply #5 on: April 03, 2018, 11:39:09 am »
dave@dave-MIR-795HS /boot $ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree������
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
�linux-image-extra-4.13.0-37-generic : Depends: linux-image-4.13.0-37-generic but it is not installed
�linux-image-generic-hwe-16.04 : Depends: linux-image-4.13.0-37-generic but it is not installed
E: Unmet dependencies. Try using -f.


E: linux-image-extra-4.13.0-37-generic: subprocess installed post-removal script returned error exit status 1

Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 517311 files and directories currently installed.)
Removing linux-generic-hwe-16.04 (4.13.0.37.56) ...
Removing linux-image-generic-hwe-16.04 (4.13.0.37.56) ...
Removing linux-image-extra-4.13.0-37-generic (4.13.0-37.42~16.04.1) ...
depmod: FATAL: could not load /boot/System.map-4.13.0-37-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-37-generic /boot/vmlinuz-4.13.0-37-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.13.0-37-generic /boot/vmlinuz-4.13.0-37-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.13.0-37-generic /boot/vmlinuz-4.13.0-37-generic
update-initramfs: Generating /boot/initrd.img-4.13.0-37-generic
depmod: WARNING: could not open /lib/modules/4.13.0-37-generic/modules.order: No such file or directory
depmod: WARNING: could not open /lib/modules/4.13.0-37-generic/modules.builtin: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_SjhyVx/lib/modules/4.13.0-37-generic/modules.order: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_SjhyVx/lib/modules/4.13.0-37-generic/modules.builtin: No such file or directory

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.13.0-37-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.13.0-37-generic (--remove):
�subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
�linux-image-extra-4.13.0-37-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.� Trying to recover:
Setting up linux-image-extra-4.10.0-42-generic (4.10.0-42.46~16.04.1) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.10.0-42-generic /boot/vmlinuz-4.10.0-42-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.10.0-42-generic /boot/vmlinuz-4.10.0-42-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.10.0-42-generic /boot/vmlinuz-4.10.0-42-generic
update-initramfs: Generating /boot/initrd.img-4.10.0-42-generic

gzip: stdout: No space left on device
cpio: write error: Broken pipe
find: �standard output�: Broken pipe
find: write error
E: mkinitramfs failure find 1 cpio 1 gzip 1
update-initramfs: failed for /boot/initrd.img-4.10.0-42-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.10.0-42-generic (--configure):
�subprocess installed post-installation script returned error exit status 1
Setting up initramfs-tools (0.122ubuntu8.11) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-firmware (1.157.17) ...
update-initramfs: Generating /boot/initrd.img-4.10.0-42-generic

gzip: stdout: No space left on device
cpio: write error: Broken pipe
find: �standard output�: Broken pipe
find: write error
E: mkinitramfs failure find 1 cpio 1 gzip 1
update-initramfs: failed for /boot/initrd.img-4.10.0-42-generic with 1.
dpkg: error processing package linux-firmware (--configure):
�subprocess installed post-installation script returned error exit status 1
Processing triggers for initramfs-tools (0.122ubuntu8.11) ...
update-initramfs: Generating /boot/initrd.img-4.10.0-42-generic

gzip: stdout: No space left on device
cpio: write error: Broken pipe
find: �standard output�: Broken pipe
find: write error
E: mkinitramfs failure find 1 cpio 1 gzip 1
update-initramfs: failed for /boot/initrd.img-4.10.0-42-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
�subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
�linux-image-extra-4.10.0-42-generic
�linux-firmware
�initramfs-tools


Offline pin

  • Trusted User
  • Veteran
  • *****
  • Posts: 1838
  • Karma: 263
    • View Profile
Re: /boot full
« Reply #6 on: April 03, 2018, 01:14:30 pm »
Ok! You have so many kernel that it might be... difficult to remove all of them in one go.
Easy way... first check which kernel you are currently using.
Code: [Select]
uname -r
DON'T REMOVE THIS ONE!

Open synaptic package manager and search for 4.8.0, the ones you have installed will be highlighted. Check the tick boxes and uninstall them.
Repeat the process for the next series and so on.
Remember, DON'T REMOVE THE KERNEL YOU ARE CURRENTLY RUNNING!

Once you're done update and upgrade your system. Re-check which kernel you're running now and further remove more kernels if required. I always keep 2 kernels at any given point.

Hope this works now.

You can also use the CLI but, take one series at the time starting with oldest one 4.8.0 followed by the 4.10.0
« Last Edit: April 03, 2018, 01:17:38 pm by pin »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26468
  • Karma: 2872
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: /boot full
« Reply #7 on: April 03, 2018, 01:50:33 pm »
Post the output from:
Code: [Select]
uname -a
and
Code: [Select]
ls /boot
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec