无忧启动论坛

 找回密码
 注册
搜索

grub2引导,谁有ntboot.mod下载地址?

查看数: 1490 | 评论数: 9 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2025-11-15 14:33

正文摘要:

grub2,用ntboot 引导wim 等文件太方便了 但是手头上没有ntboot.mod文件 从网上下了源码,用了多个手段都没有编译成功!!! 谁有现成的mod文件,提供下载地址

回复

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

点评

[attachimg]567731[/attachimg]出现以上错误  详情 回复 发表于 2025-11-17 21:12
多谢分享 111111111  发表于 2025-11-16 21:28
PCHH 发表于 2025-11-15 18:11:53
多谢分享
a66 发表于 2025-11-15 16:01:25
本帖最后由 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
}

点评

感谢分享!  发表于 2025-11-15 21:39
build-i386-pc/grub/i386-pc/ntboot.mod 编译完成后,没有ntboot。mod文件,路径不不对,没有上面这个路径 mod 路径在grub-core  发表于 2025-11-15 17:31
不行,deepin ,多处出现错误,强过至./autogen.sh Gnulib not yet bootstrapped; run ./bootstrap instead.  发表于 2025-11-15 17:15
xuan5757 发表于 2025-11-15 15:33:07
好东西,我顶楼主。
hzyry2046 发表于 2025-11-15 15:12:47
直接去wintoflash大佬的仓库那边下release吧,有ntboot.mod的

点评

给个网址  发表于 2025-11-15 17:41

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2026-1-11 04:19

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表