I’m trying to update the Kernel to 4.1.20-11 version as suggested form the auto update of Opensuse Leap 42.1.
However I’m running into this problem:
Subprocess failed. Error: RPM failed: installing package kernel-default-4.1.20-11.1.x86_64 needs 5MB on the /boot filesystem
df -H /boot
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 93M 42M 44M 50% /boot
Looks I have some little space in the boot partition where the older kernel is living:
rpm -qa | grep kernel
What should I do to solve this issue?
If I need to re-size the boot partition how can I do that without reinstalling Opensuse?
Far too small a boot. openSUSE keeps 2 kernels and associated files but when a new one arrives it has 3 until a successful boot when the oldest is removed. This allows a fall back if there are problem with the new kernel. I recommend 500 meg boot partition if you keep a separate one to allow for plenty of space. Therr is setting that allow you to set the number of kernel but you only have space for one thus no fall back.
I realize that the boot partition is too small.
The question is how can i re-size the partition without loosing the booting from Grub2.
I have and extended partition and I can shrink the partition before to make some room. However Gparted (live Cd) says that I could not be able to boot the system if I move the boot partition…
If you move boot then you have to reinstall grub2
Assuming legacy booting because you said you had an extended partition and assuming you installed grub to MBR
boot to a LEAP rescue and do a chroot
mount /dev/sda6 /mnt
# for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt$i; done
Enter chroot mode:
# chroot /mnt
# grub2-install /dev/sda
# grub2-mkconfig -o /boot/grub2/grub.cfg
Hi, this is my partition scheme. It’s not probably the most elegant, but it’s working.
Now I need to resize boot, and it shouldn’t be that hard with Gparted live CD.
Than I need to reinstall grub2 in the sdb partition where Linux live?
The boot is living the the main sda drive.
So could someone give me the right shell command to reinstall grub2 correctly using the openSuse rescue mode?
Thanks so much in advance.