无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 239|回复: 10
打印 上一主题 下一主题

[求助] grub2引导,谁有ntboot.mod下载地址?

[复制链接]
跳转到指定楼层
1#
发表于 前天 14:33 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
grub2,用ntboot 引导wim 等文件太方便了
但是手头上没有ntboot.mod文件
从网上下了源码,用了多个手段都没有编译成功!!!

谁有现成的mod文件,
提供下载地址
2#
发表于 前天 15:12 | 只看该作者
直接去wintoflash大佬的仓库那边下release吧,有ntboot.mod的

点评

给个网址  发表于 前天 17:41
回复

使用道具 举报

3#
发表于 前天 15:33 | 只看该作者
好东西,我顶楼主。
回复

使用道具 举报

4#
发表于 前天 16:01 | 只看该作者
本帖最后由 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
}

点评

感谢分享!  发表于 前天 21:39
build-i386-pc/grub/i386-pc/ntboot.mod 编译完成后,没有ntboot。mod文件,路径不不对,没有上面这个路径 mod 路径在grub-core  发表于 前天 17:31
不行,deepin ,多处出现错误,强过至./autogen.sh Gnulib not yet bootstrapped; run ./bootstrap instead.  发表于 前天 17:15
回复

使用道具 举报

5#
发表于 前天 18:11 | 只看该作者
多谢分享
回复

使用道具 举报

6#
发表于 前天 21:11 | 只看该作者

点评

多谢分享 111111111  发表于 昨天 21:28
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

闽公网安备 35020302032614号

GMT+8, 2025-11-17 06:10

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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