Files
Linux/问题记录/Linux启动进入急救模式.md
offends cee91802b3
Some checks failed
continuous-integration/drone Build is failing
synchronization
2025-08-25 15:57:40 +08:00

52 lines
833 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

> 本文作者:丁辉
# Linux启动进入急救模式
**报错如下**
```bash
Generating "/run/initramfs/rdsosreport.txt"
Entering emergency mode. Exit the shell to continue.
Type "journalctl" to view system logs.
You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick or /boot after mounting them and attach it to a bug report.
:/#
```
**问题分析**
> XFS(dm-0)有元数据损坏。
**问题解决方案:**
1. 查看系统日志
```bash
journalctl -r
```
日志如下
```bash
# 查看红色报错()内名称
XFS (dm-0):******
# 或如 vda1 类报错
```
2. 使用()内名称查询对应映射区
```bash
ls -l /dev/mapper
```
3. xfs 修复
```bash
xfs_repair -v -L /dev/dm-0
```
4. 最后退出急救模式重启启动成功
完美解决