[solved] crypted hard-disk : /boot partition full so cannot update kernel

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
DeltaTango
Level 2
Level 2
Posts: 50
Joined: Tue May 10, 2016 4:25 am

[solved] crypted hard-disk : /boot partition full so cannot update kernel

Postby DeltaTango » Wed Nov 08, 2017 6:32 pm

Hello.

I have this laptop that I installed with LM 18.1 and for which I chose to encrypt the whole hard drive (you know, not only the /home folder : you need to enter a password at the beginning of the boot way before the user login screen).

I had noticed for some time that some updates did not work for some reason. Eventually, I noticed it was the kernel updates. Looking more in details, I saw that the the terminal screen during update spoke of not having enough disk space. Looking at the partitions with the system monitor, I noticed that in addition to the encrypted main partition (which is over 500 Go and has plenty of empty space), there was a /boot partition, with only 500 Mb and that its is 100% full (5 Mb of available space according to GParted).

The result of a ls -al command in the /boot directory gives :

Code: Select all

 /boot $ ls -al
total 467656
drwxr-xr-x  4 root root     4096 nov.   8 22:59 .
drwxr-xr-x 22 root root     4096 nov.   8 22:59 ..
-rw-r--r--  1 root root  1239585 déc.   2  2016 abi-4.4.0-53-generic
-rw-r--r--  1 root root  1241618 févr. 20  2017 abi-4.4.0-64-generic
-rw-r--r--  1 root root  1241765 mars  31  2017 abi-4.4.0-72-generic
-rw-r--r--  1 root root  1242419 avril 26  2017 abi-4.4.0-77-generic
-rw-r--r--  1 root root  1242417 mai   17 23:44 abi-4.4.0-79-generic
-rw-r--r--  1 root root  1242417 juin  14 12:45 abi-4.4.0-81-generic
-rw-r--r--  1 root root  1242617 juin  26 21:50 abi-4.4.0-83-generic
-rw-r--r--  1 root root  1242776 juil. 18 16:28 abi-4.4.0-87-generic
-rw-r--r--  1 root root  1242941 juil. 31 23:55 abi-4.4.0-89-generic
-rw-r--r--  1 root root  1242941 août  10 20:05 abi-4.4.0-92-generic
-rw-r--r--  1 root root  1243375 août  12 00:46 abi-4.4.0-93-generic
-rw-r--r--  1 root root  1243326 sept. 19 20:47 abi-4.4.0-97-generic
-rw-r--r--  1 root root   193272 déc.   2  2016 config-4.4.0-53-generic
-rw-r--r--  1 root root   193642 févr. 20  2017 config-4.4.0-64-generic
-rw-r--r--  1 root root   193631 mars  31  2017 config-4.4.0-72-generic
-rw-r--r--  1 root root   193750 avril 26  2017 config-4.4.0-77-generic
-rw-r--r--  1 root root   193751 mai   17 23:44 config-4.4.0-79-generic
-rw-r--r--  1 root root   193751 juin  14 12:45 config-4.4.0-81-generic
-rw-r--r--  1 root root   193751 juin  26 21:50 config-4.4.0-83-generic
-rw-r--r--  1 root root   193751 juil. 18 16:28 config-4.4.0-87-generic
-rw-r--r--  1 root root   193751 juil. 31 23:55 config-4.4.0-89-generic
-rw-r--r--  1 root root   193751 août  10 20:05 config-4.4.0-92-generic
-rw-r--r--  1 root root   193751 août  12 00:46 config-4.4.0-93-generic
-rw-r--r--  1 root root   193843 sept. 19 20:47 config-4.4.0-97-generic
drwxr-xr-x  5 root root     1024 août   3 23:24 grub
-rw-r--r--  1 root root 40991988 juil. 16 16:31 initrd.img-4.4.0-53-generic
-rw-r--r--  1 root root 40984880 juil. 16 16:31 initrd.img-4.4.0-64-generic
-rw-r--r--  1 root root 40991841 juil. 16 16:30 initrd.img-4.4.0-72-generic
-rw-r--r--  1 root root 40995520 juil. 16 16:30 initrd.img-4.4.0-77-generic
-rw-r--r--  1 root root 11911707 juil. 16 16:29 initrd.img-4.4.0-78-generic
-rw-r--r--  1 root root 40998443 juil. 16 16:29 initrd.img-4.4.0-79-generic
-rw-r--r--  1 root root 40996735 juil. 16 16:29 initrd.img-4.4.0-81-generic
-rw-r--r--  1 root root 40996463 juil. 16 16:28 initrd.img-4.4.0-83-generic
-rw-r--r--  1 root root 41006864 août   3 23:23 initrd.img-4.4.0-87-generic
drwx------  2 root root    12288 mars   4  2017 lost+found
-rw-r--r--  1 root root   182704 janv. 28  2016 memtest86+.bin
-rw-r--r--  1 root root   184380 janv. 28  2016 memtest86+.elf
-rw-r--r--  1 root root   184840 janv. 28  2016 memtest86+_multiboot.bin
-rw-------  1 root root  3093941 déc.   2  2016 System.map-4.4.0-53-generic
-rw-------  1 root root  3101576 févr. 20  2017 System.map-4.4.0-64-generic
-rw-------  1 root root  3100303 mars  31  2017 System.map-4.4.0-72-generic
-rw-------  1 root root  3101113 avril 26  2017 System.map-4.4.0-77-generic
-rw-------  1 root root  3101039 mai   17 23:44 System.map-4.4.0-79-generic
-rw-------  1 root root  3101131 juin  14 12:45 System.map-4.4.0-81-generic
-rw-------  1 root root  3101493 juin  26 21:50 System.map-4.4.0-83-generic
-rw-------  1 root root  3101693 juil. 18 16:28 System.map-4.4.0-87-generic
-rw-------  1 root root  3102214 juil. 31 23:55 System.map-4.4.0-89-generic
-rw-------  1 root root  3102214 août  10 20:05 System.map-4.4.0-92-generic
-rw-------  1 root root  3103027 août  12 00:46 System.map-4.4.0-93-generic
-rw-------  1 root root  3103777 sept. 19 20:47 System.map-4.4.0-97-generic
-rw-r--r--  1 root root  6810656 janv. 25  2017 vmlinuz-4.4.0-53-generic
-rw-------  1 root root  6828960 févr. 20  2017 vmlinuz-4.4.0-64-generic
-rw-------  1 root root  6826496 mars  31  2017 vmlinuz-4.4.0-72-generic
-rw-------  1 root root  6822400 avril 26  2017 vmlinuz-4.4.0-77-generic
-rw-------  1 root root  6839424 mai   17 23:44 vmlinuz-4.4.0-79-generic
-rw-------  1 root root  6839424 juin  14 12:45 vmlinuz-4.4.0-81-generic
-rw-------  1 root root  6838624 juin  26 21:50 vmlinuz-4.4.0-83-generic
-rw-------  1 root root  6841152 juil. 18 16:28 vmlinuz-4.4.0-87-generic
-rw-------  1 root root  6841952 juil. 31 23:55 vmlinuz-4.4.0-89-generic
-rw-------  1 root root  6841888 août  10 20:05 vmlinuz-4.4.0-92-generic
-rw-------  1 root root  6843104 août  12 00:46 vmlinuz-4.4.0-93-generic
-rw-------  1 root root  6845408 sept. 19 20:47 vmlinuz-4.4.0-97-generic

The uname -a command indicates that the running kernel is 4.4.0-87 not the latest installed version 4.4.0-97 (?!).

Command lsblk :

Code: Select all

 ~ $ lsblk
NAME                  MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda                     8:0    0 698,7G  0 disk 
├─sda1                  8:1    0   487M  0 part  /boot
├─sda2                  8:2    0     1K  0 part 
└─sda5                  8:5    0 698,2G  0 part 
  └─sda5_crypt        252:0    0 698,2G  0 crypt
    ├─mint--vg-root   252:1    0 696,2G  0 lvm   /
    └─mint--vg-swap_1 252:2    0     2G  0 lvm   [SWAP]
sr0                    11:0    1  1024M  0 rom


I have tried following this tutorial to install byobu using Synaptic so I could run the sudo purge-old-kernels command but I cannot install byobu due to the lack of disk space (I am not sure why it needs space on the /boot partition).
I have tried following this other tutorial and purge the old kernels (< 4.4.0-83) using Synaptic but it also fails due to the lack of space. I have tried purging the newer kernels (those installed and after the currently running 4.4.0-87) but it also fails for the same reason.

Terminal output while I was trying to purge the kernels (a mix of English and French) :

Code: Select all

(Lecture de la base de données... 625766 fichiers et répertoires déjà installés.)
Suppression de linux-image-extra-4.4.0-89-generic (4.4.0-89.112) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-89-generic /boot/vmlinuz-4.4.0-89-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-89-generic /boot/vmlinuz-4.4.0-89-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-89-generic /boot/vmlinuz-4.4.0-89-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-89-generic
Warning: No support for locale: fr_FR.utf8

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-89-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: erreur de traitement du paquet linux-image-extra-4.4.0-89-generic (--remove) :
 le sous-processus script post-removal installé a retourné une erreur de sortie d'état 1
Des erreurs ont été rencontrées pendant l'exécution :
 linux-image-extra-4.4.0-89-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
Échec de l'installation d'un paquet. Tentative de récupération :
Paramétrage de linux-image-4.4.0-97-generic (4.4.0-97.120) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-4.4.0-93-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-97-generic /boot/vmlinuz-4.4.0-97-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-97-generic /boot/vmlinuz-4.4.0-97-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-97-generic /boot/vmlinuz-4.4.0-97-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-97-generic
Warning: No support for locale: fr_FR.utf8

gzip: stdout: No space left on device
cpio: erreur d'écriture: Relais brisé (pipe)
find: «standard output»: Relais brisé (pipe)
find: erreur d'écriture
E: mkinitramfs failure find 1 cpio 1 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-97-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.4.0-97-generic.postinst line 1052.
dpkg: erreur de traitement du paquet linux-image-4.4.0-97-generic (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 2
Paramétrage de initramfs-tools (0.122ubuntu8.9) ...
update-initramfs: deferring update (trigger activated)
dpkg: des problèmes de dépendances empêchent la configuration de linux-image-extra-4.4.0-97-generic :
 linux-image-extra-4.4.0-97-generic dépend de linux-image-4.4.0-97-generic ; cependant :
 Le paquet linux-image-4.4.0-97-generic n'est pas encore configuré.

dpkg: erreur de traitement du paquet linux-image-extra-4.4.0-97-generic (--configure) :
 problèmes de dépendances - laissé non configuré
Paramétrage de linux-image-4.4.0-92-generic (4.4.0-92.115) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-4.4.0-97-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-92-generic /boot/vmlinuz-4.4.0-92-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-92-generic /boot/vmlinuz-4.4.0-92-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-92-generic /boot/vmlinuz-4.4.0-92-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-92-generic
Warning: No support for locale: fr_FR.utf8

gzip: stdout: No space left on device
cpio: erreur d'écriture: Relais brisé (pipe)
find: «standard output»: Relais brisé (pipe)
find: erreur d'écriture
E: mkinitramfs failure find 1 cpio 1 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-92-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.4.0-92-generic.postinst line 1052.
dpkg: erreur de traitement du paquet linux-image-4.4.0-92-generic (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 2
Paramétrage de linux-image-4.4.0-89-generic (4.4.0-89.112) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-4.4.0-92-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-89-generic /boot/vmlinuz-4.4.0-89-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-89-generic /boot/vmlinuz-4.4.0-89-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-89-generic /boot/vmlinuz-4.4.0-89-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-89-generic
Warning: No support for locale: fr_FR.utf8

gzip: stdout: No space left on device
cpio: erreur d'écriture: Relais brisé (pipe)
E: mkinitramfs failure cpio 1 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-89-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.4.0-89-generic.postinst line 1052.
dpkg: erreur de traitement du paquet linux-image-4.4.0-89-generic (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 2
Paramétrage de linux-firmware (1.157.13) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-87-generic
Warning: No support for locale: fr_FR.utf8

gzip: stdout: No space left on device
cpio: erreur d'écriture: Relais brisé (pipe)
find: «standard output»: Relais brisé (pipe)
find: erreur d'écriture
E: mkinitramfs failure find 1 cpio 1 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-87-generic with 1.
dpkg: erreur de traitement du paquet linux-firmware (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
Paramétrage de linux-image-4.4.0-93-generic (4.4.0-93.116) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-4.4.0-89-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-93-generic /boot/vmlinuz-4.4.0-93-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-93-generic /boot/vmlinuz-4.4.0-93-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-93-generic /boot/vmlinuz-4.4.0-93-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-93-generic
Warning: No support for locale: fr_FR.utf8

gzip: stdout: No space left on device
cpio: erreur d'écriture: Relais brisé (pipe)
find: «standard output»: Relais brisé (pipe)
find: erreur d'écriture
E: mkinitramfs failure find 1 cpio 1 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-93-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.4.0-93-generic.postinst line 1052.
dpkg: erreur de traitement du paquet linux-image-4.4.0-93-generic (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 2
dpkg: des problèmes de dépendances empêchent la configuration de linux-image-extra-4.4.0-93-generic :
 linux-image-extra-4.4.0-93-generic dépend de linux-image-4.4.0-93-generic ; cependant :
 Le paquet linux-image-4.4.0-93-generic n'est pas encore configuré.

dpkg: erreur de traitement du paquet linux-image-extra-4.4.0-93-generic (--configure) :
 problèmes de dépendances - laissé non configuré
dpkg: des problèmes de dépendances empêchent la configuration de linux-image-extra-4.4.0-92-generic :
 linux-image-extra-4.4.0-92-generic dépend de linux-image-4.4.0-92-generic ; cependant :
 Le paquet linux-image-4.4.0-92-generic n'est pas encore configuré.

dpkg: erreur de traitement du paquet linux-image-extra-4.4.0-92-generic (--configure) :
 problèmes de dépendances - laissé non configuré
Traitement des actions différées (« triggers ») pour initramfs-tools (0.122ubuntu8.9) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-87-generic
Warning: No support for locale: fr_FR.utf8

gzip: stdout: No space left on device
cpio: erreur d'écriture: Relais brisé (pipe)
find: «standard output»: Relais brisé (pipe)
find: erreur d'écriture
E: mkinitramfs failure find 1 cpio 1 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-87-generic with 1.
dpkg: erreur de traitement du paquet initramfs-tools (--configure) :


So, from what I understand, I cannot neither update the kernel nor uninstall any version of it due to the lack of space.
And because the hard disk is encrypted, I am unsure if resizing partitions is actually possible.

What can I do ? :(
Last edited by DeltaTango on Mon Nov 13, 2017 7:36 pm, edited 1 time in total.

User avatar
WharfRat
Level 19
Level 19
Posts: 9917
Joined: Thu Apr 07, 2011 8:15 pm

Re: crypted hard-disk : /boot partition full so cannot update kernel

Postby WharfRat » Wed Nov 08, 2017 6:48 pm

DeltaTango,

Try the technique at viewtopic.php?f=46&t=256436#p1383331
Image ImageImage

DeltaTango
Level 2
Level 2
Posts: 50
Joined: Tue May 10, 2016 4:25 am

Re: crypted hard-disk : /boot partition full so cannot update kernel

Postby DeltaTango » Sun Nov 12, 2017 10:34 am

Hi.

As I expected, the script did not work, as it only calls the same command I had been calling manually (sudo apt-get purge).
the output of the command :

Code: Select all

~ $ sudo apt-get purge $OLDKERNELS
[sudo] Mot de passe de attila :
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Les paquets suivants seront ENLEVÉS :
  linux-headers-4.4.0-53* linux-headers-4.4.0-53-generic* linux-headers-4.4.0-64* linux-headers-4.4.0-64-generic* linux-headers-4.4.0-72*
  linux-headers-4.4.0-72-generic* linux-headers-4.4.0-77* linux-headers-4.4.0-77-generic* linux-headers-4.4.0-78* linux-headers-4.4.0-78-generic*
  linux-headers-4.4.0-79* linux-headers-4.4.0-79-generic* linux-headers-4.4.0-81* linux-headers-4.4.0-81-generic* linux-headers-4.4.0-83*
  linux-headers-4.4.0-83-generic* linux-headers-4.4.0-89* linux-headers-4.4.0-89-generic* linux-headers-4.4.0-92* linux-headers-4.4.0-92-generic*
  linux-headers-4.4.0-93* linux-headers-4.4.0-93-generic* linux-headers-4.4.0-97* linux-headers-4.4.0-97-generic* linux-headers-4.4.0-98*
  linux-headers-4.4.0-98-generic* linux-image-4.4.0-53-generic* linux-image-4.4.0-64-generic* linux-image-4.4.0-72-generic* linux-image-4.4.0-77-generic*
  linux-image-4.4.0-79-generic* linux-image-4.4.0-81-generic* linux-image-4.4.0-83-generic* linux-image-4.4.0-89-generic* linux-image-4.4.0-92-generic*
  linux-image-4.4.0-93-generic* linux-image-4.4.0-97-generic* linux-image-extra-4.4.0-53-generic* linux-image-extra-4.4.0-64-generic*
  linux-image-extra-4.4.0-72-generic* linux-image-extra-4.4.0-77-generic* linux-image-extra-4.4.0-78-generic* linux-image-extra-4.4.0-79-generic*
  linux-image-extra-4.4.0-81-generic* linux-image-extra-4.4.0-83-generic* linux-image-extra-4.4.0-89-generic linux-image-extra-4.4.0-92-generic
  linux-image-extra-4.4.0-93-generic* linux-image-extra-4.4.0-97-generic* linux-image-extra-4.4.0-98-generic
0 mis à jour, 0 nouvellement installés, 50 à enlever et 33 non mis à jour.
11 partiellement installés ou enlevés.
Après cette opération, 2 894 Mo d'espace disque seront libérés.
Souhaitez-vous continuer ? [O/n] O
(Lecture de la base de données... 616592 fichiers et répertoires déjà installés.)
Suppression de linux-image-extra-4.4.0-89-generic (4.4.0-89.112) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-89-generic /boot/vmlinuz-4.4.0-89-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-89-generic /boot/vmlinuz-4.4.0-89-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-89-generic /boot/vmlinuz-4.4.0-89-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-89-generic
Warning: No support for locale: fr_FR.utf8

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-89-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: erreur de traitement du paquet linux-image-extra-4.4.0-89-generic (--remove) :
 le sous-processus script post-removal installé a retourné une erreur de sortie d'état 1
Des erreurs ont été rencontrées pendant l'exécution :
 linux-image-extra-4.4.0-89-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)


From what I understand, the lack of space on the partition prevents also purging the old kernels.

User avatar
WharfRat
Level 19
Level 19
Posts: 9917
Joined: Thu Apr 07, 2011 8:15 pm

Re: crypted hard-disk : /boot partition full so cannot update kernel

Postby WharfRat » Sun Nov 12, 2017 11:59 am

Do have other files not normally found in /boot :?:

Paste back ls -lh /boot/|grep -v vmlin|grep -v initrd|grep -v map|grep -v config|grep -v abi
Image ImageImage

Laurent85
Level 13
Level 13
Posts: 4752
Joined: Tue May 26, 2015 10:11 am

Re: crypted hard-disk : /boot partition full so cannot update kernel

Postby Laurent85 » Sun Nov 12, 2017 12:37 pm

You can manually overwrite some old initrd files to free some disk space:

Code: Select all

sudo sh -c "> /boot/initrd.img-4.4.0-64-generic"
sudo sh -c "> /boot/initrd.img-4.4.0-72-generic"
sudo sh -c "> /boot/initrd.img-4.4.0-77-generic"
sudo sh -c "> /boot/initrd.img-4.4.0-78-generic"
sudo sh -c "> /boot/initrd.img-4.4.0-79-generic"

Then resume kernel update process:

Code: Select all

apt install -f
sudo dpkg --configure -a

Finally use suggested method to remove old kernels.
Image

DeltaTango
Level 2
Level 2
Posts: 50
Joined: Tue May 10, 2016 4:25 am

Re: crypted hard-disk : /boot partition full so cannot update kernel

Postby DeltaTango » Mon Nov 13, 2017 7:36 pm

Hi.

This seems to be a quite well-known problem with installs of Ubuntu with LVM or encrypted hard disks.
I eventually found the solution at the bottom of this page.


Return to “Installation & Boot”

Who is online

Users browsing this forum: Baidu [Spider] and 17 guests