Skip to content
Search AlmaLinux

This page uses Chinese content. Search opens the Chinese documentation.

    Browse this documentation

    Boot Rescue

    This content is not available in your language yet.

    dracut 107-9.el10_2 在 BaseOS(dnf list 实测)——EL10 初始 RAM 磁盘生成工具,启动失败时按 e 编辑 GRUB 条目、删掉 rhgb quiet 加 rd.break 进入 dracut emergency shell。

    systemd rescue.target(单用户模式,需 root 密码)与 emergency.target(无文件系统挂载,最小环境):GRUB 中编辑内核参数加 systemd.unit=rescue.target 或 rd.break(进入 initramfs)。文献口径。

    chroot 进入已安装系统(救援盘/ Live 系统启动后):mount /dev/sda4 /mnt → mount —bind /dev /proc /sys → chroot /mnt → 可修复 GRUB、重置密码、修 fstab。文献口径。

    GRUB2 命令行:启动时按 c 进入 GRUB 命令行 → ls 列设备 → set root=… → linux /boot/vmlinuz… root=/dev/sda4 → initrd /boot/initramfs… → boot——手动引导绕过损坏的 GRUB 配置。文献口径。

    常见启动失败场景:fstab 错误(emergency target 自动进入)、SELinux relabel 需要(autoreboot 触发)、initramfs 损坏(dracut —force 重建)、GRUB MBR 损坏(grub2-install 修复)。文献口径。

    见各节标注「文献口径」「未实测」的内容。