Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
wimboot not releasing system memory?
2019-01-04, 12:59 (This post was last modified: 2019-01-04 13:40 by steve6375.)
Post: #1
wimboot not releasing system memory?
Hi

Happy New Year!

I am the developer of Easy2Boot (http://www.easy2boot.com), I posted this Q on http://lists.ipxe.org but have had no response, so I am posting here.

I am using wimboot to boot from a Windows ISO from a USB flash drive using grub4dos

A sample grub4dos menu is:

Code:
title Install Windows10x64UK_Oct_2018 using wimboot method
map /Windows10x64UK_Oct_2018.iso (0xff)
map --hook
root (0xff)
# the root path now points to the files inside the ISO file
# hd0,0 is the USB drive that we booted from
kernel (hd0,0)/wimboot image=2
initrd @startup.bat=(hd0,0)/startup.bat @winpeshl.ini=(hd0,0)/winpeshl.ini @bcd=/boot/bcd @boot.sdi=/boot/boot.sdi @boot.wim=/sources/boot.wim
boot

I am using current version of wimboot (size 51,392 bytes, 17 May 2017)
When I boot from a virtual system (Virtual Box) which has 1024MB of RAM, I get various memory problems reported by WinPE.
If I run taskmgr.exe it reports Total Memory 683, Cached 107, Available 27, Free 5.

If I run the same ISO using a standard grub4dos mechanism, taskmgr.exe reports the system has 1023MB of memory and I get no memory issues (Total 1023, Cached 262, Available 394, Free 140).

If I increase the amount of RAM to 2GB there is no problem using wimboot.

Is this to be expected or has wimboot failed to release some memory?

P.S. As a second question, is there a way to inject a file into X:\ (root of X: drive).
Find all posts by this user
Quote this message in a reply
2019-01-07, 19:19
Post: #2
RE: wimboot not releasing system memory?
(2019-01-04 12:59)steve6375 Wrote:  P.S. As a second question, is there a way to inject a file into X:\ (root of X: drive).

I tried this a couple different ways and did not succeed. However, you could inject your file and startnet.cmd in the environment, then startnet.cmd can copy/move the file to the root.


Alternatively, if this file won't change(often) you can just crack the WIM open with DISM on Windows and place the file there.
Find all posts by this user
Quote this message in a reply
2019-01-07, 20:36
Post: #3
RE: wimboot not releasing system memory?
(2019-01-07 19:19)dontlook Wrote:  
(2019-01-04 12:59)steve6375 Wrote:  P.S. As a second question, is there a way to inject a file into X:\ (root of X: drive).

I tried this a couple different ways and did not succeed. However, you could inject your file and startnet.cmd in the environment, then startnet.cmd can copy/move the file to the root.
Alternatively, if this file won't change(often) you can just crack the WIM open with DISM on Windows and place the file there.
Thanks for the reply and trying it. I have managed to use startnet.cmd to copy a \AutoUnattend.xml file to X:\. It is then automatically picked up by Setup.

I notice that ttf font files can be injected. Where are these actually copied to? What determines where different files are injected?
Find all posts by this user
Quote this message in a reply
2019-01-07, 20:45
Post: #4
RE: wimboot not releasing system memory?
(2019-01-07 20:36)steve6375 Wrote:  I notice that ttf font files can be injected. Where are these actually copied to? What determines where different files are injected?

There is no difference for different file extensions, everything injected with wimboot goes into windows\system32.
If you are seeing fonts being loaded and working, it is because it is totally fine to load font's from the running executables directory, or any other specified path (or memorystream)

Use GitHub Discussions
VRAM bin
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 2 Guest(s)