The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,444 other followers

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:

[WayBackhow 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

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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: