I decided to open this topic to talk here about this Fork of GRUB 2 made by a1ive (on reboot.pro forum) or wintoflash (on wuyou.net forum).
We all here on the forum are more familiar with the use of grub4dos, especially its old MBR version, but this fork of grub2 has many new features added by his author and it is extremely useful too.
Official page on github is: https://github.com/a...rub/tree/latest
Fork of GRUB 2 to add various features.
See the file INSTALL for instructions on how to build and install the GRUB 2 data and program files.
Extra modules: https://github.com/a1ive/grub-extras
NOTE: To create the grubia32.efi, grubx64.efi and core.img files just run the build_grub.bat file included into grub2-latest.tar.gz download.
You can find my English translation of his Manual made using Google translate here on this post:
To make things easier for other members and future readers I translated a1ive Grub2 Manual to English by means of Google translate.
I hope a1ve do not mind, but I though there is very good info in the Manual and it deserves to be translated to English and shared here.
alacranAttached Files GRUB 2 Manual by a1ve-docx .7z 63.85KB
And I didn't know but the good steve6375 already translated the manual:
steve already translated the manual a long time ago. https://www.rmprepus...ive-grub2-notes
Also there is an interesting topic about Disk emulation under GRUB2 UEFI-GRUB2 on: http://bbs.wuyou.net...3&extra=&page=1
This post was last edited by wintoflash at 2020-12-10 11:24
The content of this post is no longer updated. Those who are willing to improve can send PR and issue to GitHub.
If the download is slow, use http://gitd.cc/to download
map [--pause] [--mem] [--type=CD|HD|FD] FILE
-m, --mem load into memory
--rt specifies that the memory disk will not be released after the operating system is loaded
-l, --blocklist force conversion to blocklist format writable disk
-t, --type specify the virtual disk type
--type=CD is designated as a CD, the block size is 2048
--type=HD specifies the hard disk, the block size is 512
--type=FD specifies a floppy disk, the block size is 512
-o, --ro disable virtual disk writing support
-e, --eltorito=DISK also specify the drive letter to mount the El Torito image
-n, --nb do not start immediately after loading the virtual disk
-g, --no_g4d Do not write GRUB4DOS map information to memory
-f, --first make the device the first in the disk list
#When the virtual disk type is not specified, map will automatically determine the disk type.
#Load to memory If it is a net start, please use this parameter
map --mem --type=CD /wepe_64.iso
#Load a disk/partition as a virtual disk
map --type=HD (hd0)
#Load VHD file.
map --mem --rt (hd1,4)/ramos.vhd.xz
Example custom command:
grub-mkimage -d x86_64-efi -p /boot/grub -o grubx64.efi -O x86_64-efi acpi affs afs all_video bfs bitmap bitmap_scale blocklist boot bsd btrfs cat chain cmp commandline configfile cpio crc date datehook edd disk efi dm_puga echo efifwsetup efiload eval exfat expr ext2 extcmd f2fs fat fb file font fshelp getenv getkey getkey gfxmenu gfxterm gfxterm_background gfxterm_menu gptsync gzio halt hashsum help hexdump hfs hfs hfsplus iso9660 jfs jpeg keystatus legacy lvmboot multiboot normal lvmdisk lvmboot lvm-icfg iso9660 jfs linux miniac keystatus legacy lcm ntfs part_apple part_bsd part_gpt part_msdos partnew parttool png probe progress raid5rec raid6rec random read reboot regexp reiserfs sbpolicy search setenv shell sleep squash4 syslinuxcfg tar terminal terminfo test tga time true udf vhd wimhd video_colors videoio x video map xnu wimfs video_colors video_fb xnu xnu video map
Hard disk mirroring supports MBR partition table and GPT partition table.
Refer to the code of the following projects, thanks to the open source of the relevant authors.
License Agreement: GPL v3
This topic was added stamp by liuzhaoyzz at 2020-4-10 10:24, recommended by moderators
I hope the author a1ive, has some free time to come to this topic to answer your questions, as I'm new in grub2 and I may not be able to help you very much.