Skip to content
Search Oracle Linux

    Browse this documentation

    Boot-failure rescue guide: the ISO rescue environment, /mnt/sysroot and grub repair end to end (hands-on drill)

    What to do when the system will not boot: enter the rescue environment from the install ISO, mount the broken system, chroot in and repair — all drilled on this site’s own VM (not a documentation paraphrase).

    • GRUB damaged/overwritten (common in Windows dual-boot scenarios);
    • A bad fstab entry hanging the boot;
    • The system unbootable after a kernel update (roll back + repair);
    • A forgotten root password (combined with rd.break — see the end of this page).

    Booting the ISO into Troubleshooting → Rescue (live screenshot)

    Attach the install ISO (PVE: --ide2 local:iso/…boot.iso,media=cdrom) and set the boot order with the ISO first — three measured pitfalls: qm reset does not reload configuration (stop+start is required), --boot order=ide2 gets normalized (override it explicitly again), and only a cold start truly boots the ISO first (screenshot 25).

    Pick Troubleshooting —> in the GRUB menu, then the first submenu entry Rescue a Oracle Linux system (the screenshots are of the real menu). The rescue environment is installer-based (Anaconda 40.22.3.46 lineage) and boots in about a minute.

    3. The four-option rescue menu (measured interface)

    Section titled “3. The four-option rescue menu (measured interface)”
    1) Continue ← finds the system, mounts read-write at /mnt/sysroot (the usual choice)
    2) Read-only mount ← read-only mount (forensics)
    3) Skip to shell ← skip mounting, straight to a shell (badly damaged systems)
    4) Quit (Reboot)

    Choose 1: it locates the installed system, activates LVM and mounts /mnt/sysroot (measured: the 21G ol-root mounted correctly, closing the loop with the disk-expansion page).

    Terminal window
    chroot /mnt/sysroot # enter the original system
    cat /etc/os-release # verify: Oracle Linux Server 10.2
    grub2-install /dev/sda # repair GRUB (MBR scenario)
    grub2-mkconfig -o /etc/grub2.cfg
    exit; exit # leave the chroot and the rescue shell; automatic reboot

    Measured chroot verification output (screenshot 27): os-release correct, grub2 2.12 ready, the 21G LVM root in place.

    Forgotten root password (the rd.break path)

    Section titled “Forgotten root password (the rd.break path)”

    Press e in GRUB → append rd.break to the linux line → Ctrl+X:

    Terminal window
    mount -o remount,rw /sysroot
    chroot /sysroot
    passwd root
    touch /.autorelabel # required: SELinux label for the password files
    exit; exit

    (This flow is the standard documentation path; it was not screenshot-drilled on this site — rd.break and the OEMDRV rescue share the same environment.)

    Rescue environment menu: Continue / Read-only / Skip / Exit (live screenshot)

    Option 1 Continue → chroot into the 21G ol-root succeeded (live screenshot)

    • Measured: ISO boot, the rescue menu, the /mnt/sysroot mount, chroot verification and boot restoration — the full chain (E3, screenshots 25/26/27);
    • Not measured: an actual grub2-install repair of a broken GRUB (this machine’s GRUB was intact; the drill stopped at verifying the tooling), and the rd.break password-change flow;
    • Sources: OL10 installation guide: rescue mode, this site’s drill record.