在 Windows 10 上使用 Genisoimage 或 Mkisofs

问题描述 投票:0回答:4

我已经多次搜索如何在 Windows 10 上下载 Genisoimage 和 Mkisofs。但是,一些链接和 Stack Overflow 帖子说 Genisoimage/Mkisofs 仅适用于 Linux,反之亦然。我尝试下载 Mkisofs,甚至将 mkisofs.exe 添加到我的 Path 变量中,但当尝试在 Visual Studio Code 中使用 genisoimage/mkisofs 命令时,它仍然未被识别为内部或外部命令。任何有关如何正确下载 GenIsoImage 或 Mkisofs 以用作命令的建议都会很有帮助!

P.S:我是 Stack Overflow 的新手,所以如果我的问题有任何问题,我很抱歉。

windows-10 iso non-admin
4个回答
2
投票

Win32 https://cdrtfe.sourceforge.io/tools/index_en.html

Winx86_x64编译 https://mega.nz/#!Ngxz2YwB!ES1jNiz5LZG_Eh_8yfb4ilCH1qMaxV1ixki_947qjrc

最新的 xorriso,了解 mkisofs 等 https://github.com/PeyTy/xorriso-exe-for-windows/archive/master.zip

genisoimage 是一个旧的,根据互联网上的评论者的说法,mkisofs 的 buggy 分支


2
投票

基于 https://9to5tutorial.com/recreate-a-bootable-windows-installation-iso-with-mkisofs

mkisofs.exe
可从 cdrtfe 项目获得。

如果您只对 mkisofs.exe 感兴趣,您可以下载 zip 文件并解压:

  • tools\cdrtools\mkisofs.exe
  • tools\cygwin\cygwin*

进入同一文件夹,例如:

PS C:\image_build\mkisofs> dir


    Directory: C:\image_build\mkisofs


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a----        17/09/2022  11:22 AM             48 cygwin.ini
-a----        17/09/2022  11:22 AM        3458775 cygwin1.dll
-a----        17/09/2022  11:16 AM        1356800 mkisofs.exe

测试命令行:

PS C:\image_build\mkisofs> .\mkisofs.exe -version
mkisofs 3.02a10 2021/07/23 (i686-pc-cygwin)

Copyright (C) 1993-1997 Eric Youngdale
Copyright (C) 1997-2020 Joerg Schilling
Copyright (C) 1997-2001 James Pearson
Copyright (C) 2006      HELIOS Software GmbH

请记住,Helios 本身尚未测试 Windows 版本的 mkisofs,并且他们本身不提供 Windows 版本。 更多信息可在 helios mkisofs 页面上找到,其中也有一些有关该工具的有用信息。

对于 VSCode 内部,我的建议是使用绝对路径,而不是依赖正确设置的 Path 环境。

使用绝对路径从基本 Windows 目录运行仍然有效:

PS C:\> C:\image_build\mkisofs\mkisofs.exe -version
mkisofs 3.02a10 2021/07/23 (i686-pc-cygwin)

Copyright (C) 1993-1997 Eric Youngdale
Copyright (C) 1997-2020 Joerg Schilling
Copyright (C) 1997-2001 James Pearson
Copyright (C) 2006      HELIOS Software GmbH

1
投票

这里是 Windows 10 下最新版本“mkisofs”cygwin (x64) 的数据包列表

cygwin下的主包是“genisoimage”。

我将使用“ftp-stud.hs-esslingen.de”例如:

“genisoimage”是 cdrkit 的一部分......所以你可以在这里找到它:

下载(仅从下载中提取“usr/bin”部分):

https://ftp-stud.hs-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin/x86_64/release/cdrkit/genisoimage/genisoimage-1.1.11-1.tar.bz2

依赖关系:

https://ftp-stud.hs-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin/x86_64/release/bzip2/libbz2_1/libbz2_1-1.0.8-1.tar.xz

https://ftp-stud.hs-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin/x86_64/release/file/file-5.39-1.tar.xz

https://ftp-stud.hs-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin/x86_64/release/libiconv/libiconv2/libiconv2-1.16-2.tar.xz

https://ftp-stud.hs-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin/x86_64/release/zlib/zlib0/zlib0-1.2.11-1.tar.xz

https://ftp-stud.hs-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin/x86_64/release/cygwin/cygwin-3.3.2-1.tar.xz

从 cygwin-x.x.x-x.tar 中仅提取 cygpath.exe、cygwin1.dll、mount.exe 和 ps.exe

https://ftp-stud.hs-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin/x86_64/release/gcc/libgcc1/libgcc1-11.2.0-1.tar.zst

.tar.zst 是一种新的存档格式,由 Cygwin-Packager 使用:

您可以从此处使用 7-Zip (ZSTD) 版本提取此存档:

https://github.com/mcmilk/7-Zip-zstd/releases

将“genisoimage.exe”复制到“mkisofs.exe”

示例(使用引导扇区创建 iso 映像):

isolinux启动

mkisofs\mkisofs.exe -hide-rr-moved -l -v -d -N -R -J -V "DiskLabel" -b "isolinux/isolinux.bin" -no-emul-boot -boot-load-size 4 -boot-info-table -o /cygdrive/c/ISO.iso 路径 /cygdrive/c/DVD-IMAGE-FILES 路径/

uefi启动

mkisofs\mkisofs.exe -hide-rr-moved -l -v -d -N -R -J -V "DiskLabel" -b "boot/grub/efi.img" -no-emul-boot -boot-load -size 4 -boot-info-table -o /cygdrive/c/UEFI-ISO.iso 路径 /cygdrive/c/DVD-IMAGE-FILES 路径/

提示:

用于查找 bootsector-image 的“-b”参数必须包含 “PATH-TO-DVD-IMAGE-FILES”下提供的路径的相对路径 (此处:/cygdrive/c/PATH-TO-DVD-IMAGE-FILES/),根路径 源文件!!!

输出“mkisofs.exe”:

C:\mkisofs\usr >mkisofs.exe --version

mkisofs 2.01 不是您在这里看到的。这条线只是因为太聪明而假的 GUI 和其他前端应用程序。事实上,这个程序是: genisoimage 1.1.11 (CYGWIN)


0
投票

在 Windows 上获取

mkisofs
的一种简单方法:

  • 按照说明安装 scoop https://scoop.sh/
  • scoop install cdrtools
  • mkisofs.exe
    现在应该在您的路径中

您可以在

https://github.com/ScoopInstaller/Main/blob/master/bucket/cdrtools.json
看到 scoop 从哪里抓取 cdrtools - 它是从 https://downloads.sourceforge 获取的.net/project/tumagcc/schily-cdrtools-3.02a09.7z

© www.soinside.com 2019 - 2024. All rights reserved.