Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ext/NTBOOT new 821416 Jul 1 11:16 NTBOOT #420

Open
msetzerii opened this issue Jul 1, 2023 · 8 comments
Open

ext/NTBOOT new 821416 Jul 1 11:16 NTBOOT #420

msetzerii opened this issue Jul 1, 2023 · 8 comments

Comments

@msetzerii
Copy link

Just noticed the new grub4dos-for_UEFI-2023-07-01.7z has this new NTBOOT in ext directory that greatly increases size of file.
Just wondering what it does, and when is actually needed?
Significant size change.
1993662 Jul 1 20:14 grub4dos-for_UEFI-2023-07-01.7z
1176869 Jul 2 04:13 grub4dos-for_UEFI-2023-06-23.7z

821416 Jul 1 11:16 NTBOOT

@yaya2007
Copy link
Collaborator

yaya2007 commented Jul 1, 2023

There is a description in ext

@msetzerii
Copy link
Author

In update log all I see are changes in menu.lst
title 使用外部命令 NTBOOT 启动 WIM/VHD (方案1)
map --mem --no-hook /efi/grub/ext/NTBOOT (hd)
(hd-1,0)/loaderNT (hdx,y)/boot/imgs/winpe.wim
(hd-1,0)/setbcd (hdx,y)/boot/imgs/winpe.wim
boot

title 使用外部命令 NTBOOT 启动 WIM/VHD (方案2)
find --set-root /efi/grub/ext/NTBOOT
map --mem --no-hook /efi/grub/ext/NTBOOT (hd)
find --set-root /boot/imgs/winpe.wim
(hd-1,0)/loaderNT /boot/imgs/winpe.wim
find --set-root /boot/imgs/winpe.vhd
(hd-1,0)/setbcd /boot/imgs/winpe.vhd winload=/windows/system32/boot/winload.efi minint=1
boot

title 使用外部命令 NTBOOT 启动 Windows 系统
map --mem --no-hook /efi/grub/ext/NTBOO (hd)
(hd-1,0)/loaderNT (hdx,y)/.win
(hd-1,0)/setbcd (hdx,y)/.win
boot

Is there another page rather than
fef1eec#diff-eae884e96ce2e00bfac7acc7f86b3157ce9f9f7b48da48881c2abf5f4bae3d5fL118-R131 that has info??

Seems a very big ext file comparted to all the others?
Thanks for quick reply.

@yaya2007
Copy link
Collaborator

yaya2007 commented Jul 2, 2023

There is a txt file in the ext directory with instructions for use.

@yaya2007
Copy link
Collaborator

yaya2007 commented Jul 2, 2023

find --set-root /efi/grub/ext/NTBOOT
map --mem --no-hook /efi/grub/ext/NTBOOT (hd)
find --set-root /boot/imgs/winpe.vhd
(hd-1,0)/setbcd /boot/imgs/winpe.vhd winload=/windows/system32/boot/winload.efi minint=1
boot

@msetzerii
Copy link
Author

Find no text file in ext directory?
file *
chkpci: data
cmdline: data
cpuid: data
date: data
diskid: data
echo: data
efidiskinfo: data
fat: data
fwsetup: data
g4d_off: data
getenv: data
hotkey: data
inifile: data
mbrcheck: data

Rename NTBOOT to NTBOOT.org and to NTBOOT.lzma then uncompressed.

NTBOOT: DOS/MBR boot sector MS-MBR XP "j" "j" "j", disk signature 0x11222211; partition 1 : ID=0x4, active, start-CHS (0x0,2,1), end-CHS (0x60,1,16), startsector 32, 12288 sectors

NTBOOT.org: LZMA compressed data, non-streamed, size 6307840
ProgressBar: data
slic: data
time: data
ver: data
wenv: data

ls -lh NT*
6.1M Jul 2 23:41 NTBOOT
803K Jul 1 11:16 NTBOOT.org

No NTBOOT in non-uefi 7z file?
I create a 64M boot image that contains two linux kernels and both the regular grub4dos and grub4dos-uefi boot loaders.
Before the zipped files were about 49M total with two kernels and ramdisk.lzma. Then it increased to like 51M.
Include the two grub4dos 7z files, and then the expanded versions for booting.
So, was just noticing the size increase, and probable not needed for my use, but minor increase in size.
Just wondering? Sure others might find it very useful.

@yaya2007
Copy link
Collaborator

yaya2007 commented Jul 2, 2023

Sorry, I'm very sorry! The explanation text did not follow the release, the error was in compiling the script.
ChangeLog.txt

@msetzerii
Copy link
Author

Nothing to be sorry about. Just noticed the relatively large increase in size, and wondered what the new NTBOOT was.
Looked at the ChangeLog.txt. Had to use translate.google.com to make any sense of it. Since my image uses both the regular grub4dos and grub4dos-EFI with only regular linux kernels and memtest86+ doesn't make a difference.
Thanks again for the time.

@msetzerii
Copy link
Author

Google Translate version.
Release Notes:
2023-07-01 (yaya)
Added NTBOOT for booting WIM/VHD on x64 UEFI
Support MBR partition table primary partition, GPT partition table arbitrary partition
Support FAT, NTFS, exFAT file system (VHD cannot be located in FAT partition, old version Windows VHD can only be located in NTFS partition)
The file path should preferably be English letters/numbers without spaces. If there are spaces, use the symbol "" instead of spaces when passing parameters.
The command line length cannot exceed 255 characters.

Instructions:

  1. Start Windows WIM/VHD
    Assuming the WIM/VHD is located at (hdx,y)/boot/imgs/winpe.vhd
    title Boot Windows NT6+ PE
    map --mem --no-hook /efi/grub/ext/ntboot (hd)
    find --set-boot /boot/imgs/winpe.vhd
    (hd-1,0)/setbcd /boot/imgs/winpe.vhd winload=/Windows/System32/boot/winload.efi minint=1
    boot

  2. Start the Windows system
    Assuming the system folder is at (hdx,y)
    title Boot Windows
    map --mem --no-hook /efi/grub/ext/ntboot (hd)
    (hd-1,0)/setbcd (hdx,y)/win
    boot

Command line options:

  1. Set Windows PE loading options.
    winload=/Windows/System32/boot/winload.efi

  2. Specify the path of winload.exe/winload.efi.
    sysroot=/Windows

  3. Specify the root directory of the Windows system.
    secureboot=off

  4. Boot into WinPE mode.
    minint=1

  5. Specify the maximum resolution
    hires=1

2023-03-28 (yaya)
Add external timer application: progress bar (ProgressBar).
How to use: ProgressBar [--no-box] upper left corner x upper left corner y x size y size color mode
Color: 24-bit color 0x red red green green blue blue
Mode (0-3): 1. Horizontal from left to right 2. Horizontal from right to left 3. Vertical from top to bottom 4. Vertical from bottom to top
Mode (4-7): 0. Increment 1. Decrease
x and y are expressed in pixels
--no-box: don't show borders in incremental mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants