Because there are multiple PE and IMG files, the method of booting to DOS and then using Grub.exe for booting was chosen. But then there was a problem. For example, after booting some machines, the drive letter is C: while after booting others, the drive letter is A:. Then AUTOEXEC.BAT is not so automatic. On the machines where it is recognized as C:, it can be written as: grub --config-file=/menu.lst, but on the machines that only recognize A: drive, it must be changed to: grub --config-file=(fd0)/menu.lst, otherwise it prompts that the file is not found. Moreover, the items in menu.lst also need to be changed,
fontfile /grub/fonts => fontfile (fd0)/grub/fonts
chainloader /MTLDR => chainloader (fd0)/MTLDR
map --mem /grub/ar4.img (fd0)
map --hook
chainloader (fd0)+1 =>
rootnoverify (fd0)
map --mem (fd0)/grub/ghost.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
Otherwise, it cannot boot into the items in the menu.
The Grub4DOS help document says:
"For example, you can create a feature file in the root directory of the USB flash drive, such as myudisk.txt
Then use the following command to boot a project:
find --set-root /myudisk.txt
chainloader /ldrxpe
"
I tried it but still didn't succeed.
It will be very troublesome to take the USB flash drive to different machines.
Is there any good method?
fontfile /grub/fonts => fontfile (fd0)/grub/fonts
chainloader /MTLDR => chainloader (fd0)/MTLDR
map --mem /grub/ar4.img (fd0)
map --hook
chainloader (fd0)+1 =>
rootnoverify (fd0)
map --mem (fd0)/grub/ghost.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
Otherwise, it cannot boot into the items in the menu.
The Grub4DOS help document says:
"For example, you can create a feature file in the root directory of the USB flash drive, such as myudisk.txt
Then use the following command to boot a project:
find --set-root /myudisk.txt
chainloader /ldrxpe
"
I tried it but still didn't succeed.
It will be very troublesome to take the USB flash drive to different machines.
Is there any good method?
