无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
楼主: wintoflash
打印 上一主题 下一主题

[发布] grub2文件管理器(BIOS/UEFI启动 ISO/WIM/VHD...)

    [复制链接]
1#
发表于 2020-4-29 00:01:01 | 显示全部楼层
回复

使用道具 举报

2#
发表于 2020-5-18 09:17:15 | 显示全部楼层
Hi guys,

Hi @WinToFlash / @a1ive

I installed NTBOOT to my HDD. My HDD have two partitions.The first partition for boot (FAT32), the second for data wim files (NTFS. I put wim file in here /WIM/winpe.wim).

In uEFI mode, the wimboot.mod module not work.

This is my menuentry:

Current, the second partition for data wim is (hd0,msdos5)

menuentry "WinPE WIM in uEFI mode" {
        saved_root=$root
        set root=(hd0,msdos5)
        wimboot @:boot.wim:"${root}/WIM/winpe.wim" \
                        @:bcd:(${saved_root})/boot/wimboot/bcd \
                        @:boot.sdi:(${saved_root})/boot/wimboot/boot.sdi \
                        @:bootmgfw.efi:(${saved_root})/boot/wimboot/bootmgfw.efi
        set root=$saved_root
}
It is show error:

STATUS: 0x00000f
Infor: An unexpected error has occured.

Why error ?.

(If in the LEGACY mode, linux16 "(${saved_root})/boot/wimboot/wimboot"
initrd16 newc..........,
working fine !
)

Thank you.

点评

any photos/screenshots?  详情 回复 发表于 2020-5-18 09:28
回复

使用道具 举报

3#
发表于 2020-5-18 09:49:09 | 显示全部楼层
本帖最后由 meoit 于 2020-5-18 09:57 编辑



winpe.wim have uEFI support (= winloader.efi). Confirm by creator.

点评

use bcd, boot.sdi, bootmgfw.efi from link you should change the file order in menu entry: make sure the "boot.wim" is at the end. if still doesn't work, please send the wim file to me.  详情 回复 发表于 2020-5-18 10:04
回复

使用道具 举报

4#
发表于 2020-5-18 15:15:08 | 显示全部楼层
wintoflash 发表于 2020-5-18 10:04
use bcd, boot.sdi, bootmgfw.efi from link
you should change the file order in menu entry:

I only see "wimboot" inside wimboot.gz which downloaded and no more.

Where is BCD+boot.sdi+bootmgfw.efi ?

点评

"wimboot" is a cpio archive.  详情 回复 发表于 2020-5-18 16:51
回复

使用道具 举报

5#
发表于 2020-5-18 17:02:13 | 显示全部楼层
本帖最后由 meoit 于 2020-5-18 17:11 编辑
wintoflash 发表于 2020-5-18 16:51
"wimboot" is a cpio archive.

I am using Windows :)

How to extract your file.---------------------
ok, extracted OK.
回复

使用道具 举报

6#
发表于 2020-5-18 18:00:32 | 显示全部楼层
本帖最后由 meoit 于 2020-5-18 18:03 编辑

OK. WORKING FINEEEEEEEEEEEEEEEE......

@WinToFlash - YOU ARE BEST, SAVED MY LIFE.

THANKS MAN !.
Your BCD, change from \boot\boot.sdi (wih my BCD) to \sources\boot.sdi

Why must \sources\boot.sdi ?. :)
回复

使用道具 举报

7#
发表于 2020-5-18 19:37:56 | 显示全部楼层
@WinToFlash

Where do we get the files: startup.bat, winpeshl.ini ?. (for wimboot Windows ISO setup).

点评

??? If you don't use grub2-filemanager, you have to write your own scripts to boot Windows ISOs.  详情 回复 发表于 2020-5-18 20:05
回复

使用道具 举报

8#
发表于 2020-5-19 12:54:10 | 显示全部楼层
wintoflash 发表于 2020-5-18 20:05
???
If you don't use grub2-filemanager, you have to write your own scripts to boot Windows ISOs.
...

OK, I will write scripts for myself.

And, I want to ask about the command keystatus.

When I use Original-GRUB2 from GNU, keystatus working normally.
But I test your GRUB2, keystatus not pause when I press hold the SHIFT key on my keyboard.

This is script:

if keystatus --shift; then
        echo " Please pause for me."
        sleep --interruptible 8888
fi

点评

how to test it?  详情 回复 发表于 2020-5-19 16:21
UEFI or BIOS?  详情 回复 发表于 2020-5-19 12:57
回复

使用道具 举报

9#
发表于 2020-5-19 13:26:29 | 显示全部楼层

BIOS/LEGACY.
回复

使用道具 举报

10#
发表于 2020-5-21 15:26:14 | 显示全部楼层

I tested, still not working.

Test boot USB + UEFI
Test boot USB + Legacy
Test boot ISO + VMWare UEFI
Test boot ISO + VMWare Legacy

Not working.

It's always ignore shift key.
回复

使用道具 举报

11#
发表于 2020-5-21 15:33:15 | 显示全部楼层
本帖最后由 meoit 于 2020-5-21 15:47 编辑

When booting UEFI in VMware (using ISO) and booting with USB on true machine (uEFI mode enable, secure boot disable), it show parameters on gfxterm that name of files to load / KB / milisecond...
then gfxterm also show (on top window of gfxtheme - i have apply theme). I must press down/up key or press any key to hide this.

How to hide them ?.
回复

使用道具 举报

12#
发表于 2020-5-21 22:46:57 | 显示全部楼层
本帖最后由 meoit 于 2020-5-21 22:58 编辑

Thanks @WinToFlash

I tested the command SLEEP.

sleep --interruptible 5
configfile "${prefix}/main.cfg"

It is not working. Not execute the configfile "${prefix}/main.cfg" after 5 seconds.

Why ? (Original GRUB GNU that working fine).

点评

[attachimg]457538[/attachimg] ??? configfile also works well.  详情 回复 发表于 2020-5-22 09:46
回复

使用道具 举报

13#
发表于 2020-5-24 22:01:14 | 显示全部楼层
本帖最后由 meoit 于 2020-5-24 22:11 编辑

@WinToFlash

Please support to boot:

Kaspersky Rescue Disk 18 ISO
https://support.kaspersky.com/viruses/krd18

ESET SysRescue ISO

https://www.eset.com/int/support/sysrescue/

booting which without extract source.

I am trying with loopback, but fail.


点评

make sure the iso file is contiguous, and part4 is not in use. use partnew command to create a dummy partition.  详情 回复 发表于 2020-5-25 09:08
回复

使用道具 举报

14#
发表于 2020-5-26 12:05:42 | 显示全部楼层
本帖最后由 meoit 于 2020-5-26 12:23 编辑

grub2 build 20200520 is boot OK wim file

grub2 build 20200525 is boot fail wim file.



I use the same boot command for two your grub2 versions.

Maybe the cause came from newc.

Please fix.


点评

bug fixed  详情 回复 发表于 2020-5-26 16:26
回复

使用道具 举报

15#
发表于 2020-5-26 17:46:22 | 显示全部楼层
本帖最后由 meoit 于 2020-5-26 21:26 编辑

OK. Thanks.

Return to sleep command.

Oddly, sleep doesn't work with option -i, with the option -v it works.

echo Please press ESC to skip this message.
sleep -i 9999

and:

echo Please wait for 10 seconds.
sleep -v 10

sleep -i - it is always ignore -i, and execute next statement.
回复

使用道具 举报

16#
发表于 2020-6-28 19:50:00 | 显示全部楼层
@wintoflash

How to install grub2fm to USB Flash or the External HDD or the External SSD devices on the Windows computer ?.

Thanks.
回复

使用道具 举报

17#
发表于 2020-6-30 22:54:14 | 显示全部楼层
本帖最后由 meoit 于 2020-6-30 23:11 编辑

What to do with your source code ?.
I want to build Grub2FM for myself with some path customization.
I have to build on Windows or Ubuntu or Linux or macOS ?..
---------------------------------------------------
Trying with GIT on Windows 10 x64, I get error:

meoit@meoit-pc MINGW64 ~/grub2-filemanager (master)
$ ./update_grub2.sh
./update_grub2.sh: line 3: wget: command not found
tar: grub2-latest.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
.
---------------------------------------------------
Please guide me from the start because I am a newbie.

回复

使用道具 举报

18#
发表于 2020-7-7 23:54:14 | 显示全部楼层
wintoflash 发表于 2020-7-3 12:00
msys/cygwin is NOT linux.

I am build grub2fm via the Git for Windows (Git-2.27.0-64-bit.exe).
I see the mingw64 folder is already available in git.
Then I open Git bash here at the grub2-filemanager-7.3.0 folder.
I type ./update_grub2.sh, and continue type ./build.sh
And get some error:

10500K .......... .......... .......... .......... .......... 98%  242K 0s
10550K .......... .......... .......... .......... .......... 98% 1.25M 0s
10600K .......... .......... .......... .......... .......... 99% 1.96M 0s
10650K .......... .......... .......... .......... .......... 99%  239K 0s
10700K .......... .......... .......... .......              100% 1.27M=26s

2020-07-07 22:34:58 (413 KB/s) - 'grub2-latest.tar.gz' saved [10994829/10994829]


ADMIN@ADMIN-PC MINGW64 /f/grub2-filemanager-7.3.0

$ ./build.sh
checking for gettext ... ok
checking for xorriso ... which: no xorriso in (/c/Users/ADMIN/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/mingw64/bin:/usr/bin:/c/Users/ADMIN/bin:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/cmd:/usr/bin/vendor_perl:/usr/bin/core_perl)
not found\nPlease install xorriso.

What is xorriso ?. It's support on Windows ?.

点评

msys2 / cygwin is not linux.  详情 回复 发表于 2020-7-8 08:13
回复

使用道具 举报

19#
发表于 2020-7-9 19:06:35 | 显示全部楼层
Thanks wintoflash

Which packages (via pacman) need to install in MSYS2 ?.

点评

msys / cygwin is not linux. which means you can't build grubfm on msys or cygwin. you need to install a linux distro on you pc (or virtual machine), and build grubfm.  详情 回复 发表于 2020-7-9 19:53
回复

使用道具 举报

20#
发表于 2020-7-9 20:20:36 | 显示全部楼层
Which Linux distro do you recommend ?.

点评

Ubuntu / Manjaro / Linux Mint  详情 回复 发表于 2020-7-9 20:36
回复

使用道具 举报

21#
发表于 2020-7-10 00:18:36 | 显示全部楼层
wintoflash 发表于 2020-7-9 20:36
Ubuntu / Manjaro / Linux Mint

Thanks wintoflash

I am so happy. I have built it, although I don't know if it will work yet.

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-5-3 08:00

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表