无忧启动论坛

标题: 想请问下linux系统下有没有可以释放win10.esd镜像到vhd的工具? [打印本页]

作者: liuzhaoyzz    时间: 2021-5-29 06:30
标题: 想请问下linux系统下有没有可以释放win10.esd镜像到vhd的工具?
本帖最后由 liuzhaoyzz 于 2021-5-29 07:08 编辑

想请问下linux系统下有没有可以释放win10.esd镜像到vhd的工具?
比如我想在某个linux发行版中运行这个软件,释放到本地硬盘vhd文件中,从而在linux系统中把linux当做WINPE,安装win10到vhd,可以做到吗?
vhd内部的分区格式是NTFS,linux里面会不会有读写NTFS读写的问题呢?是不是需要linux发行版集成NTFS-3G这样子的用户态NTFS驱动才行?
如果可以做到,哪个发行版的什么软件可以做到?

作者: linux爱好者    时间: 2021-5-29 10:17
术业有专攻,不建议替代pe。
原生不清楚有没有,或者可以直接解压缩放下?
若只是偶而用,几乎常用的发行版本都可以,例如在veket用wine,这样的软件通常不难wine。
作者: wintoflash    时间: 2021-5-29 10:22
wimlib 可以啊。(https://wimlib.net/)
在 linux 下安装 windows,唯一比较麻烦的就是没有比较好用的 bcd 编辑器。
作者: liuzhaoyzz    时间: 2021-5-29 10:39
本帖最后由 liuzhaoyzz 于 2021-5-29 11:01 编辑
linux爱好者 发表于 2021-5-29 10:17
术业有专攻,不建议替代pe。
原生不清楚有没有,或者可以直接解压缩放下?
若只是偶而用,几乎常用的发行 ...


只是有这个想法,技多不压身啊,just for fun,呵呵。wine不符合要求,我指的是安装到实体硬盘里面的vhd。        
作者: liuzhaoyzz    时间: 2021-5-29 10:59
本帖最后由 liuzhaoyzz 于 2021-5-29 11:18 编辑
wintoflash 发表于 2021-5-29 10:22
wimlib 可以啊。(https://wimlib.net/)
在 linux 下安装 windows,唯一比较麻烦的就是没有比较好用的 bcd  ...


wimlib在windows下面我用过,一键RAMOS制作就依靠他,我看了下介绍,果然支持MACOS和linux系统,就是不知道在不同的发行版里面能否运行起来,会不会有什么运行库依赖问题,晚点尝试下。不知道有没有GUI版本。
Among other things, wimlib:

Provides fast and reliable file archiving on Windows and on UNIX-like systems such as Mac OS X and Linux.


wimlib支持NTFS软硬链接支,支持NTFS-3G,不错不错!
wimlib is fully supported on both Windows and UNIX-like systems. On Windows, wimlib uses native Windows API calls to correctly handle advanced NTFS features such as hard links, symbolic links, junctions, named data streams, and security descriptors. On UNIX, wimlib handles hard links and symbolic links and can optionally handle UNIX-specific metadata such as uids, gids, modes, and extended attributes. UNIX users can take advantage of the integration with NTFS-3G to directly capture from and apply to block devices containing NTFS filesystems. This allows Windows operating systems to be backed up and deployed from a live Linux system, for example. Linux users can also take advantage of the FUSE support to mount WIM images read-only or read-write (see: wimmount, wimmountrw).

wimlib也支持esd,加密的esd好像不行,我没用过加密的esd。
wimlib can also be used to handle ESD (Electronic Software Download) (.esd) archives in addition to WIM (.wim) archives. ESD archives are WIM archives that use solid-mode LZMS compression, and so usually have a significantly smaller size than regular WIM archives. However, Microsoft sometimes distributes ESD archives in (partially) encrypted form. wimlib cannot decrypt such archives by itself.

BCD看起来似乎有点麻烦,不知道github上面有没有开源的、release版本的现成的工具。

另外UEFI引导似乎要用EFIbootmgr搞定,没用过,习惯了GUI,CUI界面感觉有点麻烦。
作者: 我心飞翔1995    时间: 2021-5-29 11:17
liuzhaoyzz 发表于 2021-5-29 10:59
wimlib在windows下面我用过,一键RAMOS制作就依靠他,我看了下介绍,果然支持MACOS和linux系统,就是不 ...

有源码就好解决,自己编译一下的事情,不同版本也是linux内核,依赖问题是通病,自己加上参数就可以
作者: liuzhaoyzz    时间: 2021-5-29 11:27
本帖最后由 liuzhaoyzz 于 2021-5-29 11:38 编辑
我心飞翔1995 发表于 2021-5-29 11:17
有源码就好解决,自己编译一下的事情,不同版本也是linux内核,依赖问题是通病,自己加上参数就可以


看了介绍,linux下面挂载vhd感觉有点麻烦?好像要用linux下面的vmware或者qemu,不懂。Ubuntu / Debian下面安装libguestfs-tools好像也可以。

linux是一个全新的知识和文化体系,我总是想用windows的GUI观点试图去搞定linux的问题。很多东西不懂。
作者: wahopi    时间: 2021-5-29 17:34
用7zip解壓即可
作者: 窄口牛    时间: 2021-5-29 17:49
vhd需要驱动。bcd太难弄,在Linux下,别的都有办法。
作者: liuzhaoyzz    时间: 2021-5-30 08:13
本帖最后由 liuzhaoyzz 于 2021-5-30 08:19 编辑
wahopi 发表于 2021-5-29 17:34
用7zip解壓即可

按照这篇博客https://www.cnblogs.com/yiwd/p/3649094.html,我下载了p7zip_16.02_x86_linux_bin.tar.bz2,解压之后,用sh install.shl命令安装好了7z。
然后用7za x 394.esd -o3944命令e解压esd,结果3944目录里面的文件不对。
[root@veket:~]$7za x 394.esd -o3944

7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=zh_CN.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz (306C3),ASM,AES-NI)

Scanning the drive for archives:
1 file, 413160478 bytes (395 MiB)

Extracting archive: 394.esd

WARNINGS:
There are data after the end of archive

--
Path = 394.esd
Type = Cab
WARNINGS:
There are data after the end of archive
Offset = 208
Physical Size = 4073802
Tail Size = 409086468
Method = MSZip
Blocks = 1
Volumes = 1
Volume Index = 0
ID = 4321

Everything is Ok

Archives with Warnings: 1

Warnings: 1
Files: 32
Size:       11136078
Compressed: 413160478


好像7z的linux 16.02版本对于esd支持不行?linux 16.02版本是linux版本的最新版了。



截图_2021-05-30_08-03-36.png (3.87 KB, 下载次数: 72)

截图_2021-05-30_08-03-36.png

作者: liuzhaoyzz    时间: 2021-5-30 08:41
本帖最后由 liuzhaoyzz 于 2021-5-30 11:52 编辑
我心飞翔1995 发表于 2021-5-29 11:17
有源码就好解决,自己编译一下的事情,不同版本也是linux内核,依赖问题是通病,自己加上参数就可以

https://wimlib.net/index.html
我下载了wimlib,在veket系统,不知道要怎么安装,wimlib官网没看到介绍。

[root@veket:~]$./configure && make && sudo make install
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/root/wimlib-1.13.4':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

https://gitee.com/HEYAHONG/wimlib
This section documents the dependencies of wimlib and the programs distributed
with it, when building for a UNIX-like system from source.  If you have
downloaded the Windows binary distribution of wimlib and wimlib-imagex then all
dependencies were already included and this section is irrelevant.
* libxml2 (required)
This is a commonly used free library to read and write XML documents.
Almost all Linux distributions should include this; however, you may
need to install the header files, which might be in a package named
"libxml2-dev" or similar.  For more information see http://xmlsoft.org/.
* libfuse (optional but recommended)
Unless configured --without-fuse, wimlib requires a non-ancient version
of libfuse.  Most Linux distributions already include this, but make
sure you have the libfuse package installed, and also libfuse-dev if
your distribution distributes header files separately.  FUSE also
requires a kernel module.  If the kernel module is available it should
automatically be loaded if you try to mount a WIM image.  For more
information see http://fuse.sourceforge.net/.
* libntfs-3g (optional but recommended)
Unless configured --without-ntfs-3g, wimlib requires the library and
headers for libntfs-3g to be installed.  The minimum required version is
2011-4-12, but newer versions contain important bug fixes.
上面说的几个依赖,我看了,都有。
[root@veket:~]$pkg -f -g libxml2
跳过 libxml2 (已经内置)..
[root@veket:~]$pkg -f -g libfuse
跳过 libfuse2 (已经内置)..
[root@veket:~]$pkg -f -g libntfs-3g
跳过 libntfs-3g883 (已经内置)..

后面的可选依赖,安装了也没用。
* OpenSSL / libcrypto (optional)
wimlib can use the SHA-1 message digest implementation from libcrypto
(usually provided by OpenSSL) instead of compiling in yet another SHA-1
implementation.
* cdrkit (optional)
* mtools (optional)
* syslinux (optional)
* cabextract (optional)
The `mkwinpeimg' shell script will look for several other programs
depending on what options are given to it.  Depending on your Linux
distribution, you may already have these programs installed, or they may
be in the software repository.  Making an ISO filesystem requires
`mkisofs' from `cdrkit' (http://www.cdrkit.org).  Making a disk image
requires `mtools' (http://www.gnu.org/software/mtools) and `syslinux'
(http://www.syslinux.org).  Retrieving files from the Windows Automated
Installation Kit requires `cabextract' (http://www.cabextract.org.uk).


作者: liuzhaoyzz    时间: 2021-5-30 08:42
窄口牛 发表于 2021-5-29 17:49
vhd需要驱动。bcd太难弄,在Linux下,别的都有办法。

感觉不好搞。
作者: 吉毛桃    时间: 2021-5-30 09:01
liuzhaoyzz 发表于 2021-5-30 08:41
https://wimlib.net/index.html
我下载了wimlib,在veketn系统,不知道要怎么安装,wimlib官网没看到介 ...

debian和ubuntu源里也没有wimlib……源里没有的deb包就是依赖可能很旧,新版库不一定兼容。
若是需要加参数,在./configure这一步里添加的
打开看,里边就是纯文本文件,配置好后若没出错提示再进行
make
作者: 吉毛桃    时间: 2021-5-30 09:03
liuzhaoyzz 发表于 2021-5-30 08:13
按照这篇博客https://www.cnblogs.com/yiwd/p/3649094.html,我下载了p7zip_16.02_x86_linux_bin.tar.bz2 ...

veket默认的解压缩直接快速解压缩试过未有?
就是若支持的话,基本都能直接解开来。
7z可以直接官网下载
作者: 吉毛桃    时间: 2021-5-30 09:11
liuzhaoyzz 发表于 2021-5-30 08:42
感觉不好搞。

https://www.7-zip.org/a/7z2102-linux-x64.tar.xz
这是7z官网下载
作者: 吉毛桃    时间: 2021-5-30 09:12
liuzhaoyzz 发表于 2021-5-29 11:27
看了介绍,linux下面挂载vhd感觉有点麻烦?好像要用linux下面的vmware或者qemu,不懂。Ubuntu / Debian ...

若用到虚拟机的话,直接virtualbox虚拟机,用虚拟机肯定可以。
作者: liuzhaoyzz    时间: 2021-5-30 11:40
吉毛桃 发表于 2021-5-30 09:01
debian和ubuntu源里也没有wimlib……源里没有的deb包就是依赖可能很旧,新版库不一定兼容。
若是需要加 ...

config里面的配置,是wimlib官网的,应该不需要修改吧,就是要修改我也不懂啊。
如果是依赖库版本新旧的问题,也就是兼容性问题,那就有点麻烦了。
作者: liuzhaoyzz    时间: 2021-5-30 11:44
吉毛桃 发表于 2021-5-30 09:03
veket默认的解压缩直接快速解压缩试过未有?
就是若支持的话,基本都能直接解开来。
7z可以直接官网下 ...

veket默认的解压缩似乎无法解开esd格式文件。
7z我就是在官网下载的linux版本的,安装好之后,我试过了压缩和解压缩7z文件都没有问题,就是解压缩esd文件不行,解压缩后的文件和实际上esd内部的文件不相符,esd内部实际的文件我在windows下面用7z看了,不同,可能linux版本太旧了,是16.02版本的,windows版本好像是19版本的。
作者: liuzhaoyzz    时间: 2021-5-30 11:45
吉毛桃 发表于 2021-5-30 09:12
若用到虚拟机的话,直接virtualbox虚拟机,用虚拟机肯定可以。

虚拟机不用考虑了,我想在实体机尝试着玩玩。
作者: 吉毛桃    时间: 2021-5-30 11:49
liuzhaoyzz 发表于 2021-5-30 11:45
虚拟机不用考虑了,我想在实体机尝试着玩玩。

rar呢?可以不?veket也有集成rar,winrar官网下载也行,直接替换/usr/bin同名文件就可以直接用
你说的esd文件有没有小的?若有的话上传帮你测试一下解压缩。我的硬盘上没有esd文件。
若只是解压缩的话应该可以实现

作者: 吉毛桃    时间: 2021-5-30 11:51
本帖最后由 吉毛桃 于 2021-5-30 11:56 编辑
liuzhaoyzz 发表于 2021-5-30 11:45
虚拟机不用考虑了,我想在实体机尝试着玩玩。

peazip可以试
下载点:
https://cloud.189.cn/t/RjayummY3aum
链接: https://pan.baidu.com/s/1Im3fxWf6bjK_J2mypJL2Fg 提取码: u7td


修改补充:
看了说明,好像没有esd,但可以wim
读取: 7Z, ACE, ARC/WRC, ARJ, BR, BZ/TBZ, CAB, CHM/CHW/HXS, COMPOUND (MSI, DOC, XLS, PPT), CPIO, GZ/TGZ, ISO, Java (JAR, EAR, WAR), LZH/LHA, Linux (DEB, PET/PUP, RPM, SLP), NSIS, OOo, PAK/PK3/PK4, PAQ/LPAQ/ZPAQ, PEA, QUAD/BALZ/BCM, RAR, TAR, WIM/SWM, XPI, Z/TZ, ZIP, ZST...
作者: liuzhaoyzz    时间: 2021-5-30 12:04
吉毛桃 发表于 2021-5-30 09:03
veket默认的解压缩直接快速解压缩试过未有?
就是若支持的话,基本都能直接解开来。
7z可以直接官网下 ...

哦,我刚才又尝试了下,veket里面,右击esd文件,用归档管理器打开,可以正确地解压esd文件。解压后的文件是对的。veket挺强的。

截图_2021-05-30_12-03-37.png (25.73 KB, 下载次数: 78)

截图_2021-05-30_12-03-37.png

作者: liuzhaoyzz    时间: 2021-5-30 12:10
本帖最后由 liuzhaoyzz 于 2021-5-30 12:24 编辑
吉毛桃 发表于 2021-5-30 11:49
rar呢?可以不?veket也有集成rar,winrar官网下载也行,直接替换/usr/bin同名文件就可以直接用
你说的es ...

veket里面,rar用归档管理器打开,解压缩没有问题。veket里面我没有找到winrar-linux版本啊?
发个esd文件,397MB,你试试:
https://cloud.189.cn/t/IJBfyqVf2EBv

作者: liuzhaoyzz    时间: 2021-5-30 12:20
吉毛桃 发表于 2021-5-30 11:51
peazip可以试
下载点:
https://cloud.189.cn/t/RjayummY3aum

刚才用你发的peazip试了下,可以解压esd文件。不过peazip解压到指定文件夹的时候,按一个字符会出来2个,比如输入394,结果变成了339944目录,不过不是大问题,文件夹名字可以提前创建。

作者: 吉毛桃    时间: 2021-5-30 12:22
liuzhaoyzz 发表于 2021-5-30 12:10
veket里面,rar用归档管理器打开,解压缩没有问题。
发个esd文件,397MB,你试试:
https://cloud.189. ...

不是,我的意思是winrar能不能打开esd?它有linux版本可以用
作者: liuzhaoyzz    时间: 2021-5-30 12:38
本帖最后由 liuzhaoyzz 于 2021-5-30 12:41 编辑
吉毛桃 发表于 2021-5-30 12:22
不是,我的意思是winrar能不能打开esd?它有linux版本可以用

下载rarlinux安装包http://www.rarsoft.com/download.htm,附件中目前最新的版本在windows下解压之后就是rarlinux-4.0.b4.tar.gz了。

tar zxvf rarlinux-4.0.b4.tar.gz

cd rar

make

make install

至此安装完毕,输入rar按回车

按照上面的说明,成功安装了rarlinux-x64-6.0.2b1.tar.gz

sh-5.0# rar e 394.esd /root/394

RAR 6.02 beta 1   Copyright (c) 1993-2021 Alexander Roshal   17 May 2021
Trial version             Type 'rar -?' for help

394.esd is not RAR archive
No files to extract

似乎winrar-linx版本不支持esd文件解压。
作者: 15311981886    时间: 2021-5-31 17:41
提示: 作者被禁止或删除 内容自动屏蔽
作者: 窄口牛    时间: 2021-6-1 06:52
可以解压,但是处理不了wim或者esd里面的链接。
作者: liuzhaoyzz    时间: 2021-6-1 07:06
15311981886 发表于 2021-5-31 17:41
./configure 后面加上 --without-ntfs-3g  --without-fuse

看了提示,出错的原因似乎不是这个参数啊。
[root@veket /mnt/sdb2/linux/veket/wimlib-1.13.4] $ ./configure --without-ntfs-3g  --without-fuse
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking whether make supports nested variables... no
checking whether make supports nested variables... (cached) no
checking whether make supports the include directive... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
checking for clang... no
configure: error: in `/mnt/sdb2/linux/veket/wimlib-1.13.4':
configure: error: no acceptable C compiler found in $PATH

See `config.log' for more details

作者: liuzhaoyzz    时间: 2021-6-1 07:07
窄口牛 发表于 2021-6-1 06:52
可以解压,但是处理不了wim或者esd里面的链接。

你用的什么软件解压缩的?
作者: 窄口牛    时间: 2021-6-1 08:10
现在的新版大部分都可以,用7z多,解压了没用,一般就是提取文件而已。
作者: liuzhaoyzz    时间: 2021-6-1 08:12
窄口牛 发表于 2021-6-1 08:10
现在的新版大部分都可以,用7z多,解压了没用,一般就是提取文件而已。

linux下面,我在10楼已经试过了,7z-linux不能解压缩esd。
作者: 窄口牛    时间: 2021-6-1 08:13
XP在Linux下可以操弄,解压,改引导,写mbr,都没问题,nt6以上有了链接,就不行了,菜单也变成了bcd,就更没招了。
作者: 窄口牛    时间: 2021-6-1 08:27
哦,对,因为esd有索引,是多包,所以Linux做不到,想起来了,抱歉。
作者: 吉毛桃    时间: 2021-6-2 08:20
liuzhaoyzz 发表于 2021-6-1 07:06
看了提示,出错的原因似乎不是这个参数啊。
[root@veket /mnt/sdb2/linux/veket/wimlib-1.13.4] $ ./con ...

好像是你未挂载开发包?
链接:https://pan.baidu.com/s/1ea1TNp15b0NrvdRYq0i2VQ
提取码:3t25
作者: liuzhaoyzz    时间: 2021-6-2 15:36
吉毛桃 发表于 2021-6-2 08:20
好像是你未挂载开发包?
链接:https://pan.baidu.com/s/1ea1TNp15b0NrvdRYq0i2VQ
提取码:3t25

挂载你分享的开发包之后,感觉上编译有进展,但是似乎还是缺乏依赖。

[root@veket:~]$./configure && make && sudo make install
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for ar... ar
checking the archiver (ar) interface... ar
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to enable C11 features... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for futimens... yes
checking for utimensat... yes
checking for flock... yes
checking for mempcpy... yes
checking for openat... yes
checking for fstatat... yes
checking for readlinkat... yes
checking for fdopendir... yes
checking for posix_fallocate... yes
checking for llistxattr... yes
checking for lgetxattr... yes
checking for fsetxattr... yes
checking for lsetxattr... yes
checking for getopt_long_only... yes
checking for alloca.h... yes
checking for byteswap.h... yes
checking for endian.h... yes
checking for errno.h... yes
checking for glob.h... yes
checking for machine/endian.h... no
checking for stdarg.h... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for sys/byteorder.h... no
checking for sys/endian.h... no
checking for sys/file.h... yes
checking for sys/syscall.h... yes
checking for sys/sysctl.h... yes
checking for sys/times.h... yes
checking for sys/xattr.h... yes
checking for time.h... yes
checking for utime.h... yes
checking for struct stat.st_mtim... yes
checking for gcc options needed to detect all undeclared functions... none needed
checking whether __NR_getrandom is declared... yes
checking if compiler needs -Werror to reject unknown flags... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBXML2... yes
checking whether to include support for ntfs-3g... yes
checking for LIBNTFS_3G... yes
checking whether to include support for mounting WIMs... yes
checking for LIBFUSE... yes
checking for mq_open in -lrt... yes
checking whether to use SSSE3-accelerated SHA-1... no
checking whether to use SHA-1 implementation from system libcrypto... auto
checking for LIBCRYPTO... yes
checking whether to include error messages... yes
checking whether to include assertions... yes
checking whether to include support for multi-threaded compression... yes
checking whether to enable supporting code for tests... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Doxyfile
config.status: creating wimlib.pc
config.status: creating programs/mkwinpeimg
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
make  all-am
make[1]: 进入目录“/mnt/sda2/linux/veket/wimlib-1.13.4”
  CC       programs/wimlib_imagex-imagex.o
  CC       src/libwim_la-add_image.lo
  CC       src/libwim_la-avl_tree.lo
  CC       src/libwim_la-blob_table.lo
  CC       src/libwim_la-compress.lo
  CC       src/libwim_la-compress_common.lo
  CC       src/libwim_la-compress_parallel.lo
  CC       src/libwim_la-compress_serial.lo
  CC       src/libwim_la-decompress.lo
  CC       src/libwim_la-decompress_common.lo
  CC       src/libwim_la-delete_image.lo
  CC       src/libwim_la-dentry.lo
  CC       src/libwim_la-divsufsort.lo
  CC       src/libwim_la-encoding.lo
  CC       src/libwim_la-error.lo
  CC       src/libwim_la-export_image.lo
  CC       src/libwim_la-extract.lo
  CC       src/libwim_la-file_io.lo
  CC       src/libwim_la-header.lo
  CC       src/libwim_la-inode.lo
  CC       src/libwim_la-inode_fixup.lo
  CC       src/libwim_la-inode_table.lo
  CC       src/libwim_la-integrity.lo
  CC       src/libwim_la-iterate_dir.lo
  CC       src/libwim_la-join.lo
  CC       src/libwim_la-lcpit_matchfinder.lo
  CC       src/libwim_la-lzms_common.lo
  CC       src/libwim_la-lzms_compress.lo
  CC       src/libwim_la-lzms_decompress.lo
  CC       src/libwim_la-lzx_common.lo
  CC       src/libwim_la-lzx_compress.lo
  CC       src/libwim_la-lzx_decompress.lo
  CC       src/libwim_la-metadata_resource.lo
  CC       src/libwim_la-mount_image.lo
  CC       src/libwim_la-pathlist.lo
  CC       src/libwim_la-paths.lo
  CC       src/libwim_la-pattern.lo
  CC       src/libwim_la-progress.lo
  CC       src/libwim_la-reference.lo
  CC       src/libwim_la-registry.lo
  CC       src/libwim_la-reparse.lo
  CC       src/libwim_la-resource.lo
  CC       src/libwim_la-scan.lo
  CC       src/libwim_la-security.lo
  CC       src/libwim_la-sha1.lo
  CC       src/libwim_la-solid.lo
  CC       src/libwim_la-split.lo
  CC       src/libwim_la-tagged_items.lo
  CC       src/libwim_la-template.lo
  CC       src/libwim_la-textfile.lo
  CC       src/libwim_la-timestamp.lo
  CC       src/libwim_la-update_image.lo
  CC       src/libwim_la-util.lo
  CC       src/libwim_la-verify.lo
  CC       src/libwim_la-wim.lo
  CC       src/libwim_la-write.lo
  CC       src/libwim_la-x86_cpu_features.lo
  CC       src/libwim_la-xml.lo
  CC       src/libwim_la-xml_windows.lo
  CC       src/libwim_la-xpress_compress.lo
  CC       src/libwim_la-xpress_decompress.lo
  CC       src/libwim_la-ntfs-3g_apply.lo
  CC       src/libwim_la-ntfs-3g_capture.lo
  CC       src/libwim_la-unix_apply.lo
  CC       src/libwim_la-unix_capture.lo
  CCLD     libwim.la
/usr/bin/ld: cannot find -lxml2
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:1284:libwim.la] 错误 1
make[1]: 离开目录“/mnt/sda2/linux/veket/wimlib-1.13.4”


作者: 吉毛桃    时间: 2021-6-2 16:15
本帖最后由 吉毛桃 于 2021-6-2 18:27 编辑

您有一份文件待查收!即刻点击链接获取文件:https://cowtransfer.com/s/15134107e8184c 或进入 cowtransfer.com 获取,在首页输入取件码:620025(24小时内有效)

作者: 吉毛桃    时间: 2021-6-2 16:18
liuzhaoyzz 发表于 2021-6-2 15:36
挂载你分享的开发包之后,感觉上编译有进展,但是似乎还是缺乏依赖。

[root@veket:~]$./configure &&  ...

37楼的pet能解决这个错误。
但是可能后边还会有……就是新软件容易编译,旧文件未跟进更新的话会很难。
例如chmsee这个软件很好,但作者没有更新了,然后现在基本不可能编译成功了,是必须要修改源代码的了。

然后有些软件,只你找到二进制的包,例如deb,即使不是在veket上边编译的,也可能运行得起来。

这个软件有没有deb或rpm包?有的话你发出来,下载看看是依赖那些库就可以确定容易不容易编译了
作者: liuzhaoyzz    时间: 2021-6-2 17:14
本帖最后由 liuzhaoyzz 于 2021-6-2 17:21 编辑
吉毛桃 发表于 2021-6-2 16:15
您有一份文件待查收!即刻点击链接获取文件:https://cowtransfer.com/s/15134107e8184c 或进入 cowtransfe ...

又前进了一步,但是还有几个错误。官网没有提供deb或者rpm包,有源代码,需要自己编译。https://wimlib.net/index.html
现在解压缩esd看起来不是大问题,veket自带的解压缩软件(我不知道叫什么)可以解压缩esd;peazip也可以解压缩esd。linux下面编辑BCD以及添加UEFI引导序列好像有点麻烦,这是可以预见的难题。

[root@veket:~]$./configure && make && sudo make install
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for ar... ar
checking the archiver (ar) interface... ar
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to enable C11 features... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for futimens... yes
checking for utimensat... yes
checking for flock... yes
checking for mempcpy... yes
checking for openat... yes
checking for fstatat... yes
checking for readlinkat... yes
checking for fdopendir... yes
checking for posix_fallocate... yes
checking for llistxattr... yes
checking for lgetxattr... yes
checking for fsetxattr... yes
checking for lsetxattr... yes
checking for getopt_long_only... yes
checking for alloca.h... yes
checking for byteswap.h... yes
checking for endian.h... yes
checking for errno.h... yes
checking for glob.h... yes
checking for machine/endian.h... no
checking for stdarg.h... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for sys/byteorder.h... no
checking for sys/endian.h... no
checking for sys/file.h... yes
checking for sys/syscall.h... yes
checking for sys/sysctl.h... yes
checking for sys/times.h... yes
checking for sys/xattr.h... yes
checking for time.h... yes
checking for utime.h... yes
checking for struct stat.st_mtim... yes
checking for gcc options needed to detect all undeclared functions... none needed
checking whether __NR_getrandom is declared... yes
checking if compiler needs -Werror to reject unknown flags... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBXML2... yes
checking whether to include support for ntfs-3g... yes
checking for LIBNTFS_3G... yes
checking whether to include support for mounting WIMs... yes
checking for LIBFUSE... yes
checking for mq_open in -lrt... yes
checking whether to use SSSE3-accelerated SHA-1... no
checking whether to use SHA-1 implementation from system libcrypto... auto
checking for LIBCRYPTO... yes
checking whether to include error messages... yes
checking whether to include assertions... yes
checking whether to include support for multi-threaded compression... yes
checking whether to enable supporting code for tests... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Doxyfile
config.status: creating wimlib.pc
config.status: creating programs/mkwinpeimg
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
make  all-am
make[1]: 进入目录“/mnt/sda2/linux/veket/wimlib-1.13.4”
  CCLD     libwim.la
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libxml2.a(xpath.o): relocation R_X86_64_PC32 against symbol `xmlFree' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:1284:libwim.la] 错误 1
make[1]: 离开目录“/mnt/sda2/linux/veket/wimlib-1.13.4”
make: *** [Makefile:983:all] 错误 2


wimlib-1.13.4.tar.gz

1016.03 KB, 下载次数: 0, 下载积分: 无忧币 -2

libxml2-dev_2.9.4.rar

1005.12 KB, 下载次数: 8, 下载积分: 无忧币 -2


作者: 吉毛桃    时间: 2021-6-2 18:21
liuzhaoyzz 发表于 2021-6-2 17:14
又前进了一步,但是还有几个错误。官网没有提供deb或者rpm包,有源代码,需要自己编译。https://wimlib.n ...

原来是这个,不用自己编译,源里有
作者: 吉毛桃    时间: 2021-6-2 18:24
liuzhaoyzz 发表于 2021-6-2 17:14
又前进了一步,但是还有几个错误。官网没有提供deb或者rpm包,有源代码,需要自己编译。https://wimlib.n ...

您有一份文件待查收!即刻点击链接获取文件:https://cowtransfer.com/s/284b41505e334b 或进入 cowtransfer.com 获取,在首页输入取件码:014376(24小时内有效)


v20用的
作者: 吉毛桃    时间: 2021-6-2 18:25
您有一份文件待查收!即刻点击链接获取文件:https://cowtransfer.com/s/45972105a3cf43 或进入 cowtransfer.com 获取,在首页输入取件码:135915(24小时内有效)

lucky8k 20用的
作者: 吉毛桃    时间: 2021-6-2 18:27
liuzhaoyzz 发表于 2021-6-2 17:14
又前进了一步,但是还有几个错误。官网没有提供deb或者rpm包,有源代码,需要自己编译。https://wimlib.n ...

它是没菜单的,就是最新源码编译也一样是没有菜单的,但是它有以下命令可以用:
amuFormat.sh  mcopy       mlabel      mtools      wimcapture     wimmountrw
lz            mdel        mmd         mtoolstest  wimdelete      wimoptimize
mattrib       mdeltree    mmount      mtype       wimdir         wimsplit
mbadblocks    mdir        mmove       mxtar       wimexport      wimunmount
mcat          mdu         mpartition  mzip        wimextract     wimupdate
mcd           mformat     mrd         tgz         wiminfo        wimverify
mcheck        minfo       mren        uz          wimjoin
mclasserase   mkmanifest  mshortname  wimappend   wimlib-imagex
mcomp         mkwinpeimg  mshowfat    wimapply    wimmount

作者: liuzhaoyzz    时间: 2021-6-2 20:14
本帖最后由 liuzhaoyzz 于 2021-6-2 20:18 编辑

devx20_20.0.sfs
libxml2-dev_2.9.4.pet
lucky8k 20用的lucky8k-libwim15_1.13.1-l20.pet
装了以上几个依赖包,在lucky8k-v20里面还是出错:

[root@veket:~]$./configure && make && sudo make install
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for ar... ar
checking the archiver (ar) interface... ar
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to enable C11 features... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for futimens... yes
checking for utimensat... yes
checking for flock... yes
checking for mempcpy... yes
checking for openat... yes
checking for fstatat... yes
checking for readlinkat... yes
checking for fdopendir... yes
checking for posix_fallocate... yes
checking for llistxattr... yes
checking for lgetxattr... yes
checking for fsetxattr... yes
checking for lsetxattr... yes
checking for getopt_long_only... yes
checking for alloca.h... yes
checking for byteswap.h... yes
checking for endian.h... yes
checking for errno.h... yes
checking for glob.h... yes
checking for machine/endian.h... no
checking for stdarg.h... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for sys/byteorder.h... no
checking for sys/endian.h... no
checking for sys/file.h... yes
checking for sys/syscall.h... yes
checking for sys/sysctl.h... yes
checking for sys/times.h... yes
checking for sys/xattr.h... yes
checking for time.h... yes
checking for utime.h... yes
checking for struct stat.st_mtim... yes
checking for gcc options needed to detect all undeclared functions... none needed
checking whether __NR_getrandom is declared... yes
checking if compiler needs -Werror to reject unknown flags... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBXML2... yes
checking whether to include support for ntfs-3g... yes
checking for LIBNTFS_3G... yes
checking whether to include support for mounting WIMs... yes
checking for LIBFUSE... yes
checking for mq_open in -lrt... yes
checking whether to use SSSE3-accelerated SHA-1... no
checking whether to use SHA-1 implementation from system libcrypto... auto
checking for LIBCRYPTO... yes
checking whether to include error messages... yes
checking whether to include assertions... yes
checking whether to include support for multi-threaded compression... yes
checking whether to enable supporting code for tests... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Doxyfile
config.status: creating wimlib.pc
config.status: creating programs/mkwinpeimg
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
make  all-am
make[1]: 进入目录“/mnt/sdb2/linux/veket/wimlib-1.13.4”
  CC       programs/wimlib_imagex-imagex.o
  CC       src/libwim_la-add_image.lo
  CC       src/libwim_la-avl_tree.lo
  CC       src/libwim_la-blob_table.lo
  CC       src/libwim_la-compress.lo
  CC       src/libwim_la-compress_common.lo
  CC       src/libwim_la-compress_parallel.lo
  CC       src/libwim_la-compress_serial.lo
  CC       src/libwim_la-decompress.lo
  CC       src/libwim_la-decompress_common.lo
  CC       src/libwim_la-delete_image.lo
  CC       src/libwim_la-dentry.lo
  CC       src/libwim_la-divsufsort.lo
  CC       src/libwim_la-encoding.lo
  CC       src/libwim_la-error.lo
  CC       src/libwim_la-export_image.lo
  CC       src/libwim_la-extract.lo
  CC       src/libwim_la-file_io.lo
  CC       src/libwim_la-header.lo
  CC       src/libwim_la-inode.lo
  CC       src/libwim_la-inode_fixup.lo
  CC       src/libwim_la-inode_table.lo
  CC       src/libwim_la-integrity.lo
  CC       src/libwim_la-iterate_dir.lo
  CC       src/libwim_la-join.lo
  CC       src/libwim_la-lcpit_matchfinder.lo
  CC       src/libwim_la-lzms_common.lo
  CC       src/libwim_la-lzms_compress.lo
  CC       src/libwim_la-lzms_decompress.lo
  CC       src/libwim_la-lzx_common.lo
  CC       src/libwim_la-lzx_compress.lo
  CC       src/libwim_la-lzx_decompress.lo
  CC       src/libwim_la-metadata_resource.lo
  CC       src/libwim_la-mount_image.lo
  CC       src/libwim_la-pathlist.lo
  CC       src/libwim_la-paths.lo
  CC       src/libwim_la-pattern.lo
  CC       src/libwim_la-progress.lo
  CC       src/libwim_la-reference.lo
  CC       src/libwim_la-registry.lo
  CC       src/libwim_la-reparse.lo
  CC       src/libwim_la-resource.lo
  CC       src/libwim_la-scan.lo
  CC       src/libwim_la-security.lo
  CC       src/libwim_la-sha1.lo
  CC       src/libwim_la-solid.lo
  CC       src/libwim_la-split.lo
  CC       src/libwim_la-tagged_items.lo
  CC       src/libwim_la-template.lo
  CC       src/libwim_la-textfile.lo
  CC       src/libwim_la-timestamp.lo
  CC       src/libwim_la-update_image.lo
  CC       src/libwim_la-util.lo
  CC       src/libwim_la-verify.lo
  CC       src/libwim_la-wim.lo
  CC       src/libwim_la-write.lo
  CC       src/libwim_la-x86_cpu_features.lo
  CC       src/libwim_la-xml.lo
  CC       src/libwim_la-xml_windows.lo
  CC       src/libwim_la-xpress_compress.lo
  CC       src/libwim_la-xpress_decompress.lo
  CC       src/libwim_la-ntfs-3g_apply.lo
  CC       src/libwim_la-ntfs-3g_capture.lo
  CC       src/libwim_la-unix_apply.lo
  CC       src/libwim_la-unix_capture.lo
  CCLD     libwim.la
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libxml2.a(xpath.o): relocation R_X86_64_PC32 against symbol `xmlFree' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:1284:libwim.la] 错误 1
make[1]: 离开目录“/mnt/sdb2/linux/veket/wimlib-1.13.4”
make: *** [Makefile:983:all] 错误 2


感觉上来说,是libxml2-dev_2.9.4.pet不对。


作者: wintoflash    时间: 2021-6-2 21:20
本帖最后由 wintoflash 于 2021-6-2 21:21 编辑

你非得在veket这种小众而且没有靠谱包管理的发行版里面搞编译,不是自找麻烦吗。。。
我在ubuntu里面试着编译了一下,提示缺啥就装啥,几分钟就弄好了。用那些小众的东西,纯属浪费时间。
  1. wget https://wimlib.net/downloads/wimlib-1.13.4.tar.gz
  2. tar -xf wimlib-1.13.4.tar.gz
  3. cd wimlib-1.13.4/
  4. apt install pkg-config libxml2-dev ntfs-3g-dev libfuse-dev
  5. ./configure
  6. make
复制代码

作者: 吉毛桃    时间: 2021-6-2 22:12
liuzhaoyzz 发表于 2021-6-2 20:14
devx20_20.0.sfs
libxml2-dev_2.9.4.pet
lucky8k 20用的lucky8k-libwim15_1.13.1-l20.pet

41楼,42楼,43楼
这软件名字不对,名字对是源里有编译好的
上传的pet是已经编译好的可以直接使用
作者: 吉毛桃    时间: 2021-6-2 22:12
liuzhaoyzz 发表于 2021-6-2 20:14
devx20_20.0.sfs
libxml2-dev_2.9.4.pet
lucky8k 20用的lucky8k-libwim15_1.13.1-l20.pet

41楼,42楼,43楼
这软件名字不对,名字对是源里有编译好的
上传的pet是已经编译好的可以直接使用
作者: 吉毛桃    时间: 2021-6-2 22:12
liuzhaoyzz 发表于 2021-6-2 20:14
devx20_20.0.sfs
libxml2-dev_2.9.4.pet
lucky8k 20用的lucky8k-libwim15_1.13.1-l20.pet

41楼,42楼,43楼
这软件名字不对,名字对是源里有编译好的
上传的pet是已经编译好的可以直接使用
作者: 吉毛桃    时间: 2021-6-2 22:14
wintoflash 发表于 2021-6-2 21:20
你非得在veket这种小众而且没有靠谱包管理的发行版里面搞编译,不是自找麻烦吗。。。
我在ubuntu里面试着 ...

那你编译个chmsee出来,deb或别的都可以,能在ubuntu新版本和debian新版本上用的看看?
作者: wintoflash    时间: 2021-6-2 22:49
本帖最后由 wintoflash 于 2021-6-2 22:51 编辑
吉毛桃 发表于 2021-6-2 22:14
那你编译个chmsee出来,deb或别的都可以,能在ubuntu新版本和debian新版本上用的看看?

你瞎扯什么呢?wimlib 跟 chmsee 是一回事吗?wimlib 项目到现在依然在活跃的开发中,chmsee 所依赖的 xulrunner 早就被 mozilla 抛弃了。
我当然能花时间让 chmsee 跑在当前版本的 ubuntu 上,那你给我钱吗?
我说 veket 就是个垃圾,是不是伤到了你们这些水军的自尊心?
作者: 吉毛桃    时间: 2021-6-3 00:14
wintoflash 发表于 2021-6-2 22:49
你瞎扯什么呢?wimlib 跟 chmsee 是一回事吗?wimlib 项目到现在依然在活跃的开发中,chmsee 所依赖的 xu ...

呵呵,无语,我需要chmsee,你不懂也没什么,
毕竟我也不会。
你有没有自尊心我不知道,但可能自卑,不然不会这样敏感。

你能编译chmsee运行,那要多少钱呢?
若少的话可以呀,ubuntu 20.04。
若贵的话给不起,当我无说过。
作者: liuzhaoyzz    时间: 2021-6-3 06:19
本帖最后由 liuzhaoyzz 于 2021-6-3 06:45 编辑
wintoflash 发表于 2021-6-2 21:20
你非得在veket这种小众而且没有靠谱包管理的发行版里面搞编译,不是自找麻烦吗。。。
我在ubuntu里面试着 ...

wget https://wimlib.net/downloads/wimlib-1.13.4.tar.gz
    tar -xf wimlib-1.13.4.tar.gz
    cd wimlib-1.13.4/
    sudo apt install pkg-config libxml2-dev ntfs-3g-dev libfuse-dev
    ./configure
    make


Ubuntu 20.10里面,前面都没问题,到了    ./configure出错了,这个需要什么依赖包?我不懂。
ubuntu@ubuntu:~/wimlib-1.13.4$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... no
checking whether make supports nested variables... no
checking whether make supports nested variables... (cached) no
checking whether make supports the include directive... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
checking for clang... no
configure: error: in `/home/ubuntu/wimlib-1.13.4':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
ubuntu@ubuntu:~/wimlib-1.13.4$ make
Command 'make' not found, but can be installed with:
sudo apt install make

然后我瞎折腾了一番:需要gawk?
ubuntu@ubuntu:~/wimlib-1.13.4$ sudo apt install gawk
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
将会同时安装下列软件:
  libsigsegv2
建议安装:
  gawk-doc
下列【新】软件包将被安装:
  gawk libsigsegv2
升级了 0 个软件包,新安装了 2 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 431 kB 的归档。
解压缩后会消耗 1,756 kB 的额外空间。
您希望继续执行吗? [Y/n] y
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
将会同时安装下列软件:
  libsigsegv2
建议安装:
  gawk-doc
下列【新】软件包将被安装:
  gawk libsigsegv2
升级了 0 个软件包,新安装了 2 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 431 kB 的归档。
解压缩后会消耗 1,756 kB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 http://archive.ubuntu.com/ubuntu groovy/main amd64 libsigsegv2 amd64 2.12-2build1 [13.9 kB]
获取:2 http://archive.ubuntu.com/ubuntu groovy/main amd64 gawk amd64 1:5.0.1+dfsg-1 [418 kB]
已下载 431 kB,耗时 4秒 (113 kB/s)
正在选中未选择的软件包 libsigsegv2:amd64。
(正在读取数据库 ... 系统当前共安装有 196869 个文件和目录。)
准备解压 .../libsigsegv2_2.12-2build1_amd64.deb  ...
正在解压 libsigsegv2:amd64 (2.12-2build1) ...
正在设置 libsigsegv2:amd64 (2.12-2build1) ...
正在选中未选择的软件包 gawk。
(正在读取数据库 ... 系统当前共安装有 196876 个文件和目录。)
准备解压 .../gawk_1%3a5.0.1+dfsg-1_amd64.deb  ...
正在解压 gawk (1:5.0.1+dfsg-1) ...
正在设置 gawk (1:5.0.1+dfsg-1) ...
正在处理用于 man-db (2.9.3-2) 的触发器 ...
正在处理用于 libc-bin (2.32-0ubuntu3) 的触发器 ...


再安装gcc,好像是成功了:
ubuntu@ubuntu:~/wimlib-1.13.4$ sudo apt install gcc
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
将会同时安装下列软件:
  binutils binutils-common binutils-x86-64-linux-gnu gcc-10 libasan6
  libatomic1 libbinutils libctf-nobfd0 libctf0 libgcc-10-dev libitm1 liblsan0
  libquadmath0 libtsan0 libubsan1
建议安装:
  binutils-doc gcc-multilib make autoconf automake libtool flex bison gcc-doc
  gcc-10-multilib gcc-10-doc gcc-10-locales
下列【新】软件包将被安装:
  binutils binutils-common binutils-x86-64-linux-gnu gcc gcc-10 libasan6
  libatomic1 libbinutils libctf-nobfd0 libctf0 libgcc-10-dev libitm1 liblsan0
  libquadmath0 libtsan0 libubsan1
升级了 0 个软件包,新安装了 16 个软件包,要卸载 0 个软件包,有 383 个软件包未被升级。
需要下载 0 B/22.2 MB 的归档。
解压缩后会消耗 91.6 MB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 binutils-common amd64 2.35.1-1ubuntu1 [212 kB]
获取:2 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libbinutils amd64 2.35.1-1ubuntu1 [481 kB]
获取:3 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libctf-nobfd0 amd64 2.35.1-1ubuntu1 [48.1 kB]
获取:4 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libctf0 amd64 2.35.1-1ubuntu1 [47.6 kB]
获取:5 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 binutils-x86-64-linux-gnu amd64 2.35.1-1ubuntu1 [1,645 kB]
获取:6 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 binutils amd64 2.35.1-1ubuntu1 [3,380 B]
获取:7 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libitm1 amd64 10.2.0-13ubuntu1 [26.3 kB]
获取:8 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libatomic1 amd64 10.2.0-13ubuntu1 [9,288 B]
获取:9 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libasan6 amd64 10.2.0-13ubuntu1 [344 kB]
获取:10 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 liblsan0 amd64 10.2.0-13ubuntu1 [144 kB]
获取:11 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libtsan0 amd64 10.2.0-13ubuntu1 [319 kB]
获取:12 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libubsan1 amd64 10.2.0-13ubuntu1 [136 kB]
获取:13 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libquadmath0 amd64 10.2.0-13ubuntu1 [146 kB]
获取:14 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libgcc-10-dev amd64 10.2.0-13ubuntu1 [2,341 kB]
获取:15 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 gcc-10 amd64 10.2.0-13ubuntu1 [16.3 MB]
获取:16 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 gcc amd64 4:10.2.0-1ubuntu1 [5,208 B]
正在选中未选择的软件包 binutils-common:amd64。
(正在读取数据库 ... 系统当前共安装有 197030 个文件和目录。)
准备解压 .../00-binutils-common_2.35.1-1ubuntu1_amd64.deb  ...
正在解压 binutils-common:amd64 (2.35.1-1ubuntu1) ...
正在选中未选择的软件包 libbinutils:amd64。
准备解压 .../01-libbinutils_2.35.1-1ubuntu1_amd64.deb  ...
正在解压 libbinutils:amd64 (2.35.1-1ubuntu1) ...
正在选中未选择的软件包 libctf-nobfd0:amd64。
准备解压 .../02-libctf-nobfd0_2.35.1-1ubuntu1_amd64.deb  ...
正在解压 libctf-nobfd0:amd64 (2.35.1-1ubuntu1) ...
正在选中未选择的软件包 libctf0:amd64。
准备解压 .../03-libctf0_2.35.1-1ubuntu1_amd64.deb  ...
正在解压 libctf0:amd64 (2.35.1-1ubuntu1) ...
正在选中未选择的软件包 binutils-x86-64-linux-gnu。
准备解压 .../04-binutils-x86-64-linux-gnu_2.35.1-1ubuntu1_amd64.deb  ...
正在解压 binutils-x86-64-linux-gnu (2.35.1-1ubuntu1) ...
正在选中未选择的软件包 binutils。
准备解压 .../05-binutils_2.35.1-1ubuntu1_amd64.deb  ...
正在解压 binutils (2.35.1-1ubuntu1) ...
正在选中未选择的软件包 libitm1:amd64。
准备解压 .../06-libitm1_10.2.0-13ubuntu1_amd64.deb  ...
正在解压 libitm1:amd64 (10.2.0-13ubuntu1) ...
正在选中未选择的软件包 libatomic1:amd64。
准备解压 .../07-libatomic1_10.2.0-13ubuntu1_amd64.deb  ...
正在解压 libatomic1:amd64 (10.2.0-13ubuntu1) ...
正在选中未选择的软件包 libasan6:amd64。
准备解压 .../08-libasan6_10.2.0-13ubuntu1_amd64.deb  ...
正在解压 libasan6:amd64 (10.2.0-13ubuntu1) ...
正在选中未选择的软件包 liblsan0:amd64。
准备解压 .../09-liblsan0_10.2.0-13ubuntu1_amd64.deb  ...
正在解压 liblsan0:amd64 (10.2.0-13ubuntu1) ...
正在选中未选择的软件包 libtsan0:amd64。
准备解压 .../10-libtsan0_10.2.0-13ubuntu1_amd64.deb  ...
正在解压 libtsan0:amd64 (10.2.0-13ubuntu1) ...
正在选中未选择的软件包 libubsan1:amd64。
准备解压 .../11-libubsan1_10.2.0-13ubuntu1_amd64.deb  ...
正在解压 libubsan1:amd64 (10.2.0-13ubuntu1) ...
正在选中未选择的软件包 libquadmath0:amd64。
准备解压 .../12-libquadmath0_10.2.0-13ubuntu1_amd64.deb  ...
正在解压 libquadmath0:amd64 (10.2.0-13ubuntu1) ...
正在选中未选择的软件包 libgcc-10-dev:amd64。
准备解压 .../13-libgcc-10-dev_10.2.0-13ubuntu1_amd64.deb  ...
正在解压 libgcc-10-dev:amd64 (10.2.0-13ubuntu1) ...
正在选中未选择的软件包 gcc-10。
准备解压 .../14-gcc-10_10.2.0-13ubuntu1_amd64.deb  ...
正在解压 gcc-10 (10.2.0-13ubuntu1) ...
正在选中未选择的软件包 gcc。
准备解压 .../15-gcc_10.2.0-1ubuntu1_amd64.deb  ...
正在解压 gcc (4:10.2.0-1ubuntu1) ...
正在设置 binutils-common:amd64 (2.35.1-1ubuntu1) ...
正在设置 libctf-nobfd0:amd64 (2.35.1-1ubuntu1) ...
正在设置 libasan6:amd64 (10.2.0-13ubuntu1) ...
正在设置 libquadmath0:amd64 (10.2.0-13ubuntu1) ...
正在设置 libatomic1:amd64 (10.2.0-13ubuntu1) ...
正在设置 libubsan1:amd64 (10.2.0-13ubuntu1) ...
正在设置 libbinutils:amd64 (2.35.1-1ubuntu1) ...
正在设置 liblsan0:amd64 (10.2.0-13ubuntu1) ...
正在设置 libitm1:amd64 (10.2.0-13ubuntu1) ...
正在设置 libtsan0:amd64 (10.2.0-13ubuntu1) ...
正在设置 libctf0:amd64 (2.35.1-1ubuntu1) ...
正在设置 libgcc-10-dev:amd64 (10.2.0-13ubuntu1) ...
正在设置 binutils-x86-64-linux-gnu (2.35.1-1ubuntu1) ...
正在设置 binutils (2.35.1-1ubuntu1) ...
正在设置 gcc-10 (10.2.0-13ubuntu1) ...
正在设置 gcc (4:10.2.0-1ubuntu1) ...
正在处理用于 man-db (2.9.3-2) 的触发器 ...
正在处理用于 libc-bin (2.32-0ubuntu3) 的触发器 ...


继续瞎折腾:要不要make?
ubuntu@ubuntu:~/wimlib-1.13.4$ sudo apt install make
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
建议安装:
  make-doc
下列【新】软件包将被安装:
  make
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 383 个软件包未被升级。
需要下载 0 B/167 kB 的归档。
解压缩后会消耗 414 kB 的额外空间。
获取:1 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 make amd64 4.3-4ubuntu1 [167 kB]
正在选中未选择的软件包 make。
(正在读取数据库 ... 系统当前共安装有 197569 个文件和目录。)
准备解压 .../make_4.3-4ubuntu1_amd64.deb  ...
正在解压 make (4.3-4ubuntu1) ...
正在设置 make (4.3-4ubuntu1) ...
正在处理用于 man-db (2.9.3-2) 的触发器 ...


然后再次./configure
ubuntu@ubuntu:~/wimlib-1.13.4$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for ar... ar
checking the archiver (ar) interface... ar
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to enable C11 features... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for futimens... yes
checking for utimensat... yes
checking for flock... yes
checking for mempcpy... yes
checking for openat... yes
checking for fstatat... yes
checking for readlinkat... yes
checking for fdopendir... yes
checking for posix_fallocate... yes
checking for llistxattr... yes
checking for lgetxattr... yes
checking for fsetxattr... yes
checking for lsetxattr... yes
checking for getopt_long_only... yes
checking for alloca.h... yes
checking for byteswap.h... yes
checking for endian.h... yes
checking for errno.h... yes
checking for glob.h... yes
checking for machine/endian.h... no
checking for stdarg.h... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for sys/byteorder.h... no
checking for sys/endian.h... no
checking for sys/file.h... yes
checking for sys/syscall.h... yes
checking for sys/sysctl.h... no
checking for sys/times.h... yes
checking for sys/xattr.h... yes
checking for time.h... yes
checking for utime.h... yes
checking for struct stat.st_mtim... yes
checking for gcc options needed to detect all undeclared functions... none needed
checking whether __NR_getrandom is declared... yes
checking if compiler needs -Werror to reject unknown flags... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBXML2... yes
checking whether to include support for ntfs-3g... yes
checking for LIBNTFS_3G... yes
checking whether to include support for mounting WIMs... yes
checking for LIBFUSE... yes
checking for mq_open in -lrt... yes
checking whether to use SSSE3-accelerated SHA-1... no
checking whether to use SHA-1 implementation from system libcrypto... auto
checking for LIBCRYPTO... no
configure: WARNING: Cannot find libcrypto: using stand-alone SHA-1 code instead
checking whether to include error messages... yes
checking whether to include assertions... yes
checking whether to include support for multi-threaded compression... yes
checking whether to enable supporting code for tests... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Doxyfile
config.status: creating wimlib.pc
config.status: creating programs/mkwinpeimg
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

make好像是成功了?
ubuntu@ubuntu:~/wimlib-1.13.4$ make
make  all-am
make[1]: 进入目录“/home/ubuntu/wimlib-1.13.4”
  CC       programs/wimlib_imagex-imagex.o
  CC       src/libwim_la-add_image.lo
  CC       src/libwim_la-avl_tree.lo
  CC       src/libwim_la-blob_table.lo
  CC       src/libwim_la-compress.lo
  CC       src/libwim_la-compress_common.lo
  CC       src/libwim_la-compress_parallel.lo
  CC       src/libwim_la-compress_serial.lo
  CC       src/libwim_la-decompress.lo
  CC       src/libwim_la-decompress_common.lo
  CC       src/libwim_la-delete_image.lo
  CC       src/libwim_la-dentry.lo
  CC       src/libwim_la-divsufsort.lo
  CC       src/libwim_la-encoding.lo
  CC       src/libwim_la-error.lo
  CC       src/libwim_la-export_image.lo
  CC       src/libwim_la-extract.lo
  CC       src/libwim_la-file_io.lo
  CC       src/libwim_la-header.lo
  CC       src/libwim_la-inode.lo
  CC       src/libwim_la-inode_fixup.lo
  CC       src/libwim_la-inode_table.lo
  CC       src/libwim_la-integrity.lo
  CC       src/libwim_la-iterate_dir.lo
  CC       src/libwim_la-join.lo
  CC       src/libwim_la-lcpit_matchfinder.lo
  CC       src/libwim_la-lzms_common.lo
  CC       src/libwim_la-lzms_compress.lo
  CC       src/libwim_la-lzms_decompress.lo
  CC       src/libwim_la-lzx_common.lo
  CC       src/libwim_la-lzx_compress.lo
  CC       src/libwim_la-lzx_decompress.lo
  CC       src/libwim_la-metadata_resource.lo
  CC       src/libwim_la-mount_image.lo
  CC       src/libwim_la-pathlist.lo
  CC       src/libwim_la-paths.lo
  CC       src/libwim_la-pattern.lo
  CC       src/libwim_la-progress.lo
  CC       src/libwim_la-reference.lo
  CC       src/libwim_la-registry.lo
  CC       src/libwim_la-reparse.lo
  CC       src/libwim_la-resource.lo
  CC       src/libwim_la-scan.lo
  CC       src/libwim_la-security.lo
  CC       src/libwim_la-sha1.lo
  CC       src/libwim_la-solid.lo
  CC       src/libwim_la-split.lo
  CC       src/libwim_la-tagged_items.lo
  CC       src/libwim_la-template.lo
  CC       src/libwim_la-textfile.lo
  CC       src/libwim_la-timestamp.lo
  CC       src/libwim_la-update_image.lo
  CC       src/libwim_la-util.lo
  CC       src/libwim_la-verify.lo
  CC       src/libwim_la-wim.lo
  CC       src/libwim_la-write.lo
  CC       src/libwim_la-x86_cpu_features.lo
  CC       src/libwim_la-xml.lo
  CC       src/libwim_la-xml_windows.lo
  CC       src/libwim_la-xpress_compress.lo
  CC       src/libwim_la-xpress_decompress.lo
  CC       src/libwim_la-ntfs-3g_apply.lo
  CC       src/libwim_la-ntfs-3g_capture.lo
  CC       src/libwim_la-unix_apply.lo
  CC       src/libwim_la-unix_capture.lo
  CCLD     libwim.la
  CCLD     wimlib-imagex
make[1]: 离开目录“/home/ubuntu/wimlib-1.13.4”

尝试了下wimextract命令,好像没找到,可执行文件在那里?不在path里面?

ubuntu@ubuntu:~/wimlib-1.13.4$ wimextract
wimextract:未找到命令



config.zip

2.59 KB, 下载次数: 0, 下载积分: 无忧币 -2


作者: liuzhaoyzz    时间: 2021-6-3 06:57
本帖最后由 liuzhaoyzz 于 2021-6-3 07:08 编辑
wintoflash 发表于 2021-6-2 22:49
你瞎扯什么呢?wimlib 跟 chmsee 是一回事吗?wimlib 项目到现在依然在活跃的开发中,chmsee 所依赖的 xu ...

我其实挺喜欢veket这个发行版的,对于我们业余人士,想尝试下linux玩玩,虽然veket没有ubuntu那么强大的软件包管理,但是在很多人的努力下,veket还是有了很好的发展,veket易于安装,发行版封装好了较多软件,有他自己的软件生态,对于轻度使用者,上手很快,安装部署简单易用、省心,看视频,听歌,上网,普通娱乐足够了,不能说你大神不喜欢的就归到垃圾这一类吧,这样子的看法过于偏颇和极端化,世界是多元化的,有linux重度使用者、高端用户,也有linux轻度使用者、低端用户,这打击了veket发行版及其爱好者,会引起争论,“linux哪个发行版”最好这样子的话题从来就没有标准答案,每个人的答案可能都不同,所以我持反对意见。

作者: 吉毛桃    时间: 2021-6-3 08:03
liuzhaoyzz 发表于 2021-6-3 06:57
我其实挺喜欢veket这个发行版的,对于我们业余人士,想尝试下linux玩玩,虽然veket没有ubuntu那么强大的 ...


源代码: wimlib编译之后的名字叫做:
libwim15
在debian和ubuntu源里边都有
就是不用自己编译,直接安装就行了的。
veket菜单上:桌面管理——在线安装软件
也能找到,lucky8k的话位置可能不一样,但大概也是这意思。
ubuntu用 apt命令在线安装,veket用pkg:
pkg -f -g+应用
pkg -f -g libwim15
这样就在线安装。

至少那个发行版更好……其实也有常见到三分钟做个换皮系统之类的,还有啥啥啥的
习惯就好,ubuntu大部分用户也是极好,并且热心帮忙的,在ubuntu中文论坛(非官方)也是有很多热心网友的。
我自己也用win10 ubuntu veket
作者: liuzhaoyzz    时间: 2021-6-3 08:52
吉毛桃 发表于 2021-6-3 08:03
源代码: wimlib编译之后的名字叫做:
libwim15
在debian和ubuntu源里边都有

你是怎么知道wimlib软件包编译后的名字叫做libwim15的?
在v20里面,桌面管理——在线安装软件,我用wim作为关键字找到了wimlib,并且能够轻松安装好,执行wimextract显示成功。
在lucky8k里面,没有桌面管理——在线安装软件,我在其他软件----软件包管理里面用wim作为关键字,也找到了wimlib,但是安装失败。然后我直接用命令行安装:
pkg -f -g libwim15
结果显示成功安装,但是我试了下执行wimextract失败,可能依赖还是有问题。
[root@veket:~]$pkg -f -g libwim15
下载 libwim15 from focal-universe repo:  
URL: http://archive.ubuntu.com/ubuntu ... _1.13.1-1_amd64.deb
Downloading libwim15_1.13.1-1_amd64.deb. Please wait: 100%
已下载: /root/pkg/libwim15_1.13.1-1_amd64.deb
安装程序包 libwim15_1.13.1-1_amd64:  
Installed: libwim15_1.13.1-1_amd64
解析依赖项 ..
[root@veket:~]$wimextract
bash: wimextract:未找到命令

linux-2021-06-03-08-45-08.png (67.29 KB, 下载次数: 44)

linux-2021-06-03-08-45-08.png

作者: 吉毛桃    时间: 2021-6-3 08:59
liuzhaoyzz 发表于 2021-6-3 08:52
你是怎么知道wimlib软件包编译后的名字叫做libwim15的?
在v20里面,桌面管理——在线安装软件,我用wim ...

我是搜索出来的,搜索是redha的名字,然后找deb果然找到
还有个 deb:
wimtools
安装上看看,也是 wimlib编译出来的,至于不自动安装,有可能是有部分用户只需要lib部分不需要命令部分
你再安装上wimtools这个包,命令应该就出现了
作者: liuzhaoyzz    时间: 2021-6-3 09:09
本帖最后由 liuzhaoyzz 于 2021-6-3 09:24 编辑
吉毛桃 发表于 2021-6-3 08:59
我是搜索出来的,搜索是redha的名字,然后找deb果然找到
还有个 deb:
wimtools

确实我也发现了,必须安装wimtools这个包才行,安装之后,就可以执行wimextract命令了。pkg -f -g wimtools
Name:           wimtools_1.13.0-1+b1
Description:    Tools for manipulating Windows Imaging files
Size:           1538K
Status:         installed (user)
In Repo:                buster-main
Repo file:              Packages-debian-buster-main
Dependencies:   libwim15


[root@veket ~] $ wimextract
Usage:
    wimextract WIMFILE IMAGE [(PATH | @LISTFILE)...]
                    [--check] [--ref="GLOB"] [--dest-dir=CMD_DIR]
                    [--to-stdout] [--no-acls] [--strict-acls]
                    [--no-attributes] [--include-invalid-names]
                    [--no-globs] [--nullglob] [--preserve-dir-structure]

但是执行wimextract命令还是出错,参数太多了,不知道怎么用。
Some uncommon options are not listed; see `man wimextract' for more details.
[root@veket ~] $ wimextract /mnt/sda3/394.esd /mnt/sda3/3944/
[ERROR] Can't open "/mnt/sda3/394.esd" read-only: No such file or directory
ERROR: Exiting with error code 47:
       Failed to open a file.

看了下veket自带的解压缩软件,名字叫做UExtract4.2,功能还挺强的,用起来也很简单。还有你分享的peazip用起来也很简单。
wimlib参数太多,用起来感觉挺复杂,但是功能很强大,一键RAMOS里面用过。



作者: 窄口牛    时间: 2021-6-3 10:37
本帖最后由 窄口牛 于 2021-6-3 10:38 编辑

veket过于粗糙,WiFi连接工具连中文名的无线都看不到。默认声音输出设备也选择不了。
作者: 吉毛桃    时间: 2021-6-3 13:29
liuzhaoyzz 发表于 2021-6-3 09:09
确实我也发现了,必须安装wimtools这个包才行,安装之后,就可以执行wimextract命令了。pkg -f -g wimtoo ...

wimlib之前没有接触过,对于不熟悉的命令我也是加help看帮助
看提示,输入路径不对?你是用它来解压缩?
UExtract是个脚本,它调用的是系统的命令,peazip应该是软件自带的。
UExtract好在就是可以自定义,例如若遇到某种文件解压缩乱码之类的,它可以修改后台打开的命令从而完善。
另外不知道esd这种文件用filemnt有没效果,iso文件我之前是直接用filemnt打开的,对部分格式兼容好。
作者: 吉毛桃    时间: 2021-6-3 13:32
liuzhaoyzz 发表于 2021-6-3 09:09
确实我也发现了,必须安装wimtools这个包才行,安装之后,就可以执行wimextract命令了。pkg -f -g wimtoo ...

还有个,就是你要的功能,可能有别的命令能实现?
要不然怎么理解菜单的灵活安装工具和yapi工具能修改windows的引导加上系统引导呢?
你懂dos的批处理,看linux的脚本应该很容易明白。
作者: liuzhaoyzz    时间: 2021-6-3 14:18
本帖最后由 liuzhaoyzz 于 2021-6-5 14:14 编辑
吉毛桃 发表于 2021-6-3 13:29
wimlib之前没有接触过,对于不熟悉的命令我也是加help看帮助
看提示,输入路径不对?你是用它来解压缩? ...


看了下说明,可能用法不对。
不像wimapply,      wimextract不支持使用libntfs-3g将文件直接提取到NTFS卷。
应该用wimapply,或者等效地wimlib-imagex apply,从Windows影像(WIM)档案中提取(“应用”)一个图像或所有图像WIMFILE。


作者: liuzhaoyzz    时间: 2021-6-3 14:28
吉毛桃 发表于 2021-6-3 13:32
还有个,就是你要的功能,可能有别的命令能实现?
要不然怎么理解菜单的灵活安装工具和yapi工具能修改wi ...

windows的批处理相对来说还是简单很多,linux脚本由于是不同的知识体系,还是复杂很多,linux命令本身肯定不会提供修改BCD的命令,估计比较难搞。
作者: liuzhaoyzz    时间: 2021-6-3 18:26
结合前面的操作记录,我分析了下,在v20里面成功地编译执行了最新版的wimlib1.13.4
看前面的提示主要是libxml2的问题,我在v20里面看了下:
pkg -f -g libxml2
libxml2已经安装过了的,那就不需要前面提到的libxml2-dev_2.9.4.pet:
[root@veket /mnt/sda2/linux/veket/wimlib-1.13.4] $ pkg -f -g libxml2
Skipping libxml2 (already built-in)..

那就直接干就行了,果然一把成功:./configure && make && sudo make install
[root@veket /mnt/sda2/linux/veket/wimlib-1.13.4] $ ls
aclocal.m4     configure.ac    include      Makefile.in     tests
build-aux      COPYING         INSTALL      NEWS            wimlib-imagex
config.h       COPYING.CC0     libtool      programs        wimlib.pc
config.h.in    COPYING.GPLv3   libwim.la    README          wimlib.pc.in
config.log     COPYING.LGPLv3  m4           README.WINDOWS
config.status  doc             Makefile     src
configure      examples        Makefile.am  stamp-h1
[root@veket /mnt/sda2/linux/veket/wimlib-1.13.4] $ ./configure && make && sudo make install
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for ar... ar
checking the archiver (ar) interface... ar
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to enable C11 features... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for futimens... yes
checking for utimensat... yes
checking for flock... yes
checking for mempcpy... yes
checking for openat... yes
checking for fstatat... yes
checking for readlinkat... yes
checking for fdopendir... yes
checking for posix_fallocate... yes
checking for llistxattr... yes
checking for lgetxattr... yes
checking for fsetxattr... yes
checking for lsetxattr... yes
checking for getopt_long_only... yes
checking for alloca.h... yes
checking for byteswap.h... yes
checking for endian.h... yes
checking for errno.h... yes
checking for glob.h... yes
checking for machine/endian.h... no
checking for stdarg.h... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for sys/byteorder.h... no
checking for sys/endian.h... no
checking for sys/file.h... yes
checking for sys/syscall.h... yes
checking for sys/sysctl.h... yes
checking for sys/times.h... yes
checking for sys/xattr.h... yes
checking for time.h... yes
checking for utime.h... yes
checking for struct stat.st_mtim... yes
checking for gcc options needed to detect all undeclared functions... none needed
checking whether __NR_getrandom is declared... yes
checking if compiler needs -Werror to reject unknown flags... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBXML2... yes
checking whether to include support for ntfs-3g... yes
checking for LIBNTFS_3G... yes
checking whether to include support for mounting WIMs... yes
checking for LIBFUSE... yes
checking for mq_open in -lrt... yes
checking whether to use SSSE3-accelerated SHA-1... no
checking whether to use SHA-1 implementation from system libcrypto... auto
checking for LIBCRYPTO... yes
checking whether to include error messages... yes
checking whether to include assertions... yes
checking whether to include support for multi-threaded compression... yes
checking whether to enable supporting code for tests... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Doxyfile
config.status: creating wimlib.pc
config.status: creating programs/mkwinpeimg
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
make  all-am
make[1]: 进入目录“/mnt/sda2/linux/veket/wimlib-1.13.4”
make[1]: 离开目录“/mnt/sda2/linux/veket/wimlib-1.13.4”
make[1]: 进入目录“/mnt/sda2/linux/veket/wimlib-1.13.4”
/bin/mkdir -p '/usr/local/lib'
/bin/sh ./libtool   --mode=install /usr/bin/install -c   libwim.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libwim.so.15.19.0 /usr/local/lib/libwim.so.15.19.0
libtool: install: (cd /usr/local/lib && { ln -s -f libwim.so.15.19.0 libwim.so.15 || { rm -f libwim.so.15 && ln -s libwim.so.15.19.0 libwim.so.15; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libwim.so.15.19.0 libwim.so || { rm -f libwim.so && ln -s libwim.so.15.19.0 libwim.so; }; })
libtool: install: /usr/bin/install -c .libs/libwim.lai /usr/local/lib/libwim.la
libtool: install: /usr/bin/install -c .libs/libwim.a /usr/local/lib/libwim.a
libtool: install: chmod 644 /usr/local/lib/libwim.a
libtool: install: ranlib /usr/local/lib/libwim.a
libtool: finish: PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/root/my-applications/bin:/usr/games:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/bin/mkdir -p '/usr/local/bin'
  /bin/sh ./libtool   --mode=install /usr/bin/install -c wimlib-imagex '/usr/local/bin'
libtool: install: /usr/bin/install -c .libs/wimlib-imagex /usr/local/bin/wimlib-imagex
/bin/mkdir -p '/usr/local/bin'
/usr/bin/install -c programs/mkwinpeimg '/usr/local/bin'
make  install-exec-hook
make[2]: 进入目录“/mnt/sda2/linux/veket/wimlib-1.13.4”
for cmd in append apply capture delete dir export extract info join mount mountrw optimize split unmount update verify; do                \
    cd /usr/local/bin &&                \
        ln -f wimlib-imagex wim${cmd};            \
done
make[2]: 离开目录“/mnt/sda2/linux/veket/wimlib-1.13.4”
/bin/mkdir -p '/usr/local/include'
/usr/bin/install -c -m 644 include/wimlib.h '/usr/local/include'
/bin/mkdir -p '/usr/local/share/man/man1'
/usr/bin/install -c -m 644 doc/man1/wimlib-imagex.1 doc/man1/wimappend.1 doc/man1/wimapply.1 doc/man1/wimcapture.1 doc/man1/wimdelete.1 doc/man1/wimdir.1 doc/man1/wimexport.1 doc/man1/wimextract.1 doc/man1/wiminfo.1 doc/man1/wimjoin.1 doc/man1/wimmount.1 doc/man1/wimmountrw.1 doc/man1/wimoptimize.1 doc/man1/wimsplit.1 doc/man1/wimunmount.1 doc/man1/wimupdate.1 doc/man1/wimverify.1 doc/man1/mkwinpeimg.1 '/usr/local/share/man/man1'
/bin/mkdir -p '/usr/local/lib/pkgconfig'
/usr/bin/install -c -m 644 wimlib.pc '/usr/local/lib/pkgconfig'
make  install-data-hook
make[2]: 进入目录“/mnt/sda2/linux/veket/wimlib-1.13.4”
for cmd in append apply capture delete dir export extract info join mount mountrw optimize split unmount update verify; do                \
    cd /usr/local/share/man/man1 &&                \
        ln -sf wim${cmd}.1 wimlib-imagex-${cmd}.1;    \
done
make[2]: 离开目录“/mnt/sda2/linux/veket/wimlib-1.13.4”
make[1]: 离开目录“/mnt/sda2/linux/veket/wimlib-1.13.4”

wimapply或者wimextract都可以正常执行了:
[root@veket /mnt/sda2/linux/veket/wimlib-1.13.4] $ wimapply
Usage:
    wimapply WIMFILE [IMAGE] TARGET
                    [--check] [--ref="GLOB"] [--no-acls] [--strict-acls]
                    [--no-attributes] [--rpfix] [--norpfix]
                    [--include-invalid-names] [--wimboot] [--unix-data]
                    [--compact=FORMAT] [--recover-data]

Some uncommon options are not listed; see `man wimapply' for more details.
[root@veket /mnt/sda2/linux/veket/wimlib-1.13.4] $ wimextract
Usage:
    wimextract WIMFILE IMAGE [(PATH | @LISTFILE)...]
                    [--check] [--ref="GLOB"] [--dest-dir=CMD_DIR]
                    [--to-stdout] [--no-acls] [--strict-acls]
                    [--no-attributes] [--include-invalid-names] [--no-globs]
                    [--nullglob] [--preserve-dir-structure] [--recover-data]

Some uncommon options are not listed; see `man wimextract' for more details.

随便找个387.esd测试下,切换到387.esd所在的目录,来真的:
[root@veket /mnt/sda3] $ wimapply 387.esd ./387/
[WARNING] Ignoring FILE_ATTRIBUTE_READONLY of 90 files
[WARNING] Ignoring FILE_ATTRIBUTE_HIDDEN of 328 files
[WARNING] Ignoring FILE_ATTRIBUTE_SYSTEM of 446 files
[WARNING] Ignoring FILE_ATTRIBUTE_NOT_CONTENT_INDEXED of 503 files
[WARNING] Ignoring Windows NT security descriptors of 10845 files
[WARNING] Ignoring object IDs of 45 files
[WARNING] Ignoring DOS names of 1888 files
Applying image 1 ("Windows 7 企业版") from "/mnt/sda3/387.esd" to directory "./387/"
Extracting file data: 1633 MiB of 1633 MiB (100%) done
Done applying WIM image.


成功解压缩387.esd。

虽然在linux里面安装windows有点瞎折腾的味道,但是感觉还是学到了不少东西。

后面不知道怎么搞到vhd里面,vhd驱动for linux不知道怎么搞。
还有BCD在linux里面不知道怎么搞。


作者: liuzhaoyzz    时间: 2021-6-3 19:10
wintoflash 发表于 2021-6-2 21:20
你非得在veket这种小众而且没有靠谱包管理的发行版里面搞编译,不是自找麻烦吗。。。
我在ubuntu里面试着 ...

wget https://wimlib.net/downloads/wimlib-1.13.4.tar.gz
tar -xf wimlib-1.13.4.tar.gz
cd wimlib-1.13.4/
sudo apt install pkg-config libxml2-dev ntfs-3g-dev libfuse-dev gawk make gcc
./configure && make && sudo make install
ubuntu20.10里面,运行上面的命令之后,似乎没有发现什么错误。

但是尝试运行wimapply之后出错了。
ubuntu@ubuntu:~/wimlib-1.13.4$ wimapply
wimapply: error while loading shared libraries: libwim.so.15: cannot open shared object file: No such file or directory
ubuntu@ubuntu:~/wimlib-1.13.4$ wimextract
wimextract: error while loading shared libraries: libwim.so.15: cannot open shared object file: No such file or directory

于是我尝试添加库:
ubuntu@ubuntu:~/wimlib-1.13.4$ sudo apt install libwim2
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
E: 无法定位软件包 libwim2
ubuntu@ubuntu:~/wimlib-1.13.4$ sudo apt install libwim
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
E: 无法定位软件包 libwim
ubuntu@ubuntu:~/wimlib-1.13.4$ sudo apt install libwim.so
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
E: 无法定位软件包 libwim.so
E: 无法按照 glob ‘libwim.so’ 找到任何软件包
ubuntu@ubuntu:~/wimlib-1.13.4$ sudo apt install libwim.so.15
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
E: 无法定位软件包 libwim.so.15
E: 无法按照 glob ‘libwim.so.15’ 找到任何软件包


百度了下,没有有效的结果,这该怎么办?感觉linux依赖库真麻烦。


另外把前面的命令结果贴上来。
ubuntu@ubuntu:~$ wget https://wimlib.net/downloads/wimlib-1.13.4.tar.gz
--2021-06-03 10:44:15--  https://wimlib.net/downloads/wimlib-1.13.4.tar.gz
正在解析主机 wimlib.net (wimlib.net)... 45.33.77.52, 2600:3c03::f03c:91ff:fee4:1a0a
正在连接 wimlib.net (wimlib.net)|45.33.77.52|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度: 1040411 (1016K) [application/octet-stream]
正在保存至: “wimlib-1.13.4.tar.gz”

wimlib-1.13.4.tar.g 100%[===================>]   1016K   678KB/s    用时 1.5s  

2021-06-03 10:44:17 (678 KB/s) - 已保存 “wimlib-1.13.4.tar.gz” [1040411/1040411])

ubuntu@ubuntu:~$ tar -xf wimlib-1.13.4.tar.gz
ubuntu@ubuntu:~$ cd wimlib-1.13.4/
ubuntu@ubuntu:~/wimlib-1.13.4$ sudo apt install pkg-config libxml2-dev ntfs-3g-dev libfuse-dev gawk make gcc
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
pkg-config 已经是最新版 (0.29.2-1ubuntu1)。
pkg-config 已设置为手动安装。
将会同时安装下列软件:
  binutils binutils-common binutils-x86-64-linux-gnu gcc-10 icu-devtools
  libasan6 libatomic1 libbinutils libc-dev-bin libc6-dev libcrypt-dev
  libctf-nobfd0 libctf0 libgcc-10-dev libicu-dev libitm1 liblsan0 libnsl-dev
  libpcre2-16-0 libpcre2-dev libpcre2-posix2 libquadmath0 libselinux1-dev
  libsepol1-dev libsigsegv2 libtirpc-dev libtsan0 libubsan1 linux-libc-dev
  manpages-dev rpcsvc-proto
建议安装:
  binutils-doc gawk-doc gcc-multilib autoconf automake libtool flex bison
  gcc-doc gcc-10-multilib gcc-10-doc gcc-10-locales glibc-doc icu-doc make-doc
下列【新】软件包将被安装:
  binutils binutils-common binutils-x86-64-linux-gnu gawk gcc gcc-10
  icu-devtools libasan6 libatomic1 libbinutils libc-dev-bin libc6-dev
  libcrypt-dev libctf-nobfd0 libctf0 libfuse-dev libgcc-10-dev libicu-dev
  libitm1 liblsan0 libnsl-dev libpcre2-16-0 libpcre2-dev libpcre2-posix2
  libquadmath0 libselinux1-dev libsepol1-dev libsigsegv2 libtirpc-dev libtsan0
  libubsan1 libxml2-dev linux-libc-dev make manpages-dev ntfs-3g-dev
  rpcsvc-proto
升级了 0 个软件包,新安装了 37 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 12.6 MB/41.1 MB 的归档。
解压缩后会消耗 178 MB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 http://archive.ubuntu.com/ubuntu groovy/main amd64 libsigsegv2 amd64 2.12-2build1 [13.9 kB]
获取:2 http://archive.ubuntu.com/ubuntu groovy/main amd64 gawk amd64 1:5.0.1+dfsg-1 [418 kB]
获取:3 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 binutils-common amd64 2.35.1-1ubuntu1 [212 kB]
获取:4 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libbinutils amd64 2.35.1-1ubuntu1 [481 kB]
获取:5 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libctf-nobfd0 amd64 2.35.1-1ubuntu1 [48.1 kB]
获取:6 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libctf0 amd64 2.35.1-1ubuntu1 [47.6 kB]
获取:7 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 binutils-x86-64-linux-gnu amd64 2.35.1-1ubuntu1 [1,645 kB]
获取:8 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 binutils amd64 2.35.1-1ubuntu1 [3,380 B]
获取:9 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libitm1 amd64 10.2.0-13ubuntu1 [26.3 kB]
获取:10 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libatomic1 amd64 10.2.0-13ubuntu1 [9,288 B]
获取:11 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libasan6 amd64 10.2.0-13ubuntu1 [344 kB]
获取:12 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 liblsan0 amd64 10.2.0-13ubuntu1 [144 kB]
获取:13 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libtsan0 amd64 10.2.0-13ubuntu1 [319 kB]
获取:14 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libubsan1 amd64 10.2.0-13ubuntu1 [136 kB]
获取:15 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libquadmath0 amd64 10.2.0-13ubuntu1 [146 kB]
获取:16 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libgcc-10-dev amd64 10.2.0-13ubuntu1 [2,341 kB]
获取:17 http://archive.ubuntu.com/ubuntu groovy/main amd64 icu-devtools amd64 67.1-4 [190 kB]
获取:18 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 gcc-10 amd64 10.2.0-13ubuntu1 [16.3 MB]
获取:19 http://archive.ubuntu.com/ubuntu groovy/main amd64 libsepol1-dev amd64 3.1-1 [328 kB]
获取:20 http://archive.ubuntu.com/ubuntu groovy/main amd64 libpcre2-16-0 amd64 10.34-7 [181 kB]
获取:21 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 gcc amd64 4:10.2.0-1ubuntu1 [5,208 B]
获取:22 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libc-dev-bin amd64 2.32-0ubuntu3 [30.9 kB]
获取:23 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 linux-libc-dev amd64 5.8.0-25.26 [1,166 kB]
获取:24 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libcrypt-dev amd64 1:4.4.16-1ubuntu1 [104 kB]
获取:25 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 rpcsvc-proto amd64 1.4.2-0ubuntu4 [62.8 kB]
获取:26 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libtirpc-dev amd64 1.2.6-1build1 [184 kB]
获取:27 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libnsl-dev amd64 1.3.0-0ubuntu3 [66.4 kB]
获取:28 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 libc6-dev amd64 2.32-0ubuntu3 [2,130 kB]
获取:29 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 make amd64 4.3-4ubuntu1 [167 kB]
获取:30 cdrom://Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022) groovy/main amd64 manpages-dev all 5.08-1 [2,290 kB]
获取:31 http://archive.ubuntu.com/ubuntu groovy/main amd64 libpcre2-posix2 amd64 10.34-7 [5,992 B]
获取:32 http://archive.ubuntu.com/ubuntu groovy/main amd64 libpcre2-dev amd64 10.34-7 [670 kB]
获取:33 http://archive.ubuntu.com/ubuntu groovy/main amd64 libselinux1-dev amd64 3.1-2 [148 kB]
获取:34 http://archive.ubuntu.com/ubuntu groovy/main amd64 libfuse-dev amd64 2.9.9-3 [105 kB]
获取:35 http://archive.ubuntu.com/ubuntu groovy/main amd64 libicu-dev amd64 67.1-4 [9,593 kB]
获取:36 http://archive.ubuntu.com/ubuntu groovy/main amd64 libxml2-dev amd64 2.9.10+dfsg-5build1 [721 kB]
获取:37 http://archive.ubuntu.com/ubuntu groovy/main amd64 ntfs-3g-dev amd64 1:2017.3.23AR.3-3ubuntu2 [237 kB]
已下载 12.6 MB,耗时 5秒 (2,696 kB/s)
正在从软件包中解出模板:100%
正在选中未选择的软件包 libsigsegv2:amd64。
(正在读取数据库 ... 系统当前共安装有 192332 个文件和目录。)
准备解压 .../libsigsegv2_2.12-2build1_amd64.deb  ...
正在解压 libsigsegv2:amd64 (2.12-2build1) ...
正在设置 libsigsegv2:amd64 (2.12-2build1) ...
正在选中未选择的软件包 gawk。
(正在读取数据库 ... 系统当前共安装有 192339 个文件和目录。)
准备解压 .../00-gawk_1%3a5.0.1+dfsg-1_amd64.deb  ...
正在解压 gawk (1:5.0.1+dfsg-1) ...
正在选中未选择的软件包 binutils-common:amd64。
准备解压 .../01-binutils-common_2.35.1-1ubuntu1_amd64.deb  ...
正在解压 binutils-common:amd64 (2.35.1-1ubuntu1) ...
正在选中未选择的软件包 libbinutils:amd64。
准备解压 .../02-libbinutils_2.35.1-1ubuntu1_amd64.deb  ...
正在解压 libbinutils:amd64 (2.35.1-1ubuntu1) ...
正在选中未选择的软件包 libctf-nobfd0:amd64。
准备解压 .../03-libctf-nobfd0_2.35.1-1ubuntu1_amd64.deb  ...
正在解压 libctf-nobfd0:amd64 (2.35.1-1ubuntu1) ...
正在选中未选择的软件包 libctf0:amd64。
准备解压 .../04-libctf0_2.35.1-1ubuntu1_amd64.deb  ...
正在解压 libctf0:amd64 (2.35.1-1ubuntu1) ...
正在选中未选择的软件包 binutils-x86-64-linux-gnu。
准备解压 .../05-binutils-x86-64-linux-gnu_2.35.1-1ubuntu1_amd64.deb  ...
正在解压 binutils-x86-64-linux-gnu (2.35.1-1ubuntu1) ...
正在选中未选择的软件包 binutils。
准备解压 .../06-binutils_2.35.1-1ubuntu1_amd64.deb  ...
正在解压 binutils (2.35.1-1ubuntu1) ...
正在选中未选择的软件包 libitm1:amd64。
准备解压 .../07-libitm1_10.2.0-13ubuntu1_amd64.deb  ...
正在解压 libitm1:amd64 (10.2.0-13ubuntu1) ...
正在选中未选择的软件包 libatomic1:amd64。
准备解压 .../08-libatomic1_10.2.0-13ubuntu1_amd64.deb  ...
正在解压 libatomic1:amd64 (10.2.0-13ubuntu1) ...
正在选中未选择的软件包 libasan6:amd64。
准备解压 .../09-libasan6_10.2.0-13ubuntu1_amd64.deb  ...
正在解压 libasan6:amd64 (10.2.0-13ubuntu1) ...
正在选中未选择的软件包 liblsan0:amd64。
准备解压 .../10-liblsan0_10.2.0-13ubuntu1_amd64.deb  ...
正在解压 liblsan0:amd64 (10.2.0-13ubuntu1) ...
正在选中未选择的软件包 libtsan0:amd64。
准备解压 .../11-libtsan0_10.2.0-13ubuntu1_amd64.deb  ...
正在解压 libtsan0:amd64 (10.2.0-13ubuntu1) ...
正在选中未选择的软件包 libubsan1:amd64。
准备解压 .../12-libubsan1_10.2.0-13ubuntu1_amd64.deb  ...
正在解压 libubsan1:amd64 (10.2.0-13ubuntu1) ...
正在选中未选择的软件包 libquadmath0:amd64。
准备解压 .../13-libquadmath0_10.2.0-13ubuntu1_amd64.deb  ...
正在解压 libquadmath0:amd64 (10.2.0-13ubuntu1) ...
正在选中未选择的软件包 libgcc-10-dev:amd64。
准备解压 .../14-libgcc-10-dev_10.2.0-13ubuntu1_amd64.deb  ...
正在解压 libgcc-10-dev:amd64 (10.2.0-13ubuntu1) ...
正在选中未选择的软件包 gcc-10。
准备解压 .../15-gcc-10_10.2.0-13ubuntu1_amd64.deb  ...
正在解压 gcc-10 (10.2.0-13ubuntu1) ...
正在选中未选择的软件包 gcc。
准备解压 .../16-gcc_10.2.0-1ubuntu1_amd64.deb  ...
正在解压 gcc (4:10.2.0-1ubuntu1) ...
正在选中未选择的软件包 icu-devtools。
准备解压 .../17-icu-devtools_67.1-4_amd64.deb  ...
正在解压 icu-devtools (67.1-4) ...
正在选中未选择的软件包 libc-dev-bin。
准备解压 .../18-libc-dev-bin_2.32-0ubuntu3_amd64.deb  ...
正在解压 libc-dev-bin (2.32-0ubuntu3) ...
正在选中未选择的软件包 linux-libc-dev:amd64。
准备解压 .../19-linux-libc-dev_5.8.0-25.26_amd64.deb  ...
正在解压 linux-libc-dev:amd64 (5.8.0-25.26) ...
正在选中未选择的软件包 libcrypt-dev:amd64。
准备解压 .../20-libcrypt-dev_4.4.16-1ubuntu1_amd64.deb  ...
正在解压 libcrypt-dev:amd64 (1:4.4.16-1ubuntu1) ...
正在选中未选择的软件包 rpcsvc-proto。
准备解压 .../21-rpcsvc-proto_1.4.2-0ubuntu4_amd64.deb  ...
正在解压 rpcsvc-proto (1.4.2-0ubuntu4) ...
正在选中未选择的软件包 libtirpc-dev:amd64。
准备解压 .../22-libtirpc-dev_1.2.6-1build1_amd64.deb  ...
正在解压 libtirpc-dev:amd64 (1.2.6-1build1) ...
正在选中未选择的软件包 libnsl-dev:amd64。
准备解压 .../23-libnsl-dev_1.3.0-0ubuntu3_amd64.deb  ...
正在解压 libnsl-dev:amd64 (1.3.0-0ubuntu3) ...
正在选中未选择的软件包 libc6-dev:amd64。
准备解压 .../24-libc6-dev_2.32-0ubuntu3_amd64.deb  ...
正在解压 libc6-dev:amd64 (2.32-0ubuntu3) ...
正在选中未选择的软件包 libsepol1-dev:amd64。
准备解压 .../25-libsepol1-dev_3.1-1_amd64.deb  ...
正在解压 libsepol1-dev:amd64 (3.1-1) ...
正在选中未选择的软件包 libpcre2-16-0:amd64。
准备解压 .../26-libpcre2-16-0_10.34-7_amd64.deb  ...
正在解压 libpcre2-16-0:amd64 (10.34-7) ...
正在选中未选择的软件包 libpcre2-posix2:amd64。
准备解压 .../27-libpcre2-posix2_10.34-7_amd64.deb  ...
正在解压 libpcre2-posix2:amd64 (10.34-7) ...
正在选中未选择的软件包 libpcre2-dev:amd64。
准备解压 .../28-libpcre2-dev_10.34-7_amd64.deb  ...
正在解压 libpcre2-dev:amd64 (10.34-7) ...
正在选中未选择的软件包 libselinux1-dev:amd64。
准备解压 .../29-libselinux1-dev_3.1-2_amd64.deb  ...
正在解压 libselinux1-dev:amd64 (3.1-2) ...
正在选中未选择的软件包 libfuse-dev。
准备解压 .../30-libfuse-dev_2.9.9-3_amd64.deb  ...
正在解压 libfuse-dev (2.9.9-3) ...
正在选中未选择的软件包 libicu-dev:amd64。
准备解压 .../31-libicu-dev_67.1-4_amd64.deb  ...
正在解压 libicu-dev:amd64 (67.1-4) ...
正在选中未选择的软件包 libxml2-dev:amd64。
准备解压 .../32-libxml2-dev_2.9.10+dfsg-5build1_amd64.deb  ...
正在解压 libxml2-dev:amd64 (2.9.10+dfsg-5build1) ...
正在选中未选择的软件包 make。
准备解压 .../33-make_4.3-4ubuntu1_amd64.deb  ...
正在解压 make (4.3-4ubuntu1) ...
正在选中未选择的软件包 manpages-dev。
准备解压 .../34-manpages-dev_5.08-1_all.deb  ...
正在解压 manpages-dev (5.08-1) ...
正在选中未选择的软件包 ntfs-3g-dev。
准备解压 .../35-ntfs-3g-dev_1%3a2017.3.23AR.3-3ubuntu2_amd64.deb  ...
正在解压 ntfs-3g-dev (1:2017.3.23AR.3-3ubuntu2) ...
正在设置 manpages-dev (5.08-1) ...
正在设置 gawk (1:5.0.1+dfsg-1) ...
正在设置 binutils-common:amd64 (2.35.1-1ubuntu1) ...
正在设置 libsepol1-dev:amd64 (3.1-1) ...
正在设置 linux-libc-dev:amd64 (5.8.0-25.26) ...
正在设置 libctf-nobfd0:amd64 (2.35.1-1ubuntu1) ...
正在设置 libpcre2-16-0:amd64 (10.34-7) ...
正在设置 libasan6:amd64 (10.2.0-13ubuntu1) ...
正在设置 ntfs-3g-dev (1:2017.3.23AR.3-3ubuntu2) ...
正在设置 libtirpc-dev:amd64 (1.2.6-1build1) ...
正在设置 rpcsvc-proto (1.4.2-0ubuntu4) ...
正在设置 make (4.3-4ubuntu1) ...
正在设置 libquadmath0:amd64 (10.2.0-13ubuntu1) ...
正在设置 libatomic1:amd64 (10.2.0-13ubuntu1) ...
正在设置 icu-devtools (67.1-4) ...
正在设置 libpcre2-posix2:amd64 (10.34-7) ...
正在设置 libubsan1:amd64 (10.2.0-13ubuntu1) ...
正在设置 libnsl-dev:amd64 (1.3.0-0ubuntu3) ...
正在设置 libcrypt-dev:amd64 (1:4.4.16-1ubuntu1) ...
正在设置 libbinutils:amd64 (2.35.1-1ubuntu1) ...
正在设置 libc-dev-bin (2.32-0ubuntu3) ...
正在设置 liblsan0:amd64 (10.2.0-13ubuntu1) ...
正在设置 libitm1:amd64 (10.2.0-13ubuntu1) ...
正在设置 libtsan0:amd64 (10.2.0-13ubuntu1) ...
正在设置 libctf0:amd64 (2.35.1-1ubuntu1) ...
正在设置 libgcc-10-dev:amd64 (10.2.0-13ubuntu1) ...
正在设置 libc6-dev:amd64 (2.32-0ubuntu3) ...
正在设置 libicu-dev:amd64 (67.1-4) ...
正在设置 binutils-x86-64-linux-gnu (2.35.1-1ubuntu1) ...
正在设置 libpcre2-dev:amd64 (10.34-7) ...
正在设置 libselinux1-dev:amd64 (3.1-2) ...
正在设置 binutils (2.35.1-1ubuntu1) ...
正在设置 libfuse-dev (2.9.9-3) ...
正在设置 libxml2-dev:amd64 (2.9.10+dfsg-5build1) ...
正在设置 gcc-10 (10.2.0-13ubuntu1) ...
正在设置 gcc (4:10.2.0-1ubuntu1) ...
正在处理用于 man-db (2.9.3-2) 的触发器 ...
正在处理用于 libc-bin (2.32-0ubuntu3) 的触发器 ...
ubuntu@ubuntu:~/wimlib-1.13.4$ ./configure && make && sudo make install
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for ar... ar
checking the archiver (ar) interface... ar
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to enable C11 features... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for futimens... yes
checking for utimensat... yes
checking for flock... yes
checking for mempcpy... yes
checking for openat... yes
checking for fstatat... yes
checking for readlinkat... yes
checking for fdopendir... yes
checking for posix_fallocate... yes
checking for llistxattr... yes
checking for lgetxattr... yes
checking for fsetxattr... yes
checking for lsetxattr... yes
checking for getopt_long_only... yes
checking for alloca.h... yes
checking for byteswap.h... yes
checking for endian.h... yes
checking for errno.h... yes
checking for glob.h... yes
checking for machine/endian.h... no
checking for stdarg.h... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for sys/byteorder.h... no
checking for sys/endian.h... no
checking for sys/file.h... yes
checking for sys/syscall.h... yes
checking for sys/sysctl.h... no
checking for sys/times.h... yes
checking for sys/xattr.h... yes
checking for time.h... yes
checking for utime.h... yes
checking for struct stat.st_mtim... yes
checking for gcc options needed to detect all undeclared functions... none needed
checking whether __NR_getrandom is declared... yes
checking if compiler needs -Werror to reject unknown flags... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBXML2... yes
checking whether to include support for ntfs-3g... yes
checking for LIBNTFS_3G... yes
checking whether to include support for mounting WIMs... yes
checking for LIBFUSE... yes
checking for mq_open in -lrt... yes
checking whether to use SSSE3-accelerated SHA-1... no
checking whether to use SHA-1 implementation from system libcrypto... auto
checking for LIBCRYPTO... no
configure: WARNING: Cannot find libcrypto: using stand-alone SHA-1 code instead
checking whether to include error messages... yes
checking whether to include assertions... yes
checking whether to include support for multi-threaded compression... yes
checking whether to enable supporting code for tests... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Doxyfile
config.status: creating wimlib.pc
config.status: creating programs/mkwinpeimg
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
make  all-am
make[1]: 进入目录“/home/ubuntu/wimlib-1.13.4”
  CC       programs/wimlib_imagex-imagex.o
  CC       src/libwim_la-add_image.lo
  CC       src/libwim_la-avl_tree.lo
  CC       src/libwim_la-blob_table.lo
  CC       src/libwim_la-compress.lo
  CC       src/libwim_la-compress_common.lo
  CC       src/libwim_la-compress_parallel.lo
  CC       src/libwim_la-compress_serial.lo
  CC       src/libwim_la-decompress.lo
  CC       src/libwim_la-decompress_common.lo
  CC       src/libwim_la-delete_image.lo
  CC       src/libwim_la-dentry.lo
  CC       src/libwim_la-divsufsort.lo
  CC       src/libwim_la-encoding.lo
  CC       src/libwim_la-error.lo
  CC       src/libwim_la-export_image.lo
  CC       src/libwim_la-extract.lo
  CC       src/libwim_la-file_io.lo
  CC       src/libwim_la-header.lo
  CC       src/libwim_la-inode.lo
  CC       src/libwim_la-inode_fixup.lo
  CC       src/libwim_la-inode_table.lo
  CC       src/libwim_la-integrity.lo
  CC       src/libwim_la-iterate_dir.lo
  CC       src/libwim_la-join.lo
  CC       src/libwim_la-lcpit_matchfinder.lo
  CC       src/libwim_la-lzms_common.lo
  CC       src/libwim_la-lzms_compress.lo
  CC       src/libwim_la-lzms_decompress.lo
  CC       src/libwim_la-lzx_common.lo
  CC       src/libwim_la-lzx_compress.lo
  CC       src/libwim_la-lzx_decompress.lo
  CC       src/libwim_la-metadata_resource.lo
  CC       src/libwim_la-mount_image.lo
  CC       src/libwim_la-pathlist.lo
  CC       src/libwim_la-paths.lo
  CC       src/libwim_la-pattern.lo
  CC       src/libwim_la-progress.lo
  CC       src/libwim_la-reference.lo
  CC       src/libwim_la-registry.lo
  CC       src/libwim_la-reparse.lo
  CC       src/libwim_la-resource.lo
  CC       src/libwim_la-scan.lo
  CC       src/libwim_la-security.lo
  CC       src/libwim_la-sha1.lo
  CC       src/libwim_la-solid.lo
  CC       src/libwim_la-split.lo
  CC       src/libwim_la-tagged_items.lo
  CC       src/libwim_la-template.lo
  CC       src/libwim_la-textfile.lo
  CC       src/libwim_la-timestamp.lo
  CC       src/libwim_la-update_image.lo
  CC       src/libwim_la-util.lo
  CC       src/libwim_la-verify.lo
  CC       src/libwim_la-wim.lo
  CC       src/libwim_la-write.lo
  CC       src/libwim_la-x86_cpu_features.lo
  CC       src/libwim_la-xml.lo
  CC       src/libwim_la-xml_windows.lo
  CC       src/libwim_la-xpress_compress.lo
  CC       src/libwim_la-xpress_decompress.lo
  CC       src/libwim_la-ntfs-3g_apply.lo
  CC       src/libwim_la-ntfs-3g_capture.lo
  CC       src/libwim_la-unix_apply.lo
  CC       src/libwim_la-unix_capture.lo
  CCLD     libwim.la
  CCLD     wimlib-imagex
make[1]: 离开目录“/home/ubuntu/wimlib-1.13.4”
make[1]: 进入目录“/home/ubuntu/wimlib-1.13.4”
/usr/bin/mkdir -p '/usr/local/lib'
/bin/bash ./libtool   --mode=install /usr/bin/install -c   libwim.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libwim.so.15.19.0 /usr/local/lib/libwim.so.15.19.0
libtool: install: (cd /usr/local/lib && { ln -s -f libwim.so.15.19.0 libwim.so.15 || { rm -f libwim.so.15 && ln -s libwim.so.15.19.0 libwim.so.15; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libwim.so.15.19.0 libwim.so || { rm -f libwim.so && ln -s libwim.so.15.19.0 libwim.so; }; })
libtool: install: /usr/bin/install -c .libs/libwim.lai /usr/local/lib/libwim.la
libtool: install: /usr/bin/install -c .libs/libwim.a /usr/local/lib/libwim.a
libtool: install: chmod 644 /usr/local/lib/libwim.a
libtool: install: ranlib /usr/local/lib/libwim.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/usr/bin/mkdir -p '/usr/local/bin'
  /bin/bash ./libtool   --mode=install /usr/bin/install -c wimlib-imagex '/usr/local/bin'
libtool: install: /usr/bin/install -c .libs/wimlib-imagex /usr/local/bin/wimlib-imagex
/usr/bin/mkdir -p '/usr/local/bin'
/usr/bin/install -c programs/mkwinpeimg '/usr/local/bin'
make  install-exec-hook
make[2]: 进入目录“/home/ubuntu/wimlib-1.13.4”
for cmd in append apply capture delete dir export extract info join mount mountrw optimize split unmount update verify; do                \
    cd /usr/local/bin &&                \
        ln -f wimlib-imagex wim${cmd};            \
done
make[2]: 离开目录“/home/ubuntu/wimlib-1.13.4”
/usr/bin/mkdir -p '/usr/local/include'
/usr/bin/install -c -m 644 include/wimlib.h '/usr/local/include'
/usr/bin/mkdir -p '/usr/local/share/man/man1'
/usr/bin/install -c -m 644 doc/man1/wimlib-imagex.1 doc/man1/wimappend.1 doc/man1/wimapply.1 doc/man1/wimcapture.1 doc/man1/wimdelete.1 doc/man1/wimdir.1 doc/man1/wimexport.1 doc/man1/wimextract.1 doc/man1/wiminfo.1 doc/man1/wimjoin.1 doc/man1/wimmount.1 doc/man1/wimmountrw.1 doc/man1/wimoptimize.1 doc/man1/wimsplit.1 doc/man1/wimunmount.1 doc/man1/wimupdate.1 doc/man1/wimverify.1 doc/man1/mkwinpeimg.1 '/usr/local/share/man/man1'
/usr/bin/mkdir -p '/usr/local/lib/pkgconfig'
/usr/bin/install -c -m 644 wimlib.pc '/usr/local/lib/pkgconfig'
make  install-data-hook
make[2]: 进入目录“/home/ubuntu/wimlib-1.13.4”
for cmd in append apply capture delete dir export extract info join mount mountrw optimize split unmount update verify; do                \
    cd /usr/local/share/man/man1 &&                \
        ln -sf wim${cmd}.1 wimlib-imagex-${cmd}.1;    \
done
make[2]: 离开目录“/home/ubuntu/wimlib-1.13.4”
make[1]: 离开目录“/home/ubuntu/wimlib-1.13.4”


作者: 吉毛桃    时间: 2021-6-12 14:46
liuzhaoyzz 发表于 2021-6-3 19:10
wget https://wimlib.net/downloads/wimlib-1.13.4.tar.gz
tar -xf wimlib-1.13.4.tar.gz
cd wimlib-1. ...

弄好了吗?具体应用是?
不知道如何应用上呢?
作者: liuzhaoyzz    时间: 2021-6-12 15:58
吉毛桃 发表于 2021-6-12 14:46
弄好了吗?具体应用是?
不知道如何应用上呢?

没有继续弄,不知道怎么搞到vhd里面,vhd驱动for linux不知道怎么搞。
还有BCD在linux里面不知道怎么搞。

如果太复杂,不如直接在PE里面搞。

作者: sxgpic    时间: 2021-6-13 00:32
吉毛桃 发表于 2021-6-3 00:14
呵呵,无语,我需要chmsee,你不懂也没什么,
毕竟我也不会。
你有没有自尊心我不知道,但可能自卑,不 ...

新版ubuntu 20.04下编译个chmsee不难呀,我早就弄好了,1.3.0版本。
chmsee_1.3.0-2ubuntu2_amd64.deb

依赖的包,也是自己编译的:
libjpeg62-turbo_2.0.6-2_amd64.deb
libicu57_57.1-6+deb9u4_amd64.deb
libwebkitgtk-1.0-0_2.4.11-3_amd64.deb
libjavascriptcoregtk-1.0-0_2.4.11-3_amd64.deb
作者: sxgpic    时间: 2021-6-13 00:46
wintoflash 发表于 2021-5-29 10:22
wimlib 可以啊。(https://wimlib.net/)
在 linux 下安装 windows,唯一比较麻烦的就是没有比较好用的 bcd  ...

bcd 文件似乎是NT和win9x配置单元文件,也就是Windows注册表那种。
对于 Windows 注册表文件,Linux 下有命令行方式的处理工具。
bcd 文件应该也可以用同样的工具编辑修改。
作者: sxgpic    时间: 2021-6-13 01:08
吉毛桃 发表于 2021-6-2 22:14
那你编译个chmsee出来,deb或别的都可以,能在ubuntu新版本和debian新版本上用的看看?



Chmsee 1.3.0 running on Ubuntu 20.04 (wayland)

作者: sxgpic    时间: 2021-6-13 01:37
本帖最后由 sxgpic 于 2021-6-13 01:51 编辑
liuzhaoyzz 发表于 2021-6-12 15:58
没有继续弄,不知道怎么搞到vhd里面,vhd驱动for linux不知道怎么搞。
还有BCD在linux里面不知道怎么搞 ...

vhd 在 linux 下可以简单通过 qemu-nbd 挂载。
当然,qemu-nbd 不支持 vhdx。

分享一个linux下不用 qemu-nbd 的办法,自己摸索出来的小窍门:

1、用 virtualbox 建立一个新的 vhd 文件(固定大小),比如文件名为 new.vhd,添加到 virtualbox 虚拟机里。
2、在 linux 下用 fdisk 给 new.vhd 分区: sudo fdisk new.vhd,添加一个分区,保存退出 fdisk。
3、塞一个 winpe 的可启动 ISO 进 virtualbox 虚拟机,启动它,在 pe 里用 diskgenus 格式化 new.vhd 中 fdisk 分好的分区,它会弹出窗口说 new.vhd 这个硬盘有错误,按提示修正,保存退出。
4、经过以上折腾,就搞好了。这个 new.vhd 在 linux 下可以直接用 gnome-disk-image-mounter 正常挂载,不需要 qemu-nbd,也能被 virtualbox 和 windows 识别为正常的 vhd 文件。

总结步骤:
1、在 windows 下新建或在 linux 下用 virtualbox 等新建一个固定大小的 vhd 文件(不要分区);
2、在 linux 下用 fdisk 给建好的 vhd 文件分区;
3、windows下用 diskgenus (4.x版本)打开 linux fdisk 命令好分区的 vhd 文件,按提示修正磁盘错误;
4、在 linux 下或 windows 下格式化修正磁盘错误后的 vhd 内分区;
5、完成。


最后,再分享一个自制的 deb 包,可以实现 nautilus 文件管理器里直接鼠标双击 vhd (上面秘诀处理过的) / squashfs 等磁盘镜像的挂载,十分方便。安装完后记得重启一下才能生效。
disk-image-mounter_1.0.1-ubuntu0_all.zip (2.02 KB, 下载次数: 2)



作者: sxgpic    时间: 2021-6-13 02:11
本帖最后由 sxgpic 于 2021-6-13 02:12 编辑
liuzhaoyzz 发表于 2021-6-12 15:58
没有继续弄,不知道怎么搞到vhd里面,vhd驱动for linux不知道怎么搞。
还有BCD在linux里面不知道怎么搞 ...

按69楼秘诀弄好一个VHD文件,nautilus 里双击挂载上,或者 losetup 命令给它在 /dev 下绑个 loop 设备,然后用 wimapply 把 wim 或未加密 esd 展开到对应的 loop 设备就可以了。

假如 new.vhd 内只有一个分区,losetup new.vhd 后用 losetup -a 查看发现绑为 /dev/loop6,其中第一分区为 /dev/loop6p1,那么
sudo wimapply install.wim 1 /dev/loop6p1 就可以了。

几年前的旧版 ubuntu (比如 ubuntu 14.04 lts)使用的 ntfs-3g 有 bug,wimapply 展开时会出错退出,需要打补丁。20.04 下已经修复这个错误了。
作者: liuzhaoyzz    时间: 2021-6-13 12:27
sxgpic 发表于 2021-6-13 02:11
按69楼秘诀弄好一个VHD文件,nautilus 里双击挂载上,或者 losetup 命令给它在 /dev 下绑个 loop 设备, ...

你是个高手。

看起来在linux里面折腾vhd,比windows下面折腾vhd要麻烦不少啊。

作者: sxgpic    时间: 2021-6-13 14:12
liuzhaoyzz 发表于 2021-6-13 12:27
你是个高手。

看起来在linux里面折腾vhd,比windows下面折腾vhd要麻烦不少啊。

灰常灰常简单!几条命令的事情,根本就不是事。

要是不考虑硬盘镜像在 virutalbox 中的兼容性,直接用 head -c xxM /dev/zero > newimage 生成个新文件,fdisk newimage 直接分区格,mkfs 式化成 raw 磁盘镜像,还要简单得多。 这样做出来的 raw 磁盘镜像在 windows 下也是能够双击挂载的,给个虚假的 .vhd .img 扩展名就行。
作者: mdyblog    时间: 2021-6-14 09:34
wintoflash 发表于 2021-5-29 10:22
wimlib 可以啊。(https://wimlib.net/)
在 linux 下安装 windows,唯一比较麻烦的就是没有比较好用的 bcd  ...

BCD的问题。、
可以用模板解决。
基本框架 先弄好。
然后非Win(linux)环境下 2进制修改,即可。  现在高手都这么干。

可以参考 一些 BCD开源 启动工具 (NTBOOT等).

作者: liuzhaoyzz    时间: 2021-6-14 12:52
本帖最后由 liuzhaoyzz 于 2021-6-14 12:59 编辑
sxgpic 发表于 2021-6-13 14:12
灰常灰常简单!几条命令的事情,根本就不是事。

要是不考虑硬盘镜像在 virutalbox 中的兼容性,直接用 ...


对于你们什么都简单,可我是业余选手呀。。。 看起来有点复杂。      

对于 Windows 注册表文件,Linux 下有命令行方式的处理工具。        

你说的是什么工具?

作者: liuzhaoyzz    时间: 2021-6-14 12:57
本帖最后由 liuzhaoyzz 于 2021-6-14 12:58 编辑
mdyblog 发表于 2021-6-14 09:34
BCD的问题。、
可以用模板解决。
基本框架 先弄好。


你说的模板,是用一个空白的BCD ,然后强行patch?这好像是程序员的做法,程序员的做法是,如果没有合适的轮子,就自己造一个,我的水平不够,只想找现成的轮子。     
作者: wintoflash    时间: 2021-6-14 15:32
本帖最后由 wintoflash 于 2021-6-14 15:37 编辑
liuzhaoyzz 发表于 2021-6-14 12:57
你说的模板,是用一个空白的BCD ,然后强行patch?这好像是程序员的做法,程序员的做法是,如果没有合 ...

bcd实质上就是个注册表。
用注册表编辑工具是可以编辑的,但是不好用。
有些键值的具体内容也没有详细的文档。
你在Windows下用注册表编辑器打开bcd看看就知道了。
linux下可以用 chntpw (命令行软件) ,也可以用 fred (gui软件)。

chenall 的 ntboot 是内置了个bcd模板,用16进制编辑器在文件路径那里加上标记,在grub4dos里面查找标记,进行修改。
我的 ntboot 也是内置bcd模板,不过我是从 reactos 那里移植了一个简单的注册表解析库,用它解析bcd来写入的。
作者: 吉毛桃    时间: 2021-6-25 08:05
liuzhaoyzz 发表于 2021-6-14 12:57
你说的模板,是用一个空白的BCD ,然后强行patch?这好像是程序员的做法,程序员的做法是,如果没有合 ...

想知道你是在那些场合应用的?
看回帖用起来不方便,真要在linux下安装win系统?
作者: 365天的思念    时间: 2021-6-25 10:01
虚拟机不用考虑了,我想在实体机尝试着玩玩。
作者: liuzhaoyzz    时间: 2021-6-25 10:32
吉毛桃 发表于 2021-6-25 08:05
想知道你是在那些场合应用的?
看回帖用起来不方便,真要在linux下安装win系统?

只是想做个尝试罢了,就是好奇能否在linux下面安装windows。看起来有点麻烦,最主要是我对linux不熟悉。个人感觉还是在PE下面安装windows更好。        
作者: liuzhaoyzz    时间: 2021-11-19 08:20
sxgpic 发表于 2021-6-13 00:32
新版ubuntu 20.04下编译个chmsee不难呀,我早就弄好了,1.3.0版本。
chmsee_1.3.0-2ubuntu2_amd64.deb
...

请把你编译后的这几个文件全部分享下,谢谢!  我试了下,那几个依赖包下载不了啊,没有源,你是怎么做到的?      
作者: liuzhaoyzz    时间: 2021-11-19 08:43
本帖最后由 liuzhaoyzz 于 2021-11-19 08:47 编辑
吉毛桃 发表于 2021-6-2 16:18
37楼的pet能解决这个错误。
但是可能后边还会有……就是新软件容易编译,旧文件未跟进更新的话会很难。
...

https://www.123pan.com/s/lE5A-YSTyv
chmsee1.3-CHM阅读器下载,veket20、lucky8k-20亲测可用,支持中文和英文。我分享到了veket论坛了。

作者: 吉毛桃    时间: 2021-11-19 13:00
liuzhaoyzz 发表于 2021-11-19 08:43
https://www.123pan.com/s/lE5A-YSTyv
chmsee1.3-CHM阅读器下载,veket20、lucky8k-20亲测可用,支持中 ...

谢谢了,回去后我试试
作者: liuzhaoyzz    时间: 2021-12-6 16:59
maisvendoo/bcdedit: Windows 7/8/8.1/10 BCD storage editor for GNU/Linux https://github.com/maisvendoo/bcdedit
Windows 7/8/8.1/10 BCD storage editor for GNU/Linux
This application will have similar functionality that bcdedit.exe utility from Windows OS. Today it has development status.

(c) maisvendoo, May 2016

这个工具好像可以在linux下面修改BCD,记录下。友情各位试下,需要自行编译。

作者: 吉毛桃    时间: 2021-12-6 19:02
liuzhaoyzz 发表于 2021-12-6 16:59
maisvendoo/bcdedit: Windows 7/8/8.1/10 BCD storage editor for GNU/Linux https://github.com/maisvendo ...

有没有图形界面的?若没有就容易编译,若有图形界面又要安装相关库
你编译出来分享下咯
作者: 吉毛桃    时间: 2021-12-6 19:03
不过也不太会用,对于BCD是知其然而不知道其所以然,安装好一次系统用好几年不动的
作者: liuzhaoyzz    时间: 2021-12-6 21:11
吉毛桃 发表于 2021-12-6 19:02
有没有图形界面的?若没有就容易编译,若有图形界面又要安装相关库
你编译出来分享下咯

可是我比较懒散。惭愧。晚点再试试吧。     

windows半年到一年必须重装一次,否则就要卡成狗,你是怎么忍受几年的?!  

作者: bitfire    时间: 2021-12-7 20:06
你们老想着在linux上搞windows , MS 有多方。。
作者: wintoflash    时间: 2021-12-7 20:22
liuzhaoyzz 发表于 2021-12-6 16:59
maisvendoo/bcdedit: Windows 7/8/8.1/10 BCD storage editor for GNU/Linux https://github.com/maisvendo ...

这种"行为艺术"也能骗到你?

作者: liuzhaoyzz    时间: 2021-12-7 21:37
wintoflash 发表于 2021-12-7 20:22
这种"行为艺术"也能骗到你?

我的天啊,还有人这样子玩的?

作者: liuzhaoyzz    时间: 2021-12-7 21:39
bitfire 发表于 2021-12-7 20:06
你们老想着在linux上搞windows , MS 有多方。。

瞎折腾呗,折腾的过程中才能学到东西啊。
作者: 吉毛桃    时间: 2021-12-7 22:53
liuzhaoyzz 发表于 2021-12-6 21:11
可是我比较懒散。惭愧。晚点再试试吧。     

windows半年到一年必须重装一次,否则就要卡成 ...

少作软件也不卡呀,装完系统优化过,将不用的服务都禁了。
经常装才累呀。
懒人所以少重装。




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