Skip to content

Rocky Linux 10.2 Recovery Guide: Restoring KDE After Removing Workstation

Removing the GNOME Workstation group on Rocky Linux 10.2 pulled critical dependencies and left the system dropping into Emergency Mode. Bypass GRUB into a root shell, fix the failing /home mount, restore dnf and LVM tools, and reinstall KDE Plasma with SDDM.

On this page
  1. Root Cause Summary
  2. Step 1: Bypass Emergency Mode via GRUB
  3. Step 2: Remount Root and Bypass the Failing /home Mount
  4. Step 3: Restore PATH, dnf, LVM Tools, and KDE Plasma
  5. Step 4: Restore /home Mount and Enable Graphical Boot

This guide documents the troubleshooting steps used to recover a Rocky Linux 10.2 system that failed to boot into a graphical desktop after removing the GNOME Workstation environment group.


Root Cause Summary

Removing the Workstation group unpulled critical system dependencies, including the default dnf command wrapper, LVM utilities (lvm2), and desktop target configurations. Additionally, an unresolved mount reference for /home in /etc/fstab caused systemd to time out and drop into Emergency Mode, where login was blocked due to a locked root account.


Step 1: Bypass Emergency Mode via GRUB

Because the root account was locked in Emergency Mode, booting directly into a root bash shell allowed access to the file system without requiring a Live USB.

  1. Reboot the machine and highlight the standard Rocky Linux entry in the GRUB boot menu.
  2. Press e to edit the kernel boot parameters.
  3. Locate the line beginning with linux or linuxefi.
  4. Navigate to the end of that line, add a space, and append:
    rw init=/bin/bash
  5. Press Ctrl + X or F10 to boot into the direct bash-5.2# root shell.

Step 2: Remount Root and Bypass the Failing /home Mount

Once inside the root bash shell, remount the root partition as read-write and temporarily comment out the failing /home entry in /etc/fstab so the system can complete a normal boot.

  1. Remount the root file system with read and write permissions:
    Terminal window
    mount -o remount,rw /
  2. Comment out the /home mount line in /etc/fstab:
    Terminal window
    sed -i '/\/home/s/^/#/' /etc/fstab
  3. Verify the edit:
    Terminal window
    cat /etc/fstab
  4. Trigger an SELinux file system relabel on the next startup:
    Terminal window
    touch /.autorelabel
  5. Flush pending disk writes and force a reboot:
    Terminal window
    sync
    reboot -f

Step 3: Restore PATH, dnf, LVM Tools, and KDE Plasma

After rebooting and logging into the text console (tty), restore your shell environment paths and use dnf4 (which remained available in /usr/bin/dnf4) to reinstall the missing utilities and desktop packages.

  1. Export the standard system paths for the current terminal session:
    Terminal window
    export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  2. Reinstall the dnf wrapper and LVM management utilities:
    Terminal window
    sudo dnf4 install -y dnf lvm2
  3. Reinstall the KDE Plasma Workspaces and Core system groups:
    Terminal window
    sudo dnf4 groupinstall -y "KDE Plasma Workspaces" "Core" --skip-broken

Step 4: Restore /home Mount and Enable Graphical Boot

With LVM utilities and KDE packages restored, re-enable your /home mount and configure systemd to boot into the SDDM graphical login manager.

  1. Open /etc/fstab:
    Terminal window
    sudo nano /etc/fstab
  2. Remove the # symbol from the beginning of the /home mount line, then save and exit (Ctrl + O, Enter, Ctrl + X).
  3. Mount all file systems:
    Terminal window
    sudo mount -a
  4. Enable the SDDM display manager and set the default boot target to graphical:
    Terminal window
    sudo systemctl enable sddm
    sudo systemctl set-default graphical.target
  5. Reboot into the restored KDE Plasma desktop:
    Terminal window
    sudo reboot