windows版grub2在NTFS格式U盘安装并使用grub4dos引导win8pe
生活随笔
收集整理的這篇文章主要介紹了
windows版grub2在NTFS格式U盘安装并使用grub4dos引导win8pe
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
1.在windows上安裝grub2 for windows到ntfs格式u盤。
教程地址:?https://www.aioboot.com/en/install-grub2-from-windows/
2.把grub4dos解壓到grub文件夾。
4.配置好grub.cfg。使用grub2引導(dǎo)grub4dos再引導(dǎo)winpe。嘿嘿。 #Sample GRUB2.0 configuration file #環(huán)境變量,用于選擇菜單保存,注意對應(yīng)菜單里需加入函數(shù)savedefault if [ -s $prefix/grubenv ]; thenload_envset default="${saved_entry}" elseset default=0 fifunction savedefault {if [ -s $prefix/grubenv ]; thensaved_entry="${chosen}"save_env saved_entryfi }#Boot automatically after xx secs. if keystatus --shift; thenset timeout=30 elseset timeout=5 fi#By default, boot the first entry. set default=0 #Fallback to the second entry. set fallback=1# auto 640x480 800x600 1024x768 efont.pf2 if loadfont /grub/unifont.pf2 ; theninsmod jpegset gfxmode=640x480 # load_videoinsmod gfxterminsmod vbeset locale_dir=$prefix/localeset lang=zh_CNinsmod gettext fi terminal_output gfxtermif background_image /grub/background_image.jpg ; thenset color_normal=red/blackset color_highlight=white/black elseset menu_color_normal=white/blackset menu_color_highlight=blue/black fi#user and password insmod password #set superusers="grub" #password grub grubmenuentry "啟動Win8PE.iso(grub.exe)" --unrestricted {set g4d_dir="/grub/grub4dos"set cfgfile="find --set-root /image/Win8PE.iso;map --mem /image/Win8PE.iso (hd32);map --hook;chainloader (hd32); rootnoverify (hd32)"linux16 $g4d_dir/grub.exe --config-file=$cfgfileinitrd16 /image/Win8PE.iso }menuentry "Reboot" --unrestricted {reboot }menuentry "Shutdown" --unrestricted {halt }
所需全套文件地址,不包括win8PE。PE自備。
https://download.csdn.net/download/shile/10383653
總結(jié)
以上是生活随笔為你收集整理的windows版grub2在NTFS格式U盘安装并使用grub4dos引导win8pe的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 企业级微服务构建-01搭建和使用Mave
- 下一篇: 常用计算机二级题库,计算机等级考试题库