{"id":28248461,"url":"https://github.com/khalidit23/almalinux-emergency-mode-fix","last_synced_at":"2026-01-30T03:09:20.038Z","repository":{"id":283960342,"uuid":"953398680","full_name":"khalidit23/almalinux-emergency-mode-fix","owner":"khalidit23","description":"How to fix AlmaLinux boot issues when stuck in Emergency Mode. Includes step-by-step recovery for XFS corruption.","archived":false,"fork":false,"pushed_at":"2025-03-23T10:20:09.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-05T07:59:11.402Z","etag":null,"topics":["almalinux","boot-failure","emergency-mode","linux-administration","linux-recovery","linux-troubleshooting","lvm-corruption"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/khalidit23.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-23T09:18:05.000Z","updated_at":"2025-04-09T07:35:53.000Z","dependencies_parsed_at":"2025-03-23T10:40:14.225Z","dependency_job_id":null,"html_url":"https://github.com/khalidit23/almalinux-emergency-mode-fix","commit_stats":null,"previous_names":["khalidit23/almalinux-emergency-mode-fix"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/khalidit23/almalinux-emergency-mode-fix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalidit23%2Falmalinux-emergency-mode-fix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalidit23%2Falmalinux-emergency-mode-fix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalidit23%2Falmalinux-emergency-mode-fix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalidit23%2Falmalinux-emergency-mode-fix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khalidit23","download_url":"https://codeload.github.com/khalidit23/almalinux-emergency-mode-fix/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalidit23%2Falmalinux-emergency-mode-fix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28897775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T21:06:44.224Z","status":"online","status_checked_at":"2026-01-30T02:00:06.810Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["almalinux","boot-failure","emergency-mode","linux-administration","linux-recovery","linux-troubleshooting","lvm-corruption"],"created_at":"2025-05-19T12:15:57.446Z","updated_at":"2026-01-30T03:09:20.033Z","avatar_url":"https://github.com/khalidit23.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🛠️ Fixing AlmaLinux Emergency Mode: XFS Repair \u0026 Boot Recovery\n  \n![AlmaLinux](https://img.shields.io/badge/AlmaLinux-0073EC?style=for-the-badge\u0026logo=almalinux\u0026logoColor=white) \n\n## 🚀 Problem\nDuring system boot, the following errors appeared:  \n\n![img alt](https://github.com/khalidit23/almalinux-emergency-mode-fix/blob/f12e0eeeab6aaa4cb7e10e0beacc518fd897b57e/Screenshot%202025-03-23.jpeg)\n\n## 🔍 Cause\n- The **XFS log (journal)** on the root filesystem was corrupted.\n- The system was using **LVM (Logical Volume Manager)**, and `/sysroot` couldn't mount properly.\n \n\n## ✅ Solution: Fixing Emergency Mode\n\n### ️Identify the Root Partition (LVM)\n\nRun:\n```bash\nblkid\n```\n### Execute the following command to repair XFS:\n```bash\nxfs_repair /dev/mapper/almalinux-root\n```\nIf you’re unable to repair without clearing the journal, use the `-L` flag (this will clear the journal, and may cause data loss):\n\n```bash\nxfs_repair -L /dev/mapper/almalinux-root\n```\n🔴 Warning: The `-L` flag clears the journal, which may cause recent data loss.\n\n### Reboot the System\n\nAfter the repair, reboot the system to check if it boots successfully:\n```bash\nreboot\n```\n\n## ❤️ Support\nIf this guide helped you, feel free to star ⭐ this repository and share it with others!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhalidit23%2Falmalinux-emergency-mode-fix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhalidit23%2Falmalinux-emergency-mode-fix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhalidit23%2Falmalinux-emergency-mode-fix/lists"}