|
本帖最后由 teasiu 于 2016-1-18 05:32 编辑
Depends which OS you used.
e.x. Windows:
All you need in here:
http://alpha.gnu.org/gnu/grub/grub-2.02~beta2-for-windows.zip
And then follow the usage :
pxe for bios:
open your windows terminal, login the files folder, type "grub-mknetdir.exe --help"
Then you will find the way to build it, just like "grub-mknetdir --net-directory=/srv/tftp --subdir=/boot/grub -d i386-pc", after do it, all the files will be output under your work disk partition root "/srv/tftp"
Now you see the key is "platform".so,
pxe for efi:
"grub-mknetdir --net-directory=/srv/tftp --subdir=/boot/grub -d i386-efi",
"grub-mknetdir --net-directory=/srv/tftp --subdir=/boot/grub -d x86_64-efi",
boot file "core.0/core.efi" output here /srv/tftp/boot/grub/<platform> should be work.
If you want to build EFI boot files,
see "grub-install.exe --usage"
also read this page:
http://www.000111.org/blog/?post=13
example:
grub-install.exe --boot-directory=f:\ --target=i386-pc \\.\PHYSICALDRIVE2
grub-install.exe --boot-directory=f:\ --target=i386-efi \\.\PHYSICALDRIVE2
grub-install.exe --boot-directory=f:\ --target=x86_64-efi \\.\PHYSICALDRIVE2
so easy.
finally, write a grub.cfg file and done. |
|