无忧启动论坛

标题: grub2引导,谁有ntboot.mod下载地址? [打印本页]

作者: rbwrbw    时间: 6 天前
标题: grub2引导,谁有ntboot.mod下载地址?
grub2,用ntboot 引导wim 等文件太方便了
但是手头上没有ntboot.mod文件
从网上下了源码,用了多个手段都没有编译成功!!!

谁有现成的mod文件,
提供下载地址
作者: hzyry2046    时间: 6 天前
直接去wintoflash大佬的仓库那边下release吧,有ntboot.mod的
作者: xuan5757    时间: 6 天前
好东西,我顶楼主。
作者: a66    时间: 6 天前
本帖最后由 a66 于 2025-11-15 16:17 编辑

可自行手动编译 ntboot.mod,以下是从 GRUB 2 源码中提取并编译该模块的方法,供参考:

需要一个 Linux 系统(如 Deepin、Ubuntu 等),并安装以下依赖:

bash
sudo apt update
sudo apt install build-essential autoconf automake bison flex libopts25-dev

获取 GRUB 源码

bash
git clone https://git.savannah.gnu.org/git/grub.git
cd grub


配置并编译 ntboot 模块


bash
./autogen.sh
./configure --with-platform=pc --target=i386
make

这个过程可能需要几分钟,取决于你的机器性能。

提取 ntboot.mod

编译完成后,ntboot.mod 文件会在以下路径中:
shell
build-i386-pc/grub/i386-pc/ntboot.mod

可将它复制出来,用于 GRUB 的自定义配置

使用 ntboot.mod

将 ntboot.mod 放入 GRUB 的模块目录(通常是 /boot/grub/i386-pc/)。
在你的 grub.cfg 中添加类似如下内容来引导 .wim 文件:

bash
menuentry "Boot from install.wim" {
    set root=(hd0,1)
    ntboot /sources/install.wim
}
作者: PCHH    时间: 6 天前
多谢分享
作者: hilsonma    时间: 6 天前
wintoflash版grub2这里下载:https://github.com/a1ive/grub/re ... grub2-latest.tar.gz
作者: rbwrbw    时间: 4 天前
hilsonma 发表于 2025-11-15 21:11
wintoflash版grub2这里下载:https://github.com/a1ive/grub/re ... grub2-latest.tar.gz

出现以上错误

作者: my9823    时间: 3 天前
你这是把ntboot.mod用在其他版本的grub2上吗?最好使用wintofalsh老大的版本,官方的版本没有这个模块,grub2是模块化设计,在需要是insmod插入模块,命令包含在mod文件中,例如要使用某个命令,先要insmod插入或者内置的时候集成这个模块。这并不是说能通用的模块,因为wintoflash老大的版本改动过源码,ventoy也是改动了源码。要是能通用ventoy的模块早就能用在其他grub2版本上了。
作者: misakayaho    时间: 3 天前
感谢分享
作者: 肉仔    时间: 前天 15:09
来看看




欢迎光临 无忧启动论坛 (http://bbs.c3.wuyou.net/) Powered by Discuz! X3.3