On 03/02/2018 11:47 PM, Anton Aylward wrote:
On 02/03/18 08:43 AM, George from the tribe wrote:
Some kernel files are stored in /lib/modules. The kernel source modules are stored in /usr/src. I don't know where other kernel files may be stored. I have kernel-default, kernel-devel, kernel-source, and kernel-syms installed.
Is there somewhere that I can tell my system to only keep 3 kernels? There were like 6 old kernels in those locations. I went and manually deleted the old ones and it freed up some space.
DON'T DO THAT ! ! !
It messes up grub, boot menus and stuff.
Do it properly to maintain consistency: use 'purge-kennels'
Boy you were right about that. I have started using the 'purge-kernels' service now. Thanks to everyone for your advice on this. In trying to run purge-kernels, it kept failing on account of the different files I had deleted, making the system search for kernel files that weren't there. I then used zypper rm to get rid of the remaining older files that were listed in the purge-kernels status in order to finally get purge-kernels to start running. Oh, also, I had to create a file (I found an old thread that told how to do this) to make purge-kernels start working also. The status of the purge-kernels service kept saying that /boot/do_purge_kernels did not exist, so I had to run touch /boot/do_purge_kernels multiple times with each attempt to start the purge-kernels service, removing the rpms that were unnecessary using zypper, and finally it seems to have worked. I now have only 2 kernels installed: george@tribetrekDell:~> rpm -qa 'kernel*' | sort kernel-default-4.15.5-1.1.g52ce732.x86_64 kernel-default-4.15.7-1.1.ga36e160.x86_64 kernel-devel-4.15.5-1.1.g52ce732.noarch kernel-devel-4.15.7-1.1.ga36e160.noarch kernel-firmware-20180201-35.1.noarch kernel-macros-4.15.7-1.1.ga36e160.noarch kernel-source-4.15.5-1.1.g52ce732.noarch kernel-source-4.15.7-1.1.ga36e160.noarch And look, my disk use is freed up (thankfully!) george@tribetrekDell:~> df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 3.9G 8.0K 3.9G 1% /dev tmpfs 3.9G 15M 3.9G 1% /dev/shm tmpfs 3.9G 2.5M 3.9G 1% /run tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup /dev/sda6 22G 17G 4.1G 81% / /dev/sda1 196M 29M 168M 15% /boot/efi /dev/sda8 327G 306G 3.8G 99% /home /dev/sda3 64G 43G 21G 67% /windows/C tmpfs 785M 28K 785M 1% /run/user/1000 There was an old bug about the specific file not being created when trying to run purge-kernels, but I don't know if my problem might have been created on the system upgrade, rather than through the bug. I will watch and see if this happens again. One more question - I assume I should probably reinstall grub now that the kernels are purged? Or is that included as something that the purge-kernels service does automatically? It did not show any output indicating anything to that effect on the command line when I ran it. -- George Box: 42.3 | KDE Plasma 5.8 | AMD Phenom IIX4 | 64 | 32GB Laptop #1: 42.3 | Gnome 3.20 | AMD FX 7TH GEN | 64 | 32GB Laptop #2: 42.3 | Gnome 3.20 | Core i5 | 64 | 8GB -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org