When starting Linux, error messages may sometimes appear on the screen, and the system may stop before reaching the desktop. Although these messages can look alarming, they are often the most important clues for finding the real cause of the problem.
In this article, we will explain the most common causes of Linux boot errors and the step-by-step fixes you can try depending on the situation.
1. Do Not Keep Forcing Reboots Before Understanding the Error
When users see a boot error, many immediately restart the computer over and over again. However, if the issue is related to the file system or the disk, repeated forced reboots can actually make the situation worse.
A better approach is to do the following first:
- Write down the full error message
- Take a photo of the screen
- Check at which stage of the boot process the system stops
- Think back to whether you recently performed updates or changed settings
If the problem started after an update, the cause may be related to the kernel or drivers. If the computer was suddenly powered off, file system corruption becomes more likely.
2. Common Types of Boot Errors
- GRUB or bootloader errors
- File system errors
- Kernel or initramfs issues
- systemd service startup failures
- GPU driver or display problems
- Insufficient disk space
- Physical disk hardware failure
Although all of these may look like “Linux will not boot,” the actual fix depends on the type of error.
3. Display Detailed Boot Messages
Many Linux distributions use quiet splash to hide detailed boot messages.
If you want to see the real cause of the problem, you can temporarily remove it from GRUB.
- Restart the computer
- Immediately press Shift or Esc several times after powering on
- In GRUB, select the boot entry and press e
- Delete
quiet splash - Press Ctrl + X to continue booting
This allows you to see more clearly at which step the system is failing.
4. If You See “grub rescue” or “no such partition”
If grub rescue appears immediately at boot, or you see errors such as “no such partition,” the problem is usually related to the bootloader or disk partitions.
Common causes include:
- A partition was changed or moved
- A dual-boot Windows installation overwrote the boot information
- The EFI partition or /boot partition is damaged
- The GRUB configuration file is corrupted
In many cases, you can boot from a Live USB and reinstall GRUB:
sudo mount /dev/sda2 /mnt
sudo mount /dev/sda1 /mnt/boot/efi # Only required for UEFI systems
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
grub-install /dev/sda
update-grub
exit
sudo reboot
Be sure to replace the device names with the ones that match your actual system.
5. If the System Enters Emergency Mode
The message You are in emergency mode usually means the system found a serious problem while mounting partitions or reading important configuration files.
A very common cause is an error in /etc/fstab.
First, check the logs:
journalctl -xb
Then check fstab:
cat /etc/fstab
Common mistakes include:
- An incorrect UUID
- A mount point that does not exist
- An external drive listed in fstab that is currently not connected
If you find a problem, edit the file:
nano /etc/fstab
After making corrections, reboot the system.
6. If the Error Is Related to fsck or the File System
Messages such as fsck failed or UNEXPECTED INCONSISTENCY usually indicate file system corruption.
This often happens after a sudden power loss or a forced shutdown.
The safest approach is to perform the check from Recovery Mode or a Live USB:
sudo fsck -f /dev/sda1
Do not run fsck directly on a mounted and actively used root partition.
It is also a good idea to check the health of the disk:
sudo smartctl -a /dev/sda
If SMART reports many errors, you should back up important data as soon as possible.
7. If a systemd Service Fails to Start
Sometimes the Linux kernel has actually booted successfully, but an important service fails to start, preventing the system from completing login normally. In this case, you may see messages such as:
Failed to start ...Dependency failed for ...
At that point, try switching to a TTY:
Ctrl + Alt + F2
After logging in, check the failed services:
systemctl --failed
journalctl -xb
To inspect a specific service:
systemctl status NetworkManager
journalctl -u NetworkManager -b
If the problematic service is not critical, you can temporarily disable it and test whether the system can continue booting.
8. If the Problem Is in the Kernel or initramfs
If the error started only after a kernel update, the new kernel or initramfs may be the cause. In that case, try booting an older kernel version from GRUB:
- Open GRUB
- Select Advanced options
- Choose an older kernel version
If the older kernel boots normally, you can regenerate initramfs:
sudo update-initramfs -u
9. If the Problem Comes from the GPU Driver
Sometimes Linux has actually booted, but the graphical interface cannot be displayed correctly because of a GPU driver issue. This is especially common after NVIDIA driver updates.
You can first try temporarily adding nomodeset in GRUB:
linux /boot/vmlinuz ... quiet splash nomodeset
If that allows the system to start, the issue is very likely related to the display driver. You can then reinstall the appropriate driver.
10. Do Not Forget to Check Remaining Disk Space
Sometimes the real cause is very simple: the root partition or /boot is completely full.
In that situation, updates may fail, and the next boot may run into problems.
You can check disk usage with:
df -h
If space is almost exhausted, clean the package cache and remove unnecessary old packages:
sudo apt clean
sudo apt autoremove
If necessary, also delete old kernels and large log files.
11. If Everything Fails, Back Up Your Data First
If TTY, Recovery Mode, and standard repair methods do not help, the safest step is to boot from a Live USB and back up important files first. This becomes even more important if you suspect a physical disk failure.
With a Live USB, you can:
- Copy important files
- Run fsck
- Reinstall GRUB
- Check configuration files
- Evaluate disk health
Summary
Seeing error messages during Linux startup does not always mean you must reinstall the entire system. In many cases, if you read the error carefully and check each possible cause step by step, the system can be recovered.
- Write down the full error message
- Show detailed boot logs
- Use TTY, Recovery Mode, or a Live USB
- Check GRUB, the file system, services, the kernel, drivers, and disk space
- If you suspect disk failure, rescue your data first
The most important thing is not to reinstall immediately without identifying the cause. Instead, treat the error message as a clue and work through the real problem step by step.