1. kyrcy

    kyrcy MDL Senior Member

    Feb 25, 2020
    312
    32
    10
    #81 kyrcy, Dec 29, 2024
    Last edited: Feb 17, 2025
    @Enthousiast
    An almost a decade old motherboard boots fine after extracting the ISO to an NTFS formatted USB drive. Is there a reason to use a FAT32 formatted USB drive instead and this tool as install.wim is now bigger than 4GB?
     
  2. haris_mdlf69

    haris_mdlf69 MDL Addicted

    Oct 23, 2018
    657
    1,235
    30
    Greetings @Enthousiast ,

    I was wondering if this tool can also be used with a source folder, not just a source ISO?

    Warm Regards
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,940
    450
    No, it started as a development for people who asked me how to fit the new super large windows ISO's on a DVD5 (which now is a bit redundant with all the USB usage, but then the SWM option becomes handy for FAT32).

    So, it extracts the ISO and uses the extracted files to rebuild a new ISO.

    Maybe if my eyesight will improve the next few treatments (atm it is only getting worse) i can try to modify the script.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. haris_mdlf69

    haris_mdlf69 MDL Addicted

    Oct 23, 2018
    657
    1,235
    30
    No worries at all—your health is the most important thing. I truly hope the upcoming treatments help improve your eyesight. Take all the time you need my friend.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,940
    450
    Thanks for moving this thread :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. kyrcy

    kyrcy MDL Senior Member

    Feb 25, 2020
    312
    32
    10
    @Enthousiast
    ===========================================================
    Compressing install.wim to install.esd with LZMS compression
    This can take some time, depending on the hardware and used source ISO
    ===========================================================

    [WARNING] Couldn't create parallel chunk compressor: Ran out of memory.
    Falling back to single-threaded compression.
    Using LZMS compression with 1 thread
    Archiving file data: 13 GiB of 13 GiB (100%) done

    Is the above warning something to worry about? Anything I can do to avoid it?
     
  7. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,940
    450
    I have seen that in the past but not for a long time, i can't resprodude either:

    Code:
    ==========================================================
    Win_ISO_WIM_ESD_SWM_Handling_Tool_v3.0
    ==========================================================
    
    ===========================================================
    Extracting ISO to ISO folder...
    ===========================================================
    
    
    7-Zip 21.07 (x86) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26
    
    Scanning the drive for archives:
    1 file, 5786429440 bytes (5519 MiB)
    
    Extracting archive: .\Windows11_InsiderPreview_Client_x64_en-us_29591_1000.iso
    --
    Path = .\Windows11_InsiderPreview_Client_x64_en-us_29591_1000.iso
    Type = Udf
    Physical Size = 5786429440
    Comment = CCCOMA_X64FRE_EN-US_DV9
    Cluster Size = 2048
    Created = 2026-05-10 02:00:00
    
    Everything is Ok
    
    Folders: 87
    Files: 963
    Size:       5780618575
    Compressed: 5786429440
    
    
    ===========================================================
    Available indexes to be included in the new ISO...
    ===========================================================
    
     {0} All indexes
     {1} "Windows 11 Home"
     {2} "Windows 11 Home N"
     {3} "Windows 11 Home Single Language"
     {4} "Windows 11 Education"
     {5} "Windows 11 Education N"
     {6} "Windows 11 Pro"
     {7} "Windows 11 Pro N"
     {8} "Windows 11 Pro Education"
     {9} "Windows 11 Pro Education N"
     {10} "Windows 11 Pro for Workstations"
     {11} "Windows 11 Pro N for Workstations"
    
    ===========================================================
    select index(es) here ....
    ===========================================================
    
    >0
    
    ===========================================================
    Select the compression type for the "Install" file
    ===========================================================
    
    [ 1 ] - ESD File - Smaller install file (longer creation).
    
    [ 2 ] - SWM File - Multiple split wim files.
    
    [ 3 ] - WIM File - Leave it WIM.
    
    ===========================================================
    
    * Type your option and press Enter: 1
    
    ===========================================================
    Compressing install.wim to install.esd with LZMS compression
    This can take some time, depending on the hardware and used source ISO
    ===========================================================
    
    Using LZMS compression with 16 threads
    Archiving file data: 11 GiB of 11 GiB (100%) done
    
    ===========================================================
    Optimizing Boot.wim...
    ===========================================================
    
    "ISO\Sources\boot.wim" original size: 431382 KiB
    Using LZX compression with 16 threads
    Archiving file data: 1071 MiB of 1071 MiB (100%) done
    "ISO\Sources\boot.wim" optimized size: 429035 KiB
    Space saved: 2347 KiB
    
    ===========================================================
    Creating ISO...
    ===========================================================
    
    
    
    OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility
    Copyright (C) Microsoft, 1993-2012. All rights reserved.
    Licensed only for producing Microsoft authorized content.
    
    
    Scanning source tree (500 files in 42 directories)
    Scanning source tree complete (963 files in 88 directories)
    
    Computing directory information complete
    
    Image file is 4395466752 bytes (before optimization)
    
    Writing 963 files in 88 directories to Windows11_InsiderPreview_Client_x64_en-us_29591_1000_ESD_2026_05_21.ISO
    
    100% complete
    
    Storage optimization saved 51 files, 19138560 bytes (1% of image)
    
    After optimization, image file is 4378556416 bytes
    Space saved because of embedding, sparseness or optimization = 19138560
    
    Done.
    
    ===========================================================
    Now you have time to copy the content of the ISO folder to a FAT32 formatted USB key,
    when done copying, press any key to cleanup the ISO folder.
    ===========================================================
    
    Press any key to continue . . .
    
    What are the specs of the used system?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream
    Staff Member

    Dec 21, 2012
    8,076
    10,298
    270
    #88 Carlos Detweiller, May 21, 2026
    Last edited: May 21, 2026
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. kyrcy

    kyrcy MDL Senior Member

    Feb 25, 2020
    312
    32
    10
    14th Gen Intel CPU & 16GB RAM.
     
  10. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,940
    450
    #90 Enthousiast, May 21, 2026
    Last edited: May 21, 2026
    (OP)
    What happens when you run it right after reboot? My hardware is much older but i have 64 and 32GB ram, i also have an oldie (i7 8700) with just 16GB ram, lemme test on it.

    Same result:

    Code:
    ==========================================================
    Win_ISO_WIM_ESD_SWM_Handling_Tool_v3.0
    ==========================================================
    
    ===========================================================
    Extracting ISO to ISO folder...
    ===========================================================
    
    
    7-Zip 21.07 (x86) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26
    
    Scanning the drive for archives:
    1 file, 8073295872 bytes (7700 MiB)
    
    Extracting archive: .\Windows11_InsiderPreview_Client_X64_bg_bg_26300_8493.iso
    --
    Path = .\Windows11_InsiderPreview_Client_X64_bg_bg_26300_8493.iso
    Type = Udf
    Physical Size = 8073295872
    Comment = CCCOMA_X64FRE_BG-BG_DV9
    Cluster Size = 2048
    Created = 2026-05-16 02:00:00
    
    Everything is Ok
    
    Folders: 102
    Files: 1068
    Size:       8067083080
    Compressed: 8073295872
    
    
    ===========================================================
    Available indexes to be included in the new ISO...
    ===========================================================
    
     {0} All indexes
     {1} "Windows 11 Home"
     {2} "Windows 11 Home N"
     {3} "Windows 11 Education"
     {4} "Windows 11 Education N"
     {5} "Windows 11 Pro"
     {6} "Windows 11 Pro N"
     {7} "Windows 11 Pro Education"
     {8} "Windows 11 Pro Education N"
     {9} "Windows 11 Pro for Workstations"
     {10} "Windows 11 Pro N for Workstations"
    
    ===========================================================
    select index(es) here ....
    ===========================================================
    
    >0
    
    ===========================================================
    Select the compression type for the "Install" file
    ===========================================================
    
    [ 1 ] - ESD File - Smaller install file (longer creation).
    
    [ 2 ] - SWM File - Multiple split wim files.
    
    [ 3 ] - WIM File - Leave it WIM.
    
    ===========================================================
    
    * Type your option and press Enter: 1
    
    ===========================================================
    Compressing install.wim to install.esd with LZMS compression
    This can take some time, depending on the hardware and used source ISO
    ===========================================================
    
    Using LZMS compression with 12 threads
    Archiving file data: 14 GiB of 14 GiB (100%) done
    
    ===========================================================
    Optimizing Boot.wim...
    ===========================================================
    
    "ISO\Sources\boot.wim" original size: 591134 KiB
    Using LZX compression with 12 threads
    Archiving file data: 1370 MiB of 1370 MiB (100%) done
    "ISO\Sources\boot.wim" optimized size: 589191 KiB
    Space saved: 1943 KiB
    
    ===========================================================
    Creating ISO...
    ===========================================================
    
    
    
    OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility
    Copyright (C) Microsoft, 1993-2012. All rights reserved.
    Licensed only for producing Microsoft authorized content.
    
    
    Scanning source tree (1000 files in 97 directories)
    Scanning source tree complete (1068 files in 103 directories)
    
    Computing directory information complete
    
    Image file is 6245253120 bytes (before optimization)
    
    Writing 1068 files in 103 directories to Windows11_InsiderPreview_Client_X64_bg_bg_26300_8493_ESD_2026_05_21.ISO
    
    100% complete
    
    Storage optimization saved 94 files, 25262080 bytes (1% of image)
    
    After optimization, image file is 6222579712 bytes
    Space saved because of embedding, sparseness or optimization = 25262080
    
    Done.
    
    ===========================================================
    Now you have time to copy the content of the ISO folder to a FAT32 formatted USB key,
    when done copying, press any key to cleanup the ISO folder.
    ===========================================================
    
    Press any key to continue . . .
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. kyrcy

    kyrcy MDL Senior Member

    Feb 25, 2020
    312
    32
    10
    @Enthousiast
    ===========================================================
    Compressing install.wim to install.esd with LZMS compression
    This can take some time, depending on the hardware and used source ISO
    ===========================================================

    Using LZMS compression with 20 threads
    [ERROR] Failed to read 10754 bytes at offset 3163417958 (err=1450): Insufficient system resources exist to complete the requested service
    [ERROR] Error reading data from WIM file: File too large
    ERROR: Exiting with error code 50:
    Could not read data from a file.
     
  12. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,940
    450
    Do you by any chance use some overclocking settings?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. kyrcy

    kyrcy MDL Senior Member

    Feb 25, 2020
    312
    32
    10
    No overclocking and running the script makes the system very slow.
     
  14. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,940
    450
    It makes the system slow because it usually utilizes all cores to their max, can you make a screenshot of taskmanager, processes (with cpu usage and ram usage) and performance graph of cpu (set to logical processor view)?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,610
    100,025
    340
    @kyrcy
    Edit the batch script, and replace all:
    Code:
    --solid
    with
    Code:
    --solid --threads=4
    you can try --threads=8 or --threads=16 if you want
     
  16. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,940
    450
    Remember us discussing this years ago? When i got those messages too? iirc it showed the message but wasn't performing it slow like it should be with just one thread, the thing is that i never see that message anymore :thinking:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. kyrcy

    kyrcy MDL Senior Member

    Feb 25, 2020
    312
    32
    10
    ===========================================================
    Compressing install.wim to install.esd with LZMS compression
    This can take some time, depending on the hardware and used source ISO
    ===========================================================

    Using LZMS compression with 16 threads
    Archiving file data: 13 GiB of 13 GiB (100%) done

    Much better now, but I am not sure if it is 16 times faster than 1 thread.
     
  18. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream
    Staff Member

    Dec 21, 2012
    8,076
    10,298
    270
    No, there are always net losses. However, utilizing more CPU cores boosts the overall speed. One thread uses only one core.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,940
    450
    I see more detailed info in another rhead so i will show this here too:

    Code:
    ==========================================================
    Win_ISO_WIM_ESD_SWM_Handling_Tool_v3.0
    ==========================================================
    
    ===========================================================
    Extracting ISO to ISO folder...
    ===========================================================
    
    
    7-Zip 21.07 (x86) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26
    
    Scanning the drive for archives:
    1 file, 8628641792 bytes (8229 MiB)
    
    Extracting archive: .\en-us_windows_11_consumer_editions_version_25h2_updated_may_2026_x64_dvd_ceef8999.iso
    --
    Path = .\en-us_windows_11_consumer_editions_version_25h2_updated_may_2026_x64_dvd_ceef8999.iso
    Type = Udf
    Physical Size = 8628641792
    Comment = CCCOMA_X64FRE_EN-US_DV9
    Cluster Size = 2048
    Created = 2026-05-08 02:00:00
    
    Everything is Ok
    
    Folders: 94
    Files: 977
    Size:       8622998174
    Compressed: 8628641792
    
    
    ===========================================================
    Available indexes to be included in the new ISO...
    ===========================================================
    
     {0} All indexes
     {1} "Windows 11 Home"
     {2} "Windows 11 Home N"
     {3} "Windows 11 Home Single Language"
     {4} "Windows 11 Education"
     {5} "Windows 11 Education N"
     {6} "Windows 11 Pro"
     {7} "Windows 11 Pro N"
     {8} "Windows 11 Pro Education"
     {9} "Windows 11 Pro Education N"
     {10} "Windows 11 Pro for Workstations"
     {11} "Windows 11 Pro N for Workstations"
    
    ===========================================================
    select index(es) here ....
    ===========================================================
    
    >1
    
    ===========================================================
    Select the compression type for the "Install" file
    ===========================================================
    
    [ 1 ] - ESD File - Smaller install file (longer creation).
    
    [ 2 ] - SWM File - Multiple split wim files.
    
    [ 3 ] - WIM File - Leave it WIM.
    
    ===========================================================
    
    * Type your option and press Enter: 1
    
    ===========================================================
    Compressing install.wim to install.esd with LZMS compression
    This can take some time, depending on the hardware and used source ISO
    ===========================================================
    
    Using LZMS compression with 16 threads
    Archiving file data: 12 GiB of 12 GiB (100%) done
    
    ===========================================================
    Optimizing Boot.wim...
    ===========================================================
    
    "ISO\Sources\boot.wim" original size: 604216 KiB
    Using LZX compression with 16 threads
    Archiving file data: 1386 MiB of 1386 MiB (100%) done
    "ISO\Sources\boot.wim" optimized size: 602283 KiB
    Space saved: 1933 KiB
    
    ===========================================================
    Creating ISO...
    ===========================================================
    
    
    
    OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility
    Copyright (C) Microsoft, 1993-2012. All rights reserved.
    Licensed only for producing Microsoft authorized content.
    
    
    Scanning source tree (500 files in 46 directories)
    Scanning source tree complete (977 files in 95 directories)
    
    Computing directory information complete
    
    Image file is 6185517056 bytes (before optimization)
    
    Writing 977 files in 95 directories to en-us_windows_11_consumer_editions_version_25h2_updated_may_2026_x64_dvd_ceef8999_ESD_2026_05_21.ISO
    
    100% complete
    
    Storage optimization saved 26 files, 17354752 bytes (1% of image)
    
    After optimization, image file is 6170406912 bytes
    Space saved because of embedding, sparseness or optimization = 17354752
    
    Done.
    
    ===========================================================
    Now you have time to copy the content of the ISO folder to a FAT32 formatted USB key,
    when done copying, press any key to cleanup the ISO folder.
    ===========================================================
    
    Press any key to continue . . .
    
    Your ISO is not corrupted, the compressing just didn't use all available threads taking a longer time to finish the job, simple test to install it in a vm should be done.

    But i asked for some specific info, but i will leave it here.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  20. kyrcy

    kyrcy MDL Senior Member

    Feb 25, 2020
    312
    32
    10
    You did, but I am not sure if it is worth the trouble to investigate further. It seems that I get the WARNING when there is not enough memory to start all threads and the ERROR when there is enough memory to start all threads, but memory runs out before competing the compression.