boot partition full

Bug #1744045 reported by luca moscato
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu
New
Undecided
Unassigned

Bug Description

Env: Ubuntu Desktop 16.04 LTS 64bits

Hi all
at the beginning of september 2017 I set up a new pc for a desktop user, command line never used. Now after 5 months of daily use I received the alert about /boot partition almost full, see below

user@latitude5580:~$ df -h
File system Dim. Usati Dispon. Uso% Montato su
/dev/sda2 473M 444M 4,7M 99% /boot

user@latitude5580:/boot$ ls -lh
totale 434M
-rw-r--r-- 1 root root 1,4M lug 20 16:11 abi-4.10.0-28-generic
-rw-r--r-- 1 root root 1,4M ago 11 19:59 abi-4.10.0-33-generic
-rw-r--r-- 1 root root 1,4M set 13 13:16 abi-4.10.0-35-generic
-rw-r--r-- 1 root root 1,4M ott 7 02:35 abi-4.10.0-37-generic
-rw-r--r-- 1 root root 1,4M nov 9 21:56 abi-4.10.0-40-generic
-rw-r--r-- 1 root root 1,4M dic 4 19:28 abi-4.10.0-42-generic
-rw-r--r-- 1 root root 1,5M gen 10 00:54 abi-4.13.0-26-generic
-rw-r--r-- 1 root root 201K lug 20 16:11 config-4.10.0-28-generic
-rw-r--r-- 1 root root 201K ago 11 19:59 config-4.10.0-33-generic
-rw-r--r-- 1 root root 201K set 13 13:16 config-4.10.0-35-generic
-rw-r--r-- 1 root root 201K ott 7 02:35 config-4.10.0-37-generic
-rw-r--r-- 1 root root 201K nov 9 21:56 config-4.10.0-40-generic
-rw-r--r-- 1 root root 201K dic 4 19:28 config-4.10.0-42-generic
-rw-r--r-- 1 root root 209K gen 10 00:54 config-4.13.0-26-generic
drwx------ 3 root root 4,0K gen 1 1970 efi
drwxr-xr-x 5 root root 1,0K gen 17 08:56 grub
-rw-r--r-- 1 root root 43M dic 19 09:08 initrd.img-4.10.0-28-generic
-rw-r--r-- 1 root root 43M dic 19 09:08 initrd.img-4.10.0-33-generic
-rw-r--r-- 1 root root 43M dic 19 09:07 initrd.img-4.10.0-35-generic
-rw-r--r-- 1 root root 43M dic 19 09:07 initrd.img-4.10.0-37-generic
-rw-r--r-- 1 root root 43M dic 19 09:07 initrd.img-4.10.0-40-generic
-rw-r--r-- 1 root root 43M dic 19 09:08 initrd.img-4.10.0-42-generic
-rw-r--r-- 1 root root 50M gen 17 08:55 initrd.img-4.13.0-26-generic
drwx------ 2 root root 12K set 1 12:01 lost+found
-rw-r--r-- 1 root root 179K gen 28 2016 memtest86+.bin
-rw-r--r-- 1 root root 181K gen 28 2016 memtest86+.elf
-rw-r--r-- 1 root root 181K gen 28 2016 memtest86+_multiboot.bin
-rw------- 1 root root 3,6M lug 20 16:11 System.map-4.10.0-28-generic
-rw------- 1 root root 3,6M ago 11 19:59 System.map-4.10.0-33-generic
-rw------- 1 root root 3,6M set 13 13:16 System.map-4.10.0-35-generic
-rw------- 1 root root 3,6M ott 7 02:35 System.map-4.10.0-37-generic
-rw------- 1 root root 3,6M nov 9 21:56 System.map-4.10.0-40-generic
-rw------- 1 root root 3,6M dic 4 19:28 System.map-4.10.0-42-generic
-rw------- 1 root root 3,7M gen 10 00:54 System.map-4.13.0-26-generic
-rw-r--r-- 1 root root 7,1M set 1 12:03 vmlinuz-4.10.0-28-generic
-rw------- 1 root root 7,1M ago 11 19:59 vmlinuz-4.10.0-33-generic
-rw------- 1 root root 7,1M set 1 12:05 vmlinuz-4.10.0-33-generic.efi.signed
-rw------- 1 root root 7,1M set 13 13:16 vmlinuz-4.10.0-35-generic
-rw------- 1 root root 7,1M set 20 08:59 vmlinuz-4.10.0-35-generic.efi.signed
-rw------- 1 root root 7,1M ott 7 02:35 vmlinuz-4.10.0-37-generic
-rw------- 1 root root 7,1M ott 18 09:02 vmlinuz-4.10.0-37-generic.efi.signed
-rw------- 1 root root 7,1M nov 9 21:56 vmlinuz-4.10.0-40-generic
-rw------- 1 root root 7,1M nov 21 09:00 vmlinuz-4.10.0-40-generic.efi.signed
-rw------- 1 root root 7,1M dic 4 19:28 vmlinuz-4.10.0-42-generic
-rw------- 1 root root 7,1M dic 19 09:08 vmlinuz-4.10.0-42-generic.efi.signed
-rw------- 1 root root 7,4M gen 10 00:54 vmlinuz-4.13.0-26-generic
-rw------- 1 root root 7,4M gen 17 08:56 vmlinuz-4.13.0-26-generic.efi.signed

user@latitude5580:/boot$ sudo apt autoremove
[sudo] password di user:
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
I seguenti pacchetti saranno RIMOSSI:
  linux-headers-4.10.0-28 linux-headers-4.10.0-28-generic linux-headers-4.10.0-33 linux-headers-4.10.0-33-generic linux-headers-4.10.0-35 linux-headers-4.10.0-35-generic linux-headers-4.10.0-37
  linux-headers-4.10.0-37-generic linux-headers-4.10.0-40 linux-headers-4.10.0-40-generic linux-image-4.10.0-28-generic linux-image-4.10.0-33-generic linux-image-4.10.0-35-generic
  linux-image-4.10.0-37-generic linux-image-4.10.0-40-generic linux-image-extra-4.10.0-28-generic linux-image-extra-4.10.0-33-generic linux-image-extra-4.10.0-35-generic
  linux-image-extra-4.10.0-37-generic linux-image-extra-4.10.0-40-generic linux-signed-image-4.10.0-33-generic linux-signed-image-4.10.0-35-generic linux-signed-image-4.10.0-37-generic
  linux-signed-image-4.10.0-40-generic
0 aggiornati, 0 installati, 24 da rimuovere e 59 non aggiornati.
6 non completamente installati o rimossi.
Dopo quest'operazione, verranno liberati 1.539 MB di spazio su disco.
Continuare? [S/n] s

[ALL AUTOREMOVE STUFF...]

And after

user@latitude5580:/boot$ df -h
File system Dim. Usati Dispon. Uso% Montato su
/dev/sda2 473M 142M 307M 32% /boot

Basically, it seems that with default settings and if the user doesn't perform an autoremove from command line there is the chance to fill the /boot partition. This should be avoided since not every user is familiar with command line

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: grub (not installed)
ProcVersionSignature: Ubuntu 4.13.0-26.29~16.04.2-generic 4.13.13
Uname: Linux 4.13.0-26-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.15
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Jan 18 12:53:39 2018
InstallationDate: Installed on 2017-03-02 (321 days ago)
InstallationMedia: Ubuntu 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215.2)
SourcePackage: grub
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
luca moscato (luca-moscato) wrote :
affects: grub (Ubuntu) → ubuntu
Revision history for this message
luca moscato (luca-moscato) wrote :

Could the issue be related to a config by unattended upgrades
https://askubuntu.com/questions/930854/does-unattended-upgrades-also-include-apt-get-autoremove

--
Whether or not unattended-upgrades will perform the cleanup (auto remove) is controlled by the Unattended-Upgrade::Remove-Unused-Dependencies setting in /etc/apt/apt.conf.d/50unattended-upgrades. Set it as follows to enable the cleanup -- and you should be able to remove the explicit autoremove cron-job:

Unattended-Upgrade::Remove-Unused-Dependencies "true";
--

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.