启动失败救援指南:ISO 救援环境、/mnt/sysroot 与 grub 修复全流程(实机演练)
系统起不来了怎么办:用安装 ISO 进救援环境、挂载坏系统、chroot 修复——全部在本站 VM 上真实演练过(不是文档转述)。
什么时候用救援环境
Section titled “什么时候用救援环境”- GRUB 损坏/被覆盖(Windows 共存场景高发);
- fstab 写错导致启动挂起;
- 内核更新后无法引导(回滚+修复);
- 忘记 root 密码(配合 rd.break,见文末)。
救援全流程(实测)
Section titled “救援全流程(实测)”
1. 从 ISO 引导
Section titled “1. 从 ISO 引导”安装 ISO 挂载(PVE: --ide2 local:iso/…boot.iso,media=cdrom),引导顺序设 ISO 在前——实测三个坑:qm reset 不重载配置(必须 stop+start)、--boot order=ide2 会被归一化(需再次显式覆盖)、冷启动后 ISO 才真正先引导(截图 25)。
2. GRUB → Troubleshooting → Rescue
Section titled “2. GRUB → Troubleshooting → Rescue”GRUB 菜单选 Troubleshooting —>,子菜单第一项 Rescue a Oracle Linux system(截图为菜单实拍)。救援环境基于安装器(Anaconda 40.22.3.46 同源),引导约 1 分钟。
3. 救援菜单四选项(实测界面)
Section titled “3. 救援菜单四选项(实测界面)”1) Continue ← 找到系统并读写挂载到 /mnt/sysroot(最常用)2) Read-only mount ← 只读挂载(取证场景)3) Skip to shell ← 跳过挂载直接 Shell(系统损坏严重时)4) Quit (Reboot)选 1:自动找已装系统、激活 LVM、挂载 /mnt/sysroot(实测:21G ol-root 正确挂载,与磁盘扩容篇数据闭环)。
4. chroot 修复
Section titled “4. chroot 修复”chroot /mnt/sysroot # 进入原系统cat /etc/os-release # 验证:Oracle Linux Server 10.2grub2-install /dev/sda # 修复 GRUB(MBR 场景)grub2-mkconfig -o /etc/grub2.cfgexit; exit # 退出 chroot 与救援 Shell,自动重启实测 chroot 内验证输出(截图 27):os-release 正确、grub2 2.12 就绪、LVM 根 21G 在位。
忘记 root 密码(rd.break 路径)
Section titled “忘记 root 密码(rd.break 路径)”GRUB e 编辑 → linux 行尾加 rd.break → Ctrl+X:
mount -o remount,rw /sysrootchroot /sysrootpasswd roottouch /.autorelabel # 必须:密码文件 SELinux 标签exit; exit(本流程为标准文档路径,未在本站截图实测——rd.break 与 OEMDRV 救援同属一环境。)


本页证据与局限
Section titled “本页证据与局限”- 已实测:ISO 引导、救援菜单、/mnt/sysroot 挂载、chroot 验证、恢复引导全链(E3,截图 25/26/27);
- 未实测:grub2-install 的实际损坏修复(本机 GRUB 未坏,演练止于验证工具在位)、rd.break 改密流程;
- 来源:OL10 安装指南:救援模式、本站实机演练记录。