Recommended Services
Amazon Web Services
LeanCloud
New Relic
ClearDB
YummyCocoa
V2EX  ›  云计算

自动修改 Grub,给 Linux 安装救援模式的脚本,特别适用于云服务器

  •  
  •   YummyCocoa · Jun 9, 2025 · 1845 views
    This topic created in 344 days ago, the information mentioned may be changed or developed.

    写个两个脚本:

    • boot2rescue.sh: 在 Linux 设置上安装一个救援模式系统(支持 x86 和 ARM64 架构)。
    • boot2cbs.sh: 将用户提供的 ISO 文件(系统镜像)下载或移动到已挂载的云硬盘中,使其可以在 Grub 引导并加载。

    方便在 Grub 内挂载进入救援模式或者加载 ISO 镜像。特别适用于云服务器 dd 个性化 Linux ( e.g. Kali )。

    安装 Alpine 作为救援模式: Alpine Netboot

    挂载云硬盘内 ISO 文件到 Grub 挂载 Grub

    Github 地址:

    使用详细教程:

    1 replies    2025-06-11 15:20:37 +08:00
    julyclyde
        1
    julyclyde  
       Jun 11, 2025   ❤️ 1
    云服务商自己就提供 recovery 模式吧
    还需要你自己改?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5698 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 03:26 · PVG 11:26 · LAX 20:26 · JFK 23:26
    ♥ Do have faith in what you're doing.