maanu
发表于 2019-5-28 03:20:51
hilsonma 发表于 2019-5-24 06:29
1- it does not create EFI partition . is it possible if i want to make an EFI partition of 8 GB ?
2- it does not convert main DATA partiition to NTFS at the end.
3- i had to add ( --force ) to fbinst parameter , after that it formatted successfully .
Thank you for your time ,
It give these errors while formatting .
hilsonma
发表于 2019-5-28 05:51:43
1- it does not create EFI partition . is it possible if i want to make an EFI partition of 8 GB ? FAT16 partition can only be up to 2GB. Big wim file should be in data partition. Big EFI partition is not recommended. 2- it does not convert main DATA partiition to NTFS at the end. The script does not support this function. You should convert manually. And exFAT for udisk is recommended.
3- i had to add ( --force ) to fbinst parameter , after that it formatted successfully . There should be sth not in order. A single fat32/ntfs partition udisk is required for this script. You can do the job without this script.
Use fbinsttool to make a ud partition and to copy files.
Use diskgenius to make an efi partition and to copy files.
2010sya
发表于 2019-5-28 12:29:24
hilsonma 发表于 2019-5-27 12:41
20190527更新:
UEFI平台开机菜单改用grub2菜单,实现wim镜像和efi文件自动列表,一键启动。
三分区工具取得重大突破,恭喜恭喜!!!
maanu
发表于 2019-5-28 23:59:25
hilsonma 发表于 2019-5-28 05:51
FAT16 partition can only be up to 2GB. Big wim file should be in data partition. Big EFI partition i ...
Dear Sir,
i have manually created a 800MB UD area , with commandline fbinst , i dont use fbinsttool . also manually created a 8GB EFI FAT32 partition , because i have many WIM files and other efi tools , like acronis etc . remaining is DATA partition .
same is possible with this tool . by Zdz1210
http://bbs.wuyou.net/forum.php?mod=viewthread&tid=410621
i thought may be it is possible with cmd file too.
thanks
hilsonma
发表于 2019-5-29 06:48:18
本帖最后由 hilsonma 于 2019-5-29 07:02 编辑
maanu 发表于 2019-5-28 23:59
Dear Sir,
i have manually created a 800MB UD area , with commandline fbinst , i dont use fbinst ...
You can create an 800MB ud with the script by
change
pa\partassist.exe /hd:%d123% /resize:0 /reduce-left:7 /align
to
pa\partassist.exe /hd:%d123% /resize:0 /reduce-left:800 /align
and an 8GB esp by
change
pa\partassist.exe /hd:%d123% /resize:0 /reduce-right:200
pa\partassist.exe /hd:%d123% /cre /pri /size:auto /end /fs:fat16 /align /label:EFI
to
pa\partassist.exe /hd:%d123% /resize:0 /reduce-right:8GB
pa\partassist.exe /hd:%d123% /cre /pri /size:auto /end /fs:fat32 /align /label:EFI
But I don't recommend to do like this.
You can put wim files into a folder in data partition.
And put booting files with a small wim file into esp.
Then just put 2 loaders into ud.
I prefer small ud and esp. They should do efficient booting, not storing.
Just a small wim file should be kept in esp for maintenance.
hilsonma
发表于 2019-5-29 16:02:46
本帖最后由 hilsonma 于 2019-5-29 16:22 编辑
wintoflash 发表于 2019-5-29 15:02
我修改的grub2是支持读ud区的,只需要加入fb这个模块。其实可以考虑把wim都放ud区隐藏起来。不过这样比较麻 ...
ud 可能会成为过去式,仅仅是为了兼容bios.
而且也不必放ud隐藏,放一个维护用的小wim隐藏在esp即可,其他pe和工具就放可见区。
其实不论放ud还是esp还是可见区,bios下g4d或grub2都可以引导,所以没有必要既放esp又放ud.
不论是uefi还是bios,引导的都是esp的极简wim或可见区的wim集合。这是我的做法。
当然,grub2支持ud是好的,ud的隐藏性要比esp高,有人喜欢放wim在ud。只是bios平台和uefi平台各放一个PE我不欣赏,完全可以启动同一个PE的。
而且也没有必要将各类PE合盘隐藏,只要隐藏一个核心就可以了,工具都可以提取外置。要尝试不同风格的PE,将各类PE镜像放同一个文件夹使用自动菜单就可以了。
再次谢谢wintoflash的指导,让我实现了uefi平台的自动菜单。
maanu
发表于 2019-5-30 04:17:43
Dear Hilsonma ,
Thank you for writing back, i will play around with your command line suggestions during weekend . and i understand your technique , but i prefer FB's bootloader for BIOS boot ( everything is hidden in UD ) my PE's import pe tools while booting from ud.
but like wintoflash is saying that he is working grub2 to access ud , will it be possible to access those files in UEFI secure mode as well ?
also , if you are interested , i suggestusing shim loader modified by ValidKss ,
https://github.com/ValdikSS/Super-UEFIinSecureBoot-Disk
it auto enroll secure keys , you can also use Linux's Preloader signed by Microsoft with their secure key .
Thank you again.
Regards
Maanu from Pakistan
879792799
发表于 2019-5-30 07:41:51
谢谢大大更新 越来越好了啊!
995070995
发表于 2019-5-30 08:33:42
支持下!
hilsonma
发表于 2019-5-30 10:04:57
本帖最后由 hilsonma 于 2019-5-30 20:30 编辑
maanu 发表于 2019-5-30 04:17
Dear Hilsonma ,
Thank you for writing back, i will play around with your command line suggestion ...
Hi Maanu,
Thank you for your suggestion.
I found the shim loader should be the same as i have used.
But I have not tested it.
You can test it if you have the conditions and tell me the result.
Below is a version of bootable udisk with wimfile in ud.
Grubx64.efi have been made including module fb to support reading ud.
Please refer to http://bbs.wuyou.net/forum.php?mod=viewthread&tid=413597
wimfile in ud can be used as("${bootdev}")/wepe.wim or by
search -n -s -f /wepe.wim
链接: https://pan.baidu.com/s/1pkPxfRuPSDGN_OyFkGKeyg 提取码: xg7r
Yours,
Hilson Ma
efafea
发表于 2019-5-30 10:35:22
不明觉厉
maanu
发表于 2019-5-31 02:15:36
hilsonma 发表于 2019-5-30 10:04
Hi Maanu,
Thank you for your suggestion.
Dear Hilson Ma,
Thank you , i will try testing it over the weekend .please tell ,do you have access to yandex drive while in china ? it is difficult for me to upload to baidu , i can upload my uefi setup for your view , on yandex .
Best Regards
Maanu from Pakistan
hilsonma
发表于 2019-5-31 07:54:22
maanu 发表于 2019-5-31 02:15
Dear Hilson Ma,
Thank you , i will try testing it over the weekend .please tell ,do you have...
Hi Maanu,
I registered Yandex Disk just now.
Regards
Hilson
l18c19
发表于 2019-5-31 23:40:55
好工具,值得收藏学习!
lhb9900
发表于 2019-6-3 10:39:59
楼主不但是GRUB高手,还是英文高手
vm669
发表于 2019-6-6 17:38:07
找到正主了,努力学习
vm669
发表于 2019-6-17 09:44:49
win10下,插着空U盘,FAT32单区。
管理运行脚本,命令窗口闪一下就没了
是怎么回事{:1_191:}
hilsonma
发表于 2019-6-17 12:43:33
vm669 发表于 2019-6-17 09:44
win10下,插着空U盘,FAT32单区。
管理运行脚本,命令窗口闪一下就没了
是怎么回事
应该不会闪一下就没了的呀
要不你把脚本中获取管理员权限那一行注释掉再试吧
就是
%1 mshta vbscript:createobject("shell.application").shellexecute("""%~0""","::",,"runas",1)(window.close)&& exit
改成
rem %1 mshta vbscript:createobject("shell.application").shellexecute("""%~0""","::",,"runas",1)(window.close)&& exit
然后右键单击脚本文件,选择 以管理员身份运行 。
kzr588
发表于 2019-6-18 11:07:26
img文件夹下的wim文件不支持中文名?
hilsonma
发表于 2019-6-18 11:58:30
kzr588 发表于 2019-6-18 11:07
img文件夹下的wim文件不支持中文名?
支持的,如果乱码首先检查菜单文件grub.cfg和grubfm.cfg,必须使用utf-8编码,还有问题就加上字体支持。
vm669
发表于 2019-6-19 09:32:11
hilsonma 发表于 2019-6-17 12:43
应该不会闪一下就没了的呀
要不你把脚本中获取管理员权限那一行注释掉再试吧
就是
rem掉后用管理员运行,还是闪一下没了
后来不用用管理员直接运行,可以开始,但是好像UD区没有建立,不知道为何
hilsonma
发表于 2019-6-19 10:16:01
本帖最后由 hilsonma 于 2019-6-19 10:17 编辑
vm669 发表于 2019-6-19 09:32
rem掉后用管理员运行,还是闪一下没了
后来不用用管理员直接运行,可以开始,但是好像UD区没有建立,不 ...
把附件解压出三个脚本放到三分区脚本同一个文件夹,运行后把结果给我看看。
vm669
发表于 2019-6-20 09:21:21
hilsonma 发表于 2019-6-19 10:16
把附件解压出三个脚本放到三分区脚本同一个文件夹,运行后把结果给我看看。
按顺序
固态:EFI,win10系统,绿色程序,深度系统三区
机械:原EFI(无用),三个分区
U盘
hilsonma
发表于 2019-6-20 09:51:37
vm669 发表于 2019-6-20 09:21
按顺序
固态:EFI,win10系统,绿色程序,深度系统三区
机械:原EFI(无用),三个分区
照贴图看应该脚本是没有问题的,不知道为什么fbinst无法格式化u盘
你再用附件脚本试试看能不能执行成功。
不能的话只有手动格式化了,如果手动无损格式化都不行的话就将u盘文件备份到硬盘,然后手动强行格式化。
monkey_123
发表于 2019-6-20 10:13:30
学习了!楼主的思路真的不错!UD未来真成过去式了!
vm669
发表于 2019-6-21 09:24:03
hilsonma 发表于 2019-6-20 09:51
照贴图看应该脚本是没有问题的,不知道为什么fbinst无法格式化u盘
你再用附件脚本试试看能不能执行成功 ...
想想准备放弃优盘UD了
喜欢你的骨感WEPE64.WIM,请教:
1、如果单一优盘想要启动你的WEPE64.WIM,我该如何制作?
2、原MBR启动双系统win7和win10,后来又增加了DEEPIN,现在应该是变成GRUB启动了,我该如何增加一个启动菜单来启动WEPE64.WIM,比如说放在C:\
如果可以简单使用bootice之类工具最好,如果有路过请帮忙{:1_195:}
hilsonma
发表于 2019-6-21 12:37:32
本帖最后由 hilsonma 于 2019-6-21 13:18 编辑
你的U盘才4G,其实没有必要三分区,直接FAT32格式,然后建以下文件夹:
h:\efi\boot
h:\efi\xorboot
运行xorboot,生成启动文件h:\efi\boot\bootx64.efi 和菜单文件 h:\efi\xorboot\xorboot.xor 就可以了
如果是grub2启动就是以下文件:
h:\efi\boot\bootx64.efi
h:\efi\grub\grub.cfg
h:\efi\microsoft\bootx64.efi
h:\efi\microsoft\bcd
h:\efi\microsoft\b4w
h:\efi\microsoft\boot.sdi
FAT32分区既是数据区也是efi启动分区
如果你一定要隐藏efi启动分区才需要三分区,但我觉得意义不大
至于ud分区,那是兼容bios启动的,如你要维护bios启动的旧电脑才需要用到。
一键脚本不成功的话,使用fbinsttool.exe勾选强制格式化参数应该还是可以成功的。
如果使用xorboot的话,wepe64.wim要放在efi分区,然后在xorboot菜单中选中这个文件就可以了
如果使用grub2的话可以放在任意分区任意文件夹,如果是c:\wepe64.wim
菜单项如下:
menuentry "1.WePE" --hotkey=1 {
set f_efi=("${cmddevice}")/efi/microsoft/bootx64.efi
set f_bcd=("${cmddevice}")/efi/microsoft/b4w
set f_sdi=("${cmddevice}")/efi/microsoft/boot.sdi
wimboot @:bootmgfw.efi:"${f_efi}" @:bcd:"${f_bcd}" @:boot.sdi:"${f_sdi}" @:boot.wim:"c:/wepe64.wim"
}
注意windows使用 \ 分隔文件夹而grub2使用 /
启动分区要有以下3文件用于wimboot
\efi\microsoft\bootx64.efi ------ 这个是微软的bootmgfw.efi
\efi\microsoft\b4w ------ 这个是bcd,因为我用bcd启动wimdows所以用b4w启动pe两个文件放一起
\efi\microsoft\boot.sdi ------ 这个是sdi文件虚拟盘文件我用的是微pe中提取的
如果路径和文件名有变化的话菜单脚本作相应更改。
菜单标题1.WePE 可以随意更改,后面的 --hotkey=1 是指定grub2菜单下按1进入wepe,如果不需要可以不带此参数,直接如
menuentry "WePE" {
......
}
以上wepe64.wim无论是u盘还是硬盘都可以
如果不是隐藏u盘efi分区不需要bootice
vm669
发表于 2019-6-22 11:05:21
刚才重新制作一次
结果不一样,好像有建立UD区,但是文件没进去
是不是可以自己把文件拉进去就好了
vm669
发表于 2019-6-22 11:07:47
本帖最后由 vm669 于 2019-6-22 16:49 编辑
hilsonma 发表于 2019-6-21 12:37
你的U盘才4G,其实没有必要三分区,直接FAT32格式,然后建以下文件夹:
h:\efi\boot
h:\efi\xorboot
刚才没看到就发了帖子
我自己在MBR下做了XORboot启动,可以启动大白菜的2003ISO,
但是不能启动你的WEPE64.WIM
不知道是不是这个wim文件只能用于EFI启动有关,
或者是跟电脑启动方式有关
是了,好像那个帖子有写道
等于说我制作的MBR启动的U盘不适合UEFI启动的电脑,所以不能启动你的WIMPE
难怪你要发布三分区哦
好像明白一点了,一个区对应一种启动方式
是这样吗?看最后分区情况,第一个是UD区
第三个EFI区,这两个好明白
第二个大区是不是隐藏着MBR启动呢?
还有MBR方式中有哪种发放可以像UEF启动这样增加启动菜单选择启动你的WEPE64.WIM?
vm669
发表于 2019-6-22 11:25:32
本帖最后由 vm669 于 2019-6-22 11:34 编辑
hilsonma 发表于 2019-6-20 09:51
照贴图看应该脚本是没有问题的,不知道为什么fbinst无法格式化u盘
你再用附件脚本试试看能不能执行成功 ...
ud\fbinst.exe (hd2) format --primary 8M
这个没效果,UD区没能建立。
又运行 建立UD
再来fb,好像有建立,只剩下7.5
导入FBA,说空间不足,
但仍然导入,好像成功了
用U盘启动,可以的,成功了
那个wim文件启动真漂亮,可以直接使用硬盘的boot。wim安装系统了
谢谢你!
页:
1
[2]
3
4
5
6
7
8
9
10
11