how can I free up space on /boot as “openSUSE-2014-462” fails to install on openSUSE 12.3 x86_64
Posted by jpluimers on 2018/11/30
From a long time ago:
[WayBack] how can I free up space on /boot as “openSUSE-2014-462” fails to install on openSUSE 12.3 (x86_64):
Installation of kernel-desktop-3.7.10-1.40.1 failed: (with --nodeps --force) Error: Subprocess failed. Error: RPM failed: installing package kernel-desktop-3.7.10-1.40.1.x86_64 needs 16MB on the /boot filesystem
Based on that thread, I figured out the steps:
… it did get me started together with
- http://askubuntu.com/questions/345588/what-is-the-safest-way-to-clean-up-boot-partition
- https://www.suse.com/documentation/opensuse121/book_tuning/data/cha_tuning_multikernel_zypper.html
- https://en.opensuse.org/images/1/17/Zypper-cheat-sheet-1.pdf
- https://en.opensuse.org/images/3/30/Zypper-cheat-sheet-2.pdf
Since I’m a command-line and keyboard guy…
snap:/boot # cat /proc/sys/kernel/osrelease 3.7.10-1.36-desktop snap:/boot # uname -r 3.7.10-1.36-desktop snap:/boot # zypper se -si 'kernel*desktop*' Loading repository data... Reading installed packages... S | Name | Type | Version | Arch | Repository --+----------------+---------+---------------+--------+--------------------- i | kernel-desktop | package | 3.7.10-1.36.1 | x86_64 | openSUSE-12.3-Update i | kernel-desktop | package | 3.7.10-1.32.1 | x86_64 | openSUSE-12.3-Update i | kernel-desktop | package | 3.7.10-1.28.1 | x86_64 | openSUSE-12.3-Update
I wondered about the discrepancy between the naming of the kernel packages (kernel-{kind}-{version}) and the files in /boot ({file}-{version}-{kind}). Like any software probably hysterically grown over time.
Deducting the right package, I removed the oldest kernel-desktop:
snap:/boot # zypper remove kernel-desktop-3.7.10-1.28.1 Loading repository data... Reading installed packages... Resolving package dependencies... The following package is going to be REMOVED: kernel-desktop-3.7.10-1.28.1 1 package to remove. After the operation, 153.0 MiB will be freed. Continue? [y/n/? shows all options] (y): y (1/1) Removing kernel-desktop-3.7.10-1.28.1 ..............................................................................................................................................................................................................................[done] There are some running programs that use files deleted by recent upgrade. You may wish to restart some of them. Run 'zypper ps' to list these programs.
After a reboot the /boot directory now contains one kernel less:
snip:/boot # ls -altotal 89922 drwxr-xr-x 5 root root 3072 Aug 16 20:06 . drwxr-xr-x 1 root root 166 Jan 3 2013 .. -rw-r--r-- 1 root root 2532218 May 12 16:58 System.map-3.7.10-1.32-desktop -rw-r--r-- 1 root root 2532292 Jun 13 16:14 System.map-3.7.10-1.36-desktop -rw------- 1 root root 512 Dec 29 2012 backup_mbr lrwxrwxrwx 1 root root 1 Apr 8 21:50 boot -> . -rw-r--r-- 1 root root 1484 Feb 26 2013 boot.readme -rw-r--r-- 1 root root 136097 May 12 15:18 config-3.7.10-1.32-desktop -rw-r--r-- 1 root root 136097 Jun 13 15:19 config-3.7.10-1.36-desktop drwxr-xr-x 2 root root 1024 Apr 8 21:50 grub drwxr-xr-x 7 root root 1024 Aug 16 20:06 grub2 lrwxrwxrwx 1 root root 5 Apr 8 21:41 grub2-efi -> grub2 lrwxrwxrwx 1 root root 26 Jul 17 22:59 initrd -> initrd-3.7.10-1.36-desktop -rw------- 1 root root 31986509 May 25 16:13 initrd-3.7.10-1.32-desktop -rw------- 1 root root 31987330 Jul 17 22:59 initrd-3.7.10-1.36-desktop drwx------ 2 root root 12288 Dec 29 2012 lost+found -rw-r--r-- 1 root root 621056 Apr 8 21:51 message -rw-r--r-- 1 root root 241500 May 12 17:19 symvers-3.7.10-1.32-desktop.gz -rw-r--r-- 1 root root 241500 Jun 13 16:26 symvers-3.7.10-1.36-desktop.gz -rw-r--r-- 1 root root 516 May 12 17:19 sysctl.conf-3.7.10-1.32-desktop -rw-r--r-- 1 root root 516 Jun 13 16:26 sysctl.conf-3.7.10-1.36-desktop -rw-r--r-- 1 root root 5816224 May 12 17:18 vmlinux-3.7.10-1.32-desktop.gz -rw-r--r-- 1 root root 5815816 Jun 13 16:26 vmlinux-3.7.10-1.36-desktop.gz lrwxrwxrwx 1 root root 27 Jul 17 22:58 vmlinuz -> vmlinuz-3.7.10-1.36-desktop -rw-r--r-- 1 root root 5001016 May 12 20:04 vmlinuz-3.7.10-1.32-desktop -rw-r--r-- 1 root root 5000216 Jun 13 18:22 vmlinuz-3.7.10-1.36-desktop
–jeroen
via: how can I free up space on /boot as “openSUSE-2014-462” fails to install on openSUSE 12.3 x86_64.






Leave a comment