How to Check Free Space on /boot Before Upgrading to SynetoOS 6

Written By Sebastian Sime (Super Administrator)

Updated at July 10th, 2026

Table of Contents

→ Applies to: SynetoOS 6.x

PREREQUISITES
This check is mandatory before upgrading to SynetoOS 6.0.3. It can also be run at any time to verify available space on the /boot partition.

 

Symptom

During the upgrade from SynetoOS 5 to SynetoOS 6, the process might halt during the post-upgrade reconfiguration phase due to insufficient space in the /boot partition (~405 MB) caused by leftover older kernels. Upon reboot, the system fails to start normally and drops into a GRUB rescue console (grub>).

 

Solution

Step 1. Connect to SynetoOS appliance via SSH as admin

ssh admin@<your_ip_address_or_hostname>

 

Step 2. Get root privileges

sudo su -

 

Step 3. Check available space on the /boot partition

df -h /boot

EXAMPLE OUTPUT

[root@syneto ~]# df -h /boot
Filesystem      Size  Used Avail Use% Mounted on
/dev/md127       405M  298M   107M  74% /boot

If free space is below 150 MB, proceed with below steps to free up space before starting the upgrade.

 

Step 4. Check which kernels are currently installed

rpm -qa kernel

EXAMPLE OUTPUT

[root@syneto ~]# rpm -qa kernel
kernel-4.18.0-477.27.1.el8_8.x86_64
kernel-4.18.0-513.11.1.el8_9.x86_64
kernel-5.14.0-611.55.1.el9_7.x86_64

 

Step 5. Check which kernel is currently running

uname -r

EXAMPLE OUTPUT

[root@syneto ~]# uname -r
5.14.0-611.55.1.el9_7.x86_64

 

Step 6. Remove old unused kernels (replace <old-version> with versions found in Step 4 that do not match the output of Step 5)

dnf remove kernel-core-<old-version> kernel-modules-<old-version> kernel-<old-version>

EXAMPLE

dnf remove kernel-core-4.18.0-477.27.1.el8_8.x86_64 kernel-modules-4.18.0-477.27.1.el8_8.x86_64 kernel-4.18.0-477.27.1.el8_8.x86_64
dnf remove kernel-core-4.18.0-513.11.1.el8_9.x86_64 kernel-modules-4.18.0-513.11.1.el8_9.x86_64 kernel-4.18.0-513.11.1.el8_9.x86_64

IMPORTANT
Run this command for each old kernel to remove.
Never remove the kernel currently in use (the one shown in Step 5). Only remove kernels whose version does not match the output of Step 5.

 

Step 7. Check that /boot now has sufficient free space before proceeding with the upgrade

df -h /boot

EXAMPLE OUTPUT

[root@syneto ~]# df -h /boot
Filesystem      Size  Used Avail Use% Mounted on
/dev/md127       405M  178M   227M  44% /boot

Check if the free space is greater than 150 MB before starting the upgrade.