Editorial research date: October 23, 2026. Linux boot troubleshooting is a dependency problem, not a list of four universal repair commands. A server may fail because its firmware cannot find a boot entry, a bootloader cannot locate a kernel, an initramfs lacks a storage driver, the root filesystem is unavailable, or systemd encounters a failed service after the kernel has started. Those failures occur at different stages and need different evidence. Running an installation command before identifying the failed stage can turn an otherwise recoverable host into a machine that will no longer boot.
This article explains four representative tools—journalctl, grub-mkconfig, dracut and grub-install—along with their distribution-specific equivalents. They correspond to observing boot state, generating GRUB configuration, building an initramfs and reinstalling or recovering a bootloader. The exact binary names, directories and recovery procedures depend on the distribution, firmware type, architecture and Secure Boot status. The examples below are deliberately diagnostic unless a particular supported recovery procedure has been identified.
First distinguish firmware, bootloader, kernel and userspace
A typical x86 system starts in BIOS or UEFI firmware. Firmware locates a boot path, which may involve an EFI System Partition (ESP), a signed shim, GRUB and a chosen kernel. The bootloader supplies kernel parameters and, frequently, an initial RAM filesystem. The kernel then initializes drivers and storage, mounts the real root filesystem, and hands control to the init system. Services and applications only start after these earlier stages succeed.
This division determines the questions to ask. A firmware screen reporting that no boot device exists is not the same fault as a GRUB rescue prompt. A kernel panic that cannot find its root filesystem differs from a machine that reaches a rescue target because a mount unit failed. If the console displays a login prompt but the network is absent, rebuilding the bootloader would target the wrong layer altogether.
Record exactly what appears on the console, the most recent successful boot, recent kernel or storage changes, and whether this host uses virtualization or physical hardware. Preserve a virtual-machine snapshot or verified system backup where possible. On critical production infrastructure, capture relevant storage mapping and change approvals before attempting to repair partitions or firmware entries.
1. Observe the active boot before changing it
For a booted system using systemd, journalctl -b is an important starting point because it displays journal records from the current boot. journalctl -b -1 may show the preceding boot if persistent journal data is available. systemctl --failed identifies failed units, but an individual failed service does not prove that the bootloader is damaged. systemctl status and the relevant unit’s journal should be examined together to establish whether a service failed before or after a dependency came online.
The running kernel can be identified with uname -r. cat /proc/cmdline shows the parameters passed to that kernel. Compare the reported root device, UUID or logical-volume reference with the actual storage inventory before assuming that a missing driver is the problem. findmnt /, lsblk -f and blkid are useful observation tools, but they reveal different perspectives: mounted filesystems, block-device topology and filesystem identifiers respectively. Network-booted hosts and encrypted devices have additional dependencies that a local-disk example cannot capture.
UEFI systems often provide information through efibootmgr -v when the tool is installed and EFI variables are exposed to the running operating system. Its output can help correlate firmware entries with the intended EFI executable. An absent entry, however, does not justify immediately creating a replacement: the location of the ESP, the distribution’s boot-manager strategy, and the signing chain must first be known. In a virtual machine, firmware settings and attached disks should also be checked in the hypervisor’s management interface.
A useful incident log records each observed symptom, the command used, its exact output, the hypothesis it supports, and the next safe test. That practice prevents a series of contradictory changes based on guesswork.
2. Inspect GRUB configuration and understand generated files
GNU GRUB 2 is not interchangeable with historical GRUB Legacy. GRUB 2 typically uses a generated grub.cfg, whereas GRUB Legacy used configuration conventions such as menu.lst or grub.conf. GNU’s GRUB 2.14 manual describes grub-mkconfig as a configuration generator and grub-install as an installer. These commands solve different problems. Generating a menu does not itself repair missing EFI boot files, and reinstalling an executable does not necessarily correct a wrong root UUID.
Distributions can rename the tools: for example, some Red Hat-based systems use grub2-mkconfig, while Debian-family systems commonly supply an update-grub wrapper. The resulting file location also differs. On Red Hat Enterprise Linux 9, the active generated configuration is under /boot/grub2/grub.cfg, and the UEFI path normally contains a stub that points to it. Regenerating the wrong file may silently leave the boot menu unchanged or damage the boot setup. Check the operating system release and official vendor procedure before writing a new configuration file.
When investigating a missing kernel menu entry, determine whether the expected kernel package and images actually exist, whether the filesystem containing /boot was mounted during an update, and whether an automated menu-generation step failed. If the system uses Boot Loader Specification entries or unified kernel images, follow that platform’s workflow instead of assuming all systems have the same GRUB script structure.
A staged change should retain a copy of the existing configuration and a documented recovery route. Editing generated grub.cfg by hand is generally a poor long-term solution: subsequent package operations can replace it. Make supported changes in the distribution’s configuration sources and validate the result before a controlled reboot.
3. Build an initramfs only when the evidence points there
The initramfs carries early-userspace tools and drivers needed to reach the real root filesystem. If a server fails after a kernel change because its storage controller driver, encryption support or LVM components are unavailable early in boot, investigating the image is reasonable. But rebuilding it will not repair an incorrect UEFI boot entry, disconnected virtual disk or physically failed storage device.
Tools vary by distribution: dracut is common on Red Hat-family systems; update-initramfs is common on Debian/Ubuntu; and mkinitcpio serves other distributions, notably Arch Linux. Their syntax, default presets, module-selection rules and recovery environments are not interchangeable. The historical mkinitrd name remains relevant for older systems but is not a universal requirement in 2026.
Before regeneration, identify the exact target kernel version, the image associated with it, and whether its matching modules are installed. Inspect free space and filesystem health on /boot. A successful build against the wrong kernel or into the wrong filesystem will not fix the target machine. In a rescue environment, make sure the intended root, boot and EFI filesystems are mounted in the right places and that the command runs against the target installation rather than the temporary rescue image.
When dracut is used, the host-only image option can produce a smaller image tailored to the present hardware, but that may not suit systems being migrated between storage controllers. Conversely, a broader image can improve portability while growing in size. This is a design choice requiring storage and boot-chain understanding, not a guarantee that a forced rebuild always repairs missing drivers.
Test the repaired kernel entry independently and preserve a known-good alternate kernel whenever supported. A controlled reboot with console access is a better validation than a command returning exit status zero on its own.
4. Reinstalling GRUB is a platform-specific recovery operation
grub-install and grub2-install write bootloader components and are not harmless inspection commands. On BIOS systems, the installation target may be a whole disk. On UEFI systems, the boot chain typically relies on an EFI System Partition, firmware boot variables and, when Secure Boot is enabled, appropriately signed components. Applying a BIOS recipe to an EFI machine can be destructive.
The RHEL 9 bootloader recovery documentation illustrates the distinction: its BIOS recovery procedure uses grub2-install on the appropriate device, whereas its UEFI procedure reinstalls the supported grub2-efi and shim packages. Red Hat separately warns that installing an unsigned GRUB image in an EFI Secure Boot configuration can prevent startup. This limitation is significant enough that a generic "run grub2-install" instruction should never be treated as universally safe.
If a UEFI installation seems broken, first determine whether the ESP is mounted, intact and contains the distribution’s expected files. Confirm how the signed shim chain is managed. Verify that the firmware points to the correct device and EFI executable. A missing boot entry, damaged ESP, unsigned image or wrong configuration stub needs its own specific repair method. The correct intervention may be package reinstallation, firmware-entry repair or restoring the ESP from a verified backup, not writing a bootloader into a disk sector.
For BIOS recovery, identify the actual firmware boot disk instead of assuming it is /dev/sda. Disk enumeration in a rescue image, storage array or cloud guest may not match the production boot order. GNU GRUB’s manual warns about boot-device assumptions, including the complications of BIOS/MBR installations and GPT layouts. A failed installation can overwrite critical boot structures, so perform it only when a tested recovery route and ownership approval exist.
A practical diagnostic sequence
Suppose a virtual server stops booting after a kernel update. Start with a console screenshot and note the exact point of failure. If GRUB displays the old kernel, try that known-good entry under the organization’s incident procedure before changing bootloader files. If an older kernel succeeds, compare installed kernel packages, images, initramfs and storage-module availability. If no kernel menu appears, check firmware and the EFI or BIOS boot path. If the kernel starts but fails to mount root, inspect the storage mapping and initramfs rather than reinstalling GRUB blindly.
In a second scenario, an administrator can log into the server but one application is unavailable after reboot. The right first steps are the service’s unit state, dependencies and logs, not a bootloader rebuild. This may be an ordering issue, missing secret, failed mount or service configuration. Understanding what did boot is often the fastest path to the actual cause.
For a fleet, standardize observability: capture kernel versions, Secure Boot status, firmware mode, boot-entry configuration, last successful boot, and the location of recovery media or console access. Test the recovery runbook on representative hardware and on both BIOS and UEFI where those modes exist. Include a plan for disk-encryption keys and storage attachments; a rescue environment that cannot access the encrypted root will not provide the required repair access.
What to verify before signing off
A recovery should not be called complete just because the server passes the GRUB menu. Validate the expected kernel is running, root and dependent filesystems are mounted, storage paths are healthy, relevant services are active, network routes are present, and monitoring is receiving signals. Reboot a second time only when the incident’s acceptance procedure requires it and the availability risk is justified. Preserve the command transcript, changes and rollback decision for future incidents.
Linux boot administration becomes safer when each tool is tied to a specific stage. Inspect first; verify platform details second; choose a narrowly supported repair third; and confirm end-to-end service recovery last. There are no four commands that safely repair every Linux boot failure. The useful skill is knowing which command belongs to which failure, which commands only observe, and which commands can permanently alter boot state.