Skip to content

How to fix AlmaLinux boot issues when stuck in Emergency Mode. Includes step-by-step recovery for XFS corruption.

Notifications You must be signed in to change notification settings

khalidit23/almalinux-emergency-mode-fix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

🛠️ Fixing AlmaLinux Emergency Mode: XFS Repair & Boot Recovery

AlmaLinux

🚀 Problem

During system boot, the following errors appeared:

img alt

🔍 Cause

  • The XFS log (journal) on the root filesystem was corrupted.
  • The system was using LVM (Logical Volume Manager), and /sysroot couldn't mount properly.

✅ Solution: Fixing Emergency Mode

️Identify the Root Partition (LVM)

Run:

blkid

Execute the following command to repair XFS:

xfs_repair /dev/mapper/almalinux-root

If you’re unable to repair without clearing the journal, use the -L flag (this will clear the journal, and may cause data loss):

xfs_repair -L /dev/mapper/almalinux-root

🔴 Warning: The -L flag clears the journal, which may cause recent data loss.

Reboot the System

After the repair, reboot the system to check if it boots successfully:

reboot

❤️ Support

If this guide helped you, feel free to star ⭐ this repository and share it with others!

About

How to fix AlmaLinux boot issues when stuck in Emergency Mode. Includes step-by-step recovery for XFS corruption.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published