Recover a Fedora Server That Won't Boot
Fix a Fedora VPS that won't boot from the provider console: GRUB and BLS entries, the dracut shell, systemd emergency mode, Btrfs roots and SELinux relabels.
Why a Fedora server won't boot: find where it stops
When a Fedora server won't boot, the fix depends on where the boot stops. Open the provider's web console and watch one full boot. The last screen you see puts you in one of four places: the GRUB (GRand Unified Bootloader) menu, the dracut emergency shell, systemd emergency mode, or a long pause while SELinux (Security-Enhanced Linux) relabels the disk. Each place has its own causes, so find yours first and skip the rest.
This guide is for a Fedora VPS (virtual private server) that you can reach only through that console. The commands are written for Fedora 44 and Fedora 45. Fedora 45 was announced on 3 November 2026 and Fedora 44 on 28 April 2026. As of 6 December 2026, Fedora 43 is past its end of life (2 December 2026), and so is Fedora 42 (28 May 2026). A server on either release gets no more updates, security fixes included. Fix the boot first, then plan the upgrade.
If you know the Ubuntu version of this problem, the general flow in recovering a VPS that won't boot after a kernel update still applies. Fedora differs in the parts underneath. Boot entries are separate files. The GRUB config command has another name. The initramfs is built by dracut. The root filesystem may be a Btrfs subvolume.
Take a snapshot before you change anything
If your provider's panel can snapshot the server, take one now. Every fix below writes to the disk, and a snapshot lets you undo a wrong guess. A Btrfs snapshot on the same disk does not replace it. The Btrfs documentation says it directly: "A snapshot is not a backup." At first, a snapshot and its original share the same data blocks, so damage to those blocks reaches both.
The Fedora boot parts that Ubuntu does not have
Boot entries are files. Fedora made the Boot Loader Specification (BLS) its default in Fedora 30. Each installed kernel gets a small entry file, normally in /boot/loader/entries/. The grubby tool edits those files when a kernel is installed or removed. On a running system you can look at them directly:
ls /boot/loader/entries/
sudo grubby --info=ALL
sudo grubby --default-kernelgrubby --info=ALL shows the details of every boot entry. grubby --default-kernel prints the path of the kernel that boots by default. Each entry file has an options line with kernel arguments. Read one with cat and note where root= and any rootflags= live on your release.
There is one real grub.cfg. Since Fedora 34, the full GRUB config sits in /boot/grub2/grub.cfg on both BIOS (Basic Input/Output System) and UEFI (Unified Extensible Firmware Interface) machines. On UEFI, /boot/efi/EFI/fedora/grub.cfg is a small stub that loads the real file. Fedora has no update-grub command. The command that writes the config is:
sudo grub2-mkconfig -o /boot/grub2/grub.cfgOn a UEFI server, cat /boot/efi/EFI/fedora/grub.cfg should print a few short lines, not a full menu. To see which firmware type you have, run [ -d /sys/firmware/efi ] && echo UEFI || echo BIOS.
The initramfs is built by dracut. The initramfs is the small filesystem the kernel loads first. Its job is to find your real root filesystem and mount it. If the initramfs has no driver for your disk, or it looks for the wrong root, the boot stops inside it.
The root may be Btrfs. Fedora Cloud images switched to Btrfs in Fedora 35, and that change excluded Fedora Server. A provider can build its image from either edition, so do not guess. Check your own root:
findmnt -no FSTYPE /The output is the filesystem type of /, for example btrfs or xfs. On Btrfs, look for rootflags= in the entry's options line. That argument passes mount options to the initramfs, and on Btrfs it can name the subvolume to mount as root.
Run these checks today, on a healthy server, and save the output somewhere off the box. During a failed boot you need the root UUID (universally unique identifier) and the filesystem type, plus the subvolume name on Btrfs. You cannot look them up then.
Stop 1: the GRUB menu, or a bare GRUB prompt
The menu shows, and the newest kernel fails. Pick the previous kernel in the menu. If the server boots on it, the problem is the new kernel or its initramfs, not your disk. Make the working kernel the default with grubby, as rolling back Fedora updates with dnf history and grubby explains. Then read the failed boot's messages with the kernel log on a VPS. If your console never shows the menu, use the rescue system below instead.
You need to change one kernel argument for one boot. Select the entry and press e to open the entry editor. Change the kernel arguments, then press Ctrl-x to boot the edited entry. Esc throws your edits away. Once the server is up, make the real fix on disk, because the menu is not the place to keep it. These arguments are the useful ones here:
systemd.unit=rescue.targetboots into rescue mode, with the base system and its mounts.emergencyboots into emergency mode, which starts a shell and pulls in no other services or mounts.rd.breakstops at the end of the initramfs stage and gives you a shell before the switch to your real root.rd.debugturns on shell tracing (set -x) in dracut, so the console shows each step it runs.
You get a bare GRUB prompt instead of a menu. GRUB itself started, but it did not load a menu. The fix is to write the config again from a rescue system with grub2-mkconfig -o /boot/grub2/grub.cfg. Fedora's GRUB 2 page describes grub2-install for reinstalling the boot code on BIOS machines only, and notes that the embedded boot code is never updated automatically.
Stop 2: the dracut emergency shell
The boot stops at a shell before any of your services start, and the messages above it come from dracut. The initramfs could not mount your root filesystem. dracut saves a report of what it tried in /run/initramfs/rdsosreport.txt, so read that file first. The shell is small, and some tools may be missing.
cat /proc/cmdline
ls /dev/disk/by-uuid/The first command shows the root= value the kernel received. The second lists the filesystem UUIDs the initramfs can see. Compare them. You will land in one of these cases.
The disk is there, but the UUID is different. The root= argument points at a filesystem that does not exist on this server. This happens after a restore to a new volume or a reformat. Boot once with the correct root=UUID=... from the GRUB editor. Then fix every entry from the running system:
sudo grubby --update-kernel=ALL --args="root=UUID=correct-uuid-here"
sudo grubby --info=ALLALL selects every boot entry, and --args replaces the old value when the argument already exists. If /etc/fstab names the root by UUID, fix it there too. Then rebuild the initramfs for the running kernel with sudo dracut --force --kver "$(uname -r)", so it is built from the corrected configuration.
No disk appears at all. /dev/disk/by-uuid/ is empty, or it lists nothing from your root disk. The initramfs has no driver for the disk controller, so the kernel never sees the disk. This needs the rescue system below, where you rebuild the initramfs with the missing driver.
The UUID is there, but Btrfs will not mount. Check the rootflags= value in /proc/cmdline. If it names a subvolume that was renamed or deleted, the initramfs cannot mount root. Boot once with the correct rootflags=subvol= value from the GRUB editor. Then fix the entries with grubby --update-kernel=ALL --args=... in the same way.
Get into the disk from a rescue system
When no shell on the server itself helps, boot the provider's rescue image, or Fedora install media in rescue mode. Fedora's own rescue procedure mounts your system at /mnt/sysimage, and you chroot into that path. With a generic rescue image, mount it yourself. Start by finding the partitions:
lsblk -flsblk -f shows each partition with its filesystem type and UUID. Find your root by its type and size. For XFS or ext4, mount it directly. Replace /dev/vda3 with your own device:
sudo mount /dev/vda3 /mntFor Btrfs, find the subvolume first. Mounted with no options, a Btrfs filesystem shows its top level, unless someone changed the default subvolume. get-default tells you which one it is. Set SUBVOL to your root subvolume's path from the list:
sudo mount /dev/vda3 /mnt
sudo btrfs subvolume list /mnt
sudo btrfs subvolume get-default /mnt
sudo umount /mnt
SUBVOL="path-from-the-list"
sudo mount -o subvol="$SUBVOL" /dev/vda3 /mntNow read /mnt/etc/fstab. If it lists separate /boot or /boot/efi filesystems, mount them under /mnt/boot and /mnt/boot/efi. Then give the chroot the kernel's virtual filesystems and enter it:
for d in dev proc sys run; do sudo mount --bind /$d /mnt/$d; done
sudo chroot /mnt /bin/bashInside the chroot you are root, so the commands below drop sudo. Run findmnt /boot to confirm that /boot is mounted when your fstab says it should be.
Rebuild the initramfs. Inside the chroot, uname -r prints the rescue system's kernel, not yours, because a chroot changes the files you see and not the running kernel. So name your kernel version explicitly. These lines pick the newest installed kernel; set KVER by hand to rebuild a different one:
ls /lib/modules
KVER=$(ls /lib/modules | sort -V | tail -n 1)
echo "$KVER"
dracut --force --kver "$KVER"--force overwrites the existing image. To rebuild the images for every installed kernel at once, use dracut --force --regenerate-all. If a driver was missing, add it by module name, without the .ko suffix:
dracut --force --add-drivers "virtio_scsi" --kver "$KVER"To find the right module, run lspci -k on the rescue system if it has the tool. The rescue system can see your disk, so the Kernel driver in use line for the storage controller names a driver that works. To keep the driver in every future image, put add_drivers+=" virtio_scsi " in a file under /etc/dracut.conf.d/ whose name ends in .conf. Files with other extensions are ignored.
Rewrite the GRUB config if you saw a bare GRUB prompt:
grub2-mkconfig -o /boot/grub2/grub.cfgSchedule an SELinux relabel before you leave. A generic rescue system does not load your server's SELinux policy, so a file it creates or edits in your root may not carry the label that policy expects. ls -Z shows a file's label. Run fixfiles -F onboot inside the chroot, as the SELinux basics for a server explains. It writes /.autorelabel, and the next boot relabels the filesystem. Then exit, unmount everything under /mnt, and reboot from the disk.
Stop 3: systemd emergency or rescue mode
The kernel and the initramfs worked, and your root is mounted. Then systemd stopped and asked for a password:
Give root password for system maintenance (or type Control-D for normal startup):That prompt comes from sulogin. Two modes can show it. emergency.target starts a shell on the console and pulls in no other services or mounts. rescue.target pulls in the base system, with its mounts, and then starts a shell. How systemd targets replace runlevels covers the difference in more depth.
The prompt wants the root account's password. If your image never set one, test this console on a healthy server before you need it. When the console gives you no other way in, set a root password with sudo passwd root and store it safely, or plan to use the rescue system above.
Once you are in, find what failed:
systemctl --failed
journalctl -xbIf an edit fails with Read-only file system, remount root first with mount -o remount,rw /.
A failed mount in /etc/fstab is a frequent find. It is often a block storage volume that was detached, or one whose UUID changed. A mount with nofail is only wanted, not required, by local-fs.target, so boot continues whether it mounts or not. x-systemd.device-timeout= sets how long systemd waits for the device to appear. A volume that may be missing should look like this:
UUID=volume-uuid-here /mnt/data xfs defaults,nofail,x-systemd.device-timeout=10s 0 2Then reboot. Adding a block storage volume to a VPS covers the full fstab setup for an extra disk.
Stop 4: a boot that seems to hang during an SELinux relabel
After fixfiles onboot, the next boot relabels the files on disk. On a large disk this takes a long time, and the console can look frozen. Since Fedora 37 the relabel runs in parallel by default, using all CPU cores. The time still grows with the number of files and drops with more cores, so a small VPS with a full disk is the slow case.
Let it finish. The provider's CPU and disk graphs help here: steady disk activity suggests it is still working. If you reset the server in the middle anyway, schedule the relabel again with fixfiles -F onboot, from a shell or from the rescue chroot.
One known trap: on Fedora 42, a bug titled "selinux relabel does not work anymore" (Red Hat Bugzilla 2387134) stopped the relabel from working. It was fixed in selinux-policy-42.5-1.fc42. If you are still on an un-updated Fedora 42, check with rpm -q selinux-policy, and do not rely on /.autorelabel until that package is current. Fedora 42 gets no updates now, so the real fix is an upgrade.
When a dnf system upgrade fails
A release upgrade has two halves. dnf5 system-upgrade download fetches every package while the server runs normally, and it checks that they can be installed. The reboot step then starts a minimal offline environment that applies the upgrade. A failure in that second half is the one that leaves you at the console. Before you start the upgrade at all, take the provider snapshot. Then run:
sudo dnf5 upgrade --refresh
sudo dnf5 system-upgrade download --releasever=45
sudo dnf5 system-upgrade reboot--releasever is required. If the server comes back on the old release, or the upgrade boot fails, look at what happened:
cat /etc/fedora-release
sudo dnf5 offline log
sudo dnf5 offline log --number=-1
sudo dnf5 offline statusdnf5 offline log lists the boots in which an offline transaction was attempted, and --number=-1 shows the most recent one. To abandon the upgrade, sudo dnf5 offline clean removes the stored transaction and deletes its cached packages. If the server boots but is half upgraded, with packages from both releases, restore the snapshot. That is the job the snapshot was for. The Fedora Server lifecycle on a VPS covers how often you need to upgrade and how to plan for it. Fedora 44's end-of-life date is on the Fedora release schedule, so check it there.
FAQ
Does Fedora have update-grub?
No. On Fedora the command is sudo grub2-mkconfig -o /boot/grub2/grub.cfg. Since Fedora 34 the full config lives in /boot/grub2/grub.cfg on both BIOS and UEFI machines, and on UEFI the file in /boot/efi/EFI/fedora/ is a small stub that loads it. Kernel entries are separate BLS files in /boot/loader/entries/, which grubby manages.
How do I rebuild the initramfs on Fedora from a rescue system?
Mount your root (with -o subvol= and your subvolume on Btrfs), bind-mount /dev, /proc, /sys and /run, and chroot in. Run ls /lib/modules to get your kernel version, then dracut --force --kver followed by that version. Do not use $(uname -r) there, because inside a chroot it prints the rescue system's kernel. Add --add-drivers with the module name if a disk driver was missing.
Is my Fedora VPS root filesystem Btrfs or XFS?
Run findmnt -no FSTYPE /. Fedora Cloud images moved to Btrfs in Fedora 35, and Fedora Server was excluded from that change, but a provider can build its image from either edition. On Btrfs, the root is usually a subvolume, and the rootflags= argument in your boot entry can name it.
Why does my Fedora server take so long to boot after a rescue?
It is most likely relabeling files for SELinux, which fixfiles -F onboot schedules. The time grows with the amount of data on the disk. Since Fedora 37 the relabel uses all CPU cores by default. Let it finish. If you cut it off, schedule it again.
What is the root password prompt in emergency mode?
It is sulogin, which asks for the root account's password before it gives you a maintenance shell. Your own user's password does not work there. If your image never set a root password, set one with sudo passwd root while the server is healthy, or plan to use the provider's rescue system instead.