https://github.com/khalidit23/almalinux-emergency-mode-fix
How to fix AlmaLinux boot issues when stuck in Emergency Mode. Includes step-by-step recovery for XFS corruption.
https://github.com/khalidit23/almalinux-emergency-mode-fix
almalinux boot-failure emergency-mode linux-administration linux-recovery linux-troubleshooting lvm-corruption
Last synced: 4 months ago
JSON representation
How to fix AlmaLinux boot issues when stuck in Emergency Mode. Includes step-by-step recovery for XFS corruption.
- Host: GitHub
- URL: https://github.com/khalidit23/almalinux-emergency-mode-fix
- Owner: khalidit23
- Created: 2025-03-23T09:18:05.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-23T10:20:09.000Z (about 1 year ago)
- Last Synced: 2025-06-05T07:59:11.402Z (about 1 year ago)
- Topics: almalinux, boot-failure, emergency-mode, linux-administration, linux-recovery, linux-troubleshooting, lvm-corruption
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🛠️ Fixing AlmaLinux Emergency Mode: XFS Repair & Boot Recovery

## 🚀 Problem
During system boot, the following errors appeared:

## 🔍 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:
```bash
blkid
```
### Execute the following command to repair XFS:
```bash
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):
```bash
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:
```bash
reboot
```
## ❤️ Support
If this guide helped you, feel free to star ⭐ this repository and share it with others!