Fedora upgrade, dual boot etc

Hello friends,

I need to update my Fedora installation. The root partition has about 10% of 50GB space left. I have a dual boot installation, Win 10 (it’s only there because it came with the computer and it’s legal) is taking up half of my disk space, but I don’t even use it…

I would need tips and trick on how to remove the Windows partition and merge that space with the root partition… I read about it, but i’d really appreciate some step-by-step instructions, I’d really like to keep my existing Fedora installation(and update to the latest version) and not start from scrap.

I can post screenshots and any information if needed…

Several bits of information are needed before proceeding.
Please post them all as preformatted text using copy & paste with the </> button as much as feasible.
lsblk -f
df -h
inxi -Fzxx

Once we can see the details then suggestions on how to proceed may be forthcoming.

1 Like
ugabrovec@office001:~$ lsblk -f
NAME                      FSTYPE      FSVER    LABEL                   UUID                                   FSAVAIL FSUSE% MOUNTPOINTS
loop0                     squashfs    4.0                                                                           0   100% /var/lib/snapd/snap/bare/5
loop1                     squashfs    4.0                                                                           0   100% /var/lib/snapd/snap/core/16928
loop2                     squashfs    4.0                                                                           0   100% /var/lib/snapd/snap/core/17200
loop3                     squashfs    4.0                                                                           0   100% /var/lib/snapd/snap/core18/2829
loop4                     squashfs    4.0                                                                           0   100% /var/lib/snapd/snap/core18/2846
loop5                     squashfs    4.0                                                                           0   100% /var/lib/snapd/snap/core22/1722
loop6                     squashfs    4.0                                                                           0   100% /var/lib/snapd/snap/core22/1748
loop7                     squashfs    4.0                                                                           0   100% /var/lib/snapd/snap/gnome-3-28-1804/161
loop8                     squashfs    4.0                                                                           0   100% /var/lib/snapd/snap/gnome-3-28-1804/198
loop9                     squashfs    4.0                                                                           0   100% /var/lib/snapd/snap/gnome-3-34-1804/90
loop10                    squashfs    4.0                                                                           0   100% /var/lib/snapd/snap/gnome-3-34-1804/93
loop11                    squashfs    4.0                                                                           0   100% /var/lib/snapd/snap/gtk-common-themes/1519
loop12                    squashfs    4.0                                                                           0   100% /var/lib/snapd/snap/gtk-common-themes/1535
loop13                    squashfs    4.0                                                                           0   100% /var/lib/snapd/snap/mountain-tapir/28
loop14                    squashfs    4.0                                                                           0   100% /var/lib/snapd/snap/skype/380
loop15                    squashfs    4.0                                                                           0   100% /var/lib/snapd/snap/skype/382
loop16                    squashfs    4.0                                                                           0   100% /var/lib/snapd/snap/snapd/23258
loop17                    squashfs    4.0                                                                           0   100% /var/lib/snapd/snap/snapd/23545
loop18                    squashfs    4.0                                                                           0   100% /var/lib/snapd/snap/whatsdesk/25
loop19                    squashfs    4.0                                                                           0   100% /var/lib/snapd/snap/whatsdesk/28
loop20                    squashfs    4.0                                                                           0   100% /var/lib/snapd/snap/wine-platform-6-stable/19
loop21                    squashfs    4.0                                                                           0   100% /var/lib/snapd/snap/wine-platform-runtime/396
loop22                    squashfs    4.0                                                                           0   100% /var/lib/snapd/snap/wine-platform-runtime/397
sdb                                                                                                                          
└─sdb1                    ntfs                 Seagate Expansion Drive 5A22DB2D22DB0CBF                                      
sr0                                                                                                                          
zram0                                                                                                                        [SWAP]
nvme0n1                                                                                                                      
├─nvme0n1p1               vfat        FAT32    SYSTEM                  8E51-41FD                                60,2M    83% /boot/efi
├─nvme0n1p2                                                                                                                  
├─nvme0n1p3               ntfs                 Windows                 8C1A13571A133DA0                                      
├─nvme0n1p4               ntfs                 Windows RE tools        90E84A57E84A3C2A                                      
├─nvme0n1p5               ntfs                 Recovery Image          844816B84816A8C6                                      
├─nvme0n1p6               ext4        1.0                              076b21f9-8d72-4c0e-853b-20f3863b512b    642,9M    27% /boot
└─nvme0n1p7               LVM2_member LVM2 001                         77Q22L-b66l-w5cz-E0E6-6o4t-mKlp-Vhw4n5                
  ├─fedora_office001-root ext4        1.0                              552b71fa-865d-4283-a5be-4e9ad7bb3c9e      1,1G    93% /
  ├─fedora_office001-swap swap        1                                7fa213c8-03d1-401e-9967-18d8eb019ded                  [SWAP]
  └─fedora_office001-home ext4        1.0                              1d6a53f5-b6ac-4e68-bd75-a2d721a896f6     17,6G    51% /home
ugabrovec@office001:~$ df -h
Filesystem                         Size  Used Avail Use% Mounted on
devtmpfs                           4,0M     0  4,0M   0% /dev
tmpfs                              3,9G  201M  3,7G   6% /dev/shm
tmpfs                              1,6G  1,9M  1,6G   1% /run
efivarfs                           150K   84K   62K  58% /sys/firmware/efi/efivars
/dev/mapper/fedora_office001-root   49G   46G  1,2G  98% /
/dev/loop0                         128K  128K     0 100% /var/lib/snapd/snap/bare/5
/dev/loop2                         105M  105M     0 100% /var/lib/snapd/snap/core/17200
/dev/loop6                          74M   74M     0 100% /var/lib/snapd/snap/core22/1748
/dev/loop4                          56M   56M     0 100% /var/lib/snapd/snap/core18/2846
/dev/loop1                         104M  104M     0 100% /var/lib/snapd/snap/core/16928
/dev/loop3                          56M   56M     0 100% /var/lib/snapd/snap/core18/2829
/dev/loop5                          74M   74M     0 100% /var/lib/snapd/snap/core22/1722
/dev/loop7                         165M  165M     0 100% /var/lib/snapd/snap/gnome-3-28-1804/161
/dev/loop8                         165M  165M     0 100% /var/lib/snapd/snap/gnome-3-28-1804/198
/dev/loop9                         219M  219M     0 100% /var/lib/snapd/snap/gnome-3-34-1804/90
/dev/loop10                        219M  219M     0 100% /var/lib/snapd/snap/gnome-3-34-1804/93
/dev/loop11                         66M   66M     0 100% /var/lib/snapd/snap/gtk-common-themes/1519
/dev/loop12                         92M   92M     0 100% /var/lib/snapd/snap/gtk-common-themes/1535
/dev/loop13                         95M   95M     0 100% /var/lib/snapd/snap/mountain-tapir/28
/dev/loop14                        182M  182M     0 100% /var/lib/snapd/snap/skype/380
/dev/loop15                        182M  182M     0 100% /var/lib/snapd/snap/skype/382
/dev/loop16                         45M   45M     0 100% /var/lib/snapd/snap/snapd/23258
/dev/loop17                         45M   45M     0 100% /var/lib/snapd/snap/snapd/23545
/dev/loop18                         83M   83M     0 100% /var/lib/snapd/snap/whatsdesk/25
/dev/loop19                         83M   83M     0 100% /var/lib/snapd/snap/whatsdesk/28
/dev/loop20                        323M  323M     0 100% /var/lib/snapd/snap/wine-platform-6-stable/19
/dev/loop21                        347M  347M     0 100% /var/lib/snapd/snap/wine-platform-runtime/396
/dev/loop22                        347M  347M     0 100% /var/lib/snapd/snap/wine-platform-runtime/397
tmpfs                              3,9G   11M  3,9G   1% /tmp
/dev/nvme0n1p6                     974M  264M  643M  30% /boot
/dev/mapper/fedora_office001-home   40G   21G   18G  54% /home
/dev/nvme0n1p1                     356M  296M   61M  84% /boot/efi
tmpfs                              782M  5,7M  776M   1% /run/user/1000
ugabrovec@office001:~$ inxi -Fzxx
System:
  Kernel: 6.8.9-100.fc38.x86_64 arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
  Desktop: KDE Plasma v: 6.2.4 tk: Qt v: N/A wm: kwin_wayland dm: SDDM
    Distro: Fedora Linux 40 (Workstation Edition)
Machine:
  Type: Desktop System: HP product: HP EliteDesk 800 G3 SFF v: N/A
    serial: <superuser required> Chassis: type: 4 serial: <superuser required>
  Mobo: HP model: 8299 v: KBC Version 06.15 serial: <superuser required>
    part-nu: 1HK65EA#BED UEFI: HP v: P01 Ver. 02.06 date: 06/09/2017
CPU:
  Info: quad core model: Intel Core i7-7700 bits: 64 type: MT MCP
    arch: Kaby Lake rev: 9 cache: L1: 256 KiB L2: 1024 KiB L3: 8 MiB
  Speed (MHz): avg: 1528 min/max: 800/4200 cores: 1: 1528 2: 1528 3: 1528
    4: 1528 5: 1528 6: 1528 7: 1528 8: 1528 bogomips: 57600
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3
Graphics:
  Device-1: Intel HD Graphics 630 vendor: Hewlett-Packard driver: i915
    v: kernel arch: Gen-9.5 ports: active: DP-1,DP-2
    empty: DP-3,HDMI-A-1,HDMI-A-2 bus-ID: 00:02.0 chip-ID: 8086:5912
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 24.1.4
    compositor: kwin_wayland driver: X: loaded: modesetting unloaded: fbdev,vesa
    dri: iris gpu: i915 d-rect: 3840x1080 display-ID: 0
  Monitor-1: DP-1 pos: right model: Samsung S24F350 res: 1920x1080 hz: 60
    dpi: 94 diag: 598mm (23.5")
  Monitor-2: DP-2 pos: primary,left model: Samsung S24F350 res: 1920x1080
    hz: 60 dpi: 94 diag: 598mm (23.5")
  API: EGL v: 1.5 platforms: device: 0 drv: iris device: 1 drv: swrast gbm:
    drv: iris surfaceless: drv: iris wayland: drv: iris x11: drv: iris
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: intel mesa v: 24.1.7 glx-v: 1.4
    direct-render: yes renderer: Mesa Intel HD Graphics 630 (KBL GT2)
    device-ID: 8086:5912 display-ID: :0.0
  API: Vulkan v: 1.3.296 surfaces: xcb,xlib,wayland device: 0
    type: integrated-gpu driver: N/A device-ID: 8086:5912 device: 1 type: cpu
    driver: N/A device-ID: 10005:0000
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor wl: wayland-info x11: xdriinfo,
    xdpyinfo, xprop, xrandr
Audio:
  Device-1: Intel 200 Series PCH HD Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a2f0
  API: ALSA v: k6.8.9-100.fc38.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.0.9 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Intel Ethernet I219-LM vendor: Hewlett-Packard driver: e1000e
    v: kernel port: N/A bus-ID: 00:1f.6 chip-ID: 8086:15e3
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: virbr0 state: down mac: <filter>
Drives:
  Local Storage: total: 2.05 TiB used: 65.97 GiB (3.1%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLW256HEHP-000H1
    size: 238.47 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 28.9 C
  ID-2: /dev/sdb vendor: Seagate model: ST2000DM001-1E6164 size: 1.82 TiB
    type: USB rev: 2.1 spd: 480 Mb/s lanes: 1 serial: <filter>
Partition:
  ID-1: / size: 48.91 GiB used: 45.3 GiB (92.6%) fs: ext4 dev: /dev/dm-0
    mapped: fedora_office001-root
  ID-2: /boot size: 973.4 MiB used: 263.3 MiB (27.0%) fs: ext4
    dev: /dev/nvme0n1p6
  ID-3: /boot/efi size: 356 MiB used: 295.8 MiB (83.1%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 39.77 GiB used: 20.12 GiB (50.6%) fs: ext4
    dev: /dev/dm-2 mapped: fedora_office001-home
Swap:
  ID-1: swap-1 type: partition size: 7.8 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/dm-1 mapped: fedora_office001-swap
  ID-2: swap-2 type: zram size: 7.63 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 41.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 8 GiB available: 7.63 GiB used: 3.96 GiB (51.8%)
  Processes: 323 Power: uptime: 1h 0m wakeups: 0 Init: systemd v: 255
    target: graphical (5) default: graphical
  Packages: pm: rpm pkgs: N/A note: see --rpm pm: flatpak pkgs: 18
    Compilers: clang: 18.1.8 gcc: 14.2.1 Shell: Bash v: 5.2.26
    running-in: konsole inxi: 3.3.37

I am assuming you want to upgrade your fedora system to the latest version as well as removing the windows installation. If that assumption is correct then the guidance below should assist in doing so.

First you should disable snapd and remove the 23 snap images to free up existing space.
I see that your root file system is at 98% so freeing up space should be your first step.
You also seem to have an excessive amount of space used in /boot/efi with 296M used there. My system only uses

$ df -h /boot/efi
Filesystem      Size  Used Avail Use% Mounted on
/dev/nvme0n1p1  335M   20M  316M   6% /boot/efi
  1. Disable snapd with sudo systemctl disable snapd (note that I am not familiar with snap so I am guessing at the service name to disable that.) if it is not snapd.service then you will have to identify the proper service name to disable it.
  2. remove all the snap images with sudo rm -r /var/lib/snapd/*

After snap has been managed then do a full and complete update of the system before proceeding. sudo dnf upgrade --refresh

Now it is time to deal with windows.

  1. remove the windows efi data with sudo rm -r /boot/efi/Microsoft
    which should remove that directory and all its content so the microsoft boot loader is no longer seen by grub.
  2. Use gparted and remove the windows partitions. Those partitions to be removed are nvme0n1p2, p3, p4, & p5. Do not remove p1, p6, or p7 since all those are your fedora installation.
  3. Create a new partition in the space that previously was allocated to windows. Do not format it as a file system. Then exit from gparted.
  4. Using LVM create a new PV using the newly defined partition, then add it to the existing VG (fedora_office001). At this point you now should have free space within the VG that can be used as needed.

All the above is preparation for the upgrade of the fedora 38 system to fedora 41.

To perform the upgrade to fedora 41 (you may stop 40 if you prefer – it has only about 3 months of support remaining before it is declared EOL) do the following.

  1. sudo dnf system-upgrade download --releasever=40 to download all the necessary rpms for the upgrade.
  2. After step 1 completes successfully then do the actual upgrade with sudo dnf system-upgrade reboot
  3. reboot again after the upgrade completes and test that it is as expected. Ensure f40 is fully upgraded with sudo dnf upgrade --refresh
    If there are any problems noted fix them here before moving on.

The last step would be up upgrade to f41 which is done by repeating steps 1-3 just above but use --releasever=41

Just a note of caution.
I have experienced some users who fail to observe an error and blindly continue which can exacerbate any noted problems. All problems should be corrected and the step involved be completed successfully before moving to the next step.

An additional note.
You probably do not need to use a physical swap. Fedora uses zram in RAM for swap and I see you do have /dev/zram0 used in that manner.
Unless you are using a severely loaded system where zram is not adequate, or if you are intending to hibernate the system instead of a full shutdown, then a physical swap space is usually not required. You may consider disabling swap on fedora_office001-swap and removing that LV as well as removing its entry from /etc/fstab.
The command free should show how much swap is actually used and assist in this decision. The inxi command seems to show that no swap was in use at that time.

2 Likes

Thank you for the detailed instruction, I will try things out tomorrow. I will probably check back on a few steps.

But in general I’m guessing something went wrong somewhere, because I already updated to Fedora 40.

You may have old snaps installed. Run snap list --all | grep disabled. This will be a list of old snaps you no longer need. To remove an old snap run
snap remove --revision "revision" "name" . For example to remove the old skype version run snap remove --revision 380 skype.

The the snaps will be automatically updated, but the old version will remain until you manually remove them.

1 Like

I did remove the snap images, it seems I have deleted Skype & Whatsapp in the process but that doesn’t really matter.

/boot/efi still uses a lot of space though, any ideas how to free that space, what to do?

Filesystem      Size  Used Avail Use% Mounted on
/dev/nvme0n1p1  356M  297M   60M  84% /boot/efi

I did the update with sudo dnf upgrade --refresh. (I am aware that it is a necessary step before upgrading?)
Can I proceed to removing the windows efi data with sudo rm -r /boot/efi/Microsoft?

Thank you in advance for all your help.

I guess that won’t work if I disabled snapd?

So you shouldn’t do that. However, the snapd service is socket activated so it will just start again when running the snap command.

The only proper way to maintain snap packages is through the snap command, and just removing files related to some snap package could leave behind bits and pieces that could cause problems.

1 Like

I did some searches and helped myself, everything OK by now.

Now I have those 120GB of unallocated space within the existing VG(fedora_office001). I’d like to merge

  • some of that space to /dev/fedora_office001/home and
  • some of that space to /dev/fedora_office001/root.

Is that possible and how do I proceed? Thanks in advance for any help…

As long as your intent is to completely remove windows that can be done at any time before upgrading to f41 (or even after)

You are using LVM so hopefully you are familiar with at least some of the LVM commands

$ ls /sbin/vg* /sbin/lv* /sbin/pv*
/sbin/lvchange   /sbin/lvmdevices      /sbin/lvremove  /sbin/pvdisplay          /sbin/vgcfgbackup   /sbin/vgextend         /sbin/vgrename
/sbin/lvconvert  /sbin/lvmdiskscan     /sbin/lvrename  /sbin/pvfs2-client       /sbin/vgcfgrestore  /sbin/vgimport         /sbin/vgs
/sbin/lvcreate   /sbin/lvmdump         /sbin/lvresize  /sbin/pvfs2-client-core  /sbin/vgchange      /sbin/vgimportclone    /sbin/vgscan
/sbin/lvdisplay  /sbin/lvm_import_vdo  /sbin/lvs       /sbin/pvmove             /sbin/vgck          /sbin/vgimportdevices  /sbin/vgsplit
/sbin/lvextend   /sbin/lvmpolld        /sbin/lvscan    /sbin/pvremove           /sbin/vgconvert     /sbin/vgmerge
/sbin/lvm        /sbin/lvmsadc         /sbin/pvchange  /sbin/pvresize           /sbin/vgcreate      /sbin/vgmknodes
/sbin/lvmconfig  /sbin/lvmsar          /sbin/pvck      /sbin/pvs                /sbin/vgdisplay     /sbin/vgreduce
/sbin/lvmdbusd   /sbin/lvreduce        /sbin/pvcreate  /sbin/pvscan             /sbin/vgexport      /sbin/vgremove

According to your df output above you originally had 49G for / and 40G for /home
The inxi output shows that nvme0n1 is 238GiB.
Assuming that the output of sudo vgscan operates as it does for me you must have scads of free extents in that VG. You can use the lvextend command to enlarge the LVs to whatever size you deem appropriate.

Use the man page for each command you wish to use to learn how they work and the options available. (man lvextend)

1 Like
ugabrovec@office001:~$ sudo vgscan
  Found volume group "fedora_office001" using metadata type lvm2
ugabrovec@office001:~$
ugabrovec@office001:~$ sudo vgs
  VG               #PV #LV #SN Attr   VSize   VFree   
  fedora_office001   2   3   0 wz--n- 218,62g <120,11g
ugabrovec@office001:~$ 
ugabrovec@office001:~$ sudo lvs
  LV   VG               Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  home fedora_office001 -wi-ao---- <40,71g                                                    
  root fedora_office001 -wi-ao----  50,00g                                                    
  swap fedora_office001 -wi-ao----   7,80g                                                    
ugabrovec@office001:~$

As far as I understand, I could now use

lvextend -l +45%FREE /dev/fedora_office001/home

to extend the LV for 45% of the free space and the same for

/dev/fedora_office001/root

Correct me if I’m wrong please, I have the full disk image(with the Windows partition) backed up, but I’d really like to spare myself with getting that back and don’t want to waste time restoring that image. As for partitions, it’s a bit of a grey area for me, that’s why I’m asking for help, I’m also extremly grateful for all your contribution.

Assuming that I understand correctly, partitions should be unmounted before making any changes, right? Can I do that in KDE Partition Manager and then run the commands in the terminal or what is the right way of doing that?

Normally I specify the actual size I want for each LV
lvextend -L +50G -r fedora_office001/root should expand the LV & the file system it contains by adding 50 GB in a single step. To verify that it would be successful add the -t option to do a dry run and test the command before committing it.
EXAMPLE $ sudo lvextend -L +10G -r -t fedora_root/root

NOTE the -r option which resizes the file system. Without it you have to manually expand the file system after the LV is resized.

You certainly may use the -l +45% if you prefer

With LVM you can enlarge your LVs & file systems while the system is operating. Simply boot to the system, then use the lvextend command to expand the volumes.

1 Like

Just to let you all know, all of the above with a lot of other searches helped, so I consider it a SOLUTION. Thank you all for that.

ugabrovec@office001:~$ inxi -F
System:
  Host: office001 Kernel: 6.8.9-100.fc38.x86_64 arch: x86_64 bits: 64
  Desktop: KDE Plasma v: 6.3.1 Distro: Fedora Linux 41 (Workstation Edition)
Partition:
  ID-1: / size: 131.59 GiB used: 41.31 GiB (31.4%) fs: ext4 dev: /dev/dm-0
  ID-2: /boot size: 973.4 MiB used: 263.3 MiB (27.0%) fs: ext4
    dev: /dev/nvme0n1p6
  ID-3: /boot/efi size: 356 MiB used: 271.1 MiB (76.1%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 58.76 GiB used: 24.75 GiB (42.1%) fs: ext4
    dev: /dev/dm-2

I only copy-pasted the relevant output of the inxi command. As you can see, I also upgraded to Fedora 41 too, but it does not upgrade the kernel… Any ideas? (Should I start a separate topic on that, please let me know.)

ugabrovec@office001:~$ sudo dnf list installed "kernel-*"
Updating and loading repositories:
Repositories loaded.
Installed packages
kernel-core.x86_64                   6.8.9-100.fc38  updates
kernel-core.x86_64                   6.13.4-100.fc40 updates
kernel-core.x86_64                   6.13.4-200.fc41 updates
kernel-headers.x86_64                6.13.3-200.fc41 updates
kernel-modules.x86_64                6.8.9-100.fc38  updates
kernel-modules.x86_64                6.13.4-100.fc40 updates
kernel-modules.x86_64                6.13.4-200.fc41 updates
kernel-modules-core.x86_64           6.8.9-100.fc38  updates
kernel-modules-core.x86_64           6.13.4-100.fc40 updates
kernel-modules-core.x86_64           6.13.4-200.fc41 updates
kernel-modules-extra.x86_64          6.8.9-100.fc38  updates
kernel-modules-extra.x86_64          6.13.4-100.fc40 updates
kernel-modules-extra.x86_64          6.13.4-200.fc41 updates
kernel-srpm-macros.noarch            1.0-24.fc41     fedora
kernel-tools.x86_64                  6.13.4-200.fc41 updates
kernel-tools-libs.x86_64             6.13.4-200.fc41 updates

Available packages
kernel-cross-headers.x86_64          6.13.3-200.fc41 updates
kernel-debug.x86_64                  6.13.4-200.fc41 updates
kernel-debug-core.x86_64             6.13.4-200.fc41 updates
kernel-debug-devel.x86_64            6.13.4-200.fc41 updates
kernel-debug-devel-matched.x86_64    6.13.4-200.fc41 updates
kernel-debug-modules.x86_64          6.13.4-200.fc41 updates
kernel-debug-modules-core.x86_64     6.13.4-200.fc41 updates
kernel-debug-modules-extra.x86_64    6.13.4-200.fc41 updates
kernel-debug-modules-internal.x86_64 6.13.4-200.fc41 updates
kernel-debug-uki-virt.x86_64         6.13.4-200.fc41 updates
kernel-debug-uki-virt-addons.x86_64  6.13.4-200.fc41 updates
kernel-devel.x86_64                  6.13.4-200.fc41 updates
kernel-devel-matched.x86_64          6.13.4-200.fc41 updates
kernel-doc.noarch                    6.13.4-200.fc41 updates
kernel-headers.i686                  6.11.3-300.fc41 fedora
kernel-modules-internal.x86_64       6.13.4-200.fc41 updates
kernel-rpm-macros.noarch             205-24.fc41     fedora
kernel-selftests-internal.x86_64     6.13.4-200.fc41 updates
kernel-tools-libs-devel.x86_64       6.13.4-200.fc41 updates
kernel-uki-virt.x86_64               6.13.4-200.fc41 updates
kernel-uki-virt-addons.x86_64        6.13.4-200.fc41 updates
ugabrovec@office001:~$ 

It also produces the following warning during boot:

Also, GRUB loader will need to be updated, any help on that will be appreciated.

This would appear to be part of your issue and is still on-topic for this thread.

I would guess that somehow you have managed to alter the default /boot/efi/EFI/fedora/grub.cfg file so it is not acting as a pointer but is actually controlling grub.
This can be determined by using sudo cat /boot/efi/EFI/fedora/grub.cfg.
If it looks something like the below then it would be OK but if it is different and much longer then it is not default.

$ sudo cat /boot/efi/EFI/fedora/grub.cfg
search --no-floppy --root-dev-only --fs-uuid --set=dev c4eb1f4d-eaab-4b8a-a952-302402d8844d
set prefix=($dev)/grub2
export $prefix
configfile $prefix/grub.cfg

The function of that pointer file is to redirect grub to the actual grub.cfg file located at /boot/grub2/grub.cfg. If it has been altered then the system never updates it during kernel updates as it remains static once installed and thus newer kernels never get booted.

The fix is really simple

  1. sudo rm /boot/efi/EFI/fedora/grub.cfg /boot/grub2/grub.cfg
  2. sudo dnf reinstall grub2-common
  3. reboot

Any time a user uses the grub2-mkconfig command the output must be directed to /boot/grub2/grub.cfg or to one of the grub cfg links in /etc (/etc/grub2.cfg or /etc/grub2-efi.cfg).

That file under /boot/efi was altered from the actual grub.cfg file to a pointer file several releases back (at least as far back as f34) and does not get altered by system updates since that time.

1 Like

It looks the same to me:

search --no-floppy --root-dev-only --fs-uuid --set=dev 076b21f9-8d72-4c0e-853b-20f3863b512b
set prefix=($dev)/grub2
export $prefix
configfile $prefix/grub.cfg

So I tried the above steps too but makes no difference, the grub loader is still the same and it “boots to a 6.8.9-100.fc38.x86_64 kernel”…

Check what is set for the default boot kernel
sudo grubby --default-kernel
and
sudo grubby --default-index

You also may need to open the grub menu during boot and select a different kernel for booting

1 Like
ugabrovec@office001:~$ sudo grubby --default-kernel
/boot/vmlinuz-6.8.9-100.fc38.x86_64
ugabrovec@office001:~$ 
ugabrovec@office001:~$ sudo grubby --default-index
0
ugabrovec@office001:~$ 

What is the result of cat /boot/efi/EFI/fedora/grub.cfg?

1 Like
ugabrovec@office001:~$ sudo cat /boot/efi/EFI/fedora/grub.cfg
search --no-floppy --root-dev-only --fs-uuid --set=dev 076b21f9-8d72-4c0e-853b-20f3863b512b
set prefix=($dev)/grub2
export $prefix
configfile $prefix/grub.cfg
ugabrovec@office001:~$