winre install to partition
download winpe https://www.osdcloud.com/sandbox/winpe-downloads
extract sources 7zz x WinPE_Win11_22H2_WinRE_KB5026372.iso sources/boot.wim
no windows/dism sudo apt install wimtools
sudo mkfs.ntfs /dev/sda5 -Q
Path: Downloads/sources/boot.wim GUID: 0x33ab2332b84c9243af5a1ed3f6351e00 Version: 68864 Image Count: 1 Compression: LZX Chunk Size: 32768 bytes Part Number: 1/1 Boot Index: 1 Size: 714629785 bytes Attributes: Relative path junction
Index: 1 Name: Microsoft Windows PE (x64) Description: Microsoft Windows Recover Environment (amd64) Directory Count: 6678 File Count: 24969 Total Bytes: 3627727209 Hard Link Bytes: 1809449085 Creation Time: Sat May 07 05:53:32 2022 UTC Last Modification Time: Thu May 18 05:40:41 2023 UTC Architecture: x86_64 Product Name: Microsoft® Windows® Operating System Edition ID: WindowsPE Installation Type: WindowsPE Product Type: WinNT Languages: en-US Default Language: en-US System Root: WINDOWS Major Version: 10 Minor Version: 0 Build: 22621 Service Pack Build: 1702 Service Pack Level: 0 WIMBoot compatible: no
wimapply Downloads/sources/boot.wim 1 /mnt [WARNING] Ignoring FILE_ATTRIBUTE_READONLY of 43 files [WARNING] Ignoring FILE_ATTRIBUTE_HIDDEN of 82 files [WARNING] Ignoring FILE_ATTRIBUTE_SYSTEM of 94 files [WARNING] Ignoring FILE_ATTRIBUTE_COMPRESSED of 73 files [WARNING] Ignoring FILE_ATTRIBUTE_NOT_CONTENT_INDEXED of 61 files [WARNING] Ignoring Windows NT security descriptors of 23587 files [WARNING] Ignoring DOS names of 16803 files
BCDboot P:\Windows /s P: /f ALL
Windows\System32\winpeshl.ini loads recovery env
sudo apt install wimtools
wimlib-imagex info install.wim
WIM Information:
----------------
Path: install.wim
GUID: 0x1626279bda8f6646beb5f06483daa68c
Version: 68864
Image Count: 1
Compression: LZX
Chunk Size: 32768 bytes
Part Number: 1/1
Boot Index: 0
Size: 591144044 bytes
Attributes: Integrity info, Relative path junction
Available Images:
-----------------
Index: 1
Name: Windows 7 ULTIMATE
Description: Windows 7 ULTIMATE
Display Name: Windows 7 Ultimate
Display Description: Windows 7 Ultimate
Directory Count: 6276
File Count: 25093
Total Bytes: 2507043331
Hard Link Bytes: 3504554899
Creation Time: Tue Jul 14 05:24:44 2009 UTC
Last Modification Time: Mon Aug 03 07:40:10 2009 UTC
Architecture: x86
Product Name: Microsoft® Windows® Operating System
HAL: acpiapic
Product Type: WinNT
Product Suite: Terminal Server
Languages: en-US
Default Language: en-US
System Root: WINDOWS
Major Version: 6
Minor Version: 1
Build: 7600
Service Pack Build: 16385
Service Pack Level: 0
Flags: Ultimate
WIMBoot compatible: no
sudo apt install ntfs-3g
sudo mkfs.ntfs /dev/sda2 -Q
sudo mount /dev/sda2 /mnt
wimapply install.wim 1 /mnt
https://github.com/manatails/uefiseven/releases
7zz x uefi7.zip
cp esp/EFI/Microsoft/Boot/bootmgfw.efi