Grub2引导grub4dos0.4.4再引导WinPE
Grub2引導grub4dos0.4.4再引導WinPE
經過實際測試,grub2能直接裝載WinPE的ISO文件,但不能成功引導進入WinPE系統,只能grub2引導grub4dos0.4.4,再由grub4dos0.4.4裝載WinPE的ISO文件才能進入WinPE系統
到https://www.upantool.com/iso/cdrom/2282.html下載老毛桃WinPE XP系統經典版ISO-老九最終撒手不管版
壓縮包中的BootCD_070911.ISO的MD5:9354b013057548d1282451008309b7e9
[amd641@localhost download]$ unzip laomaotao_iso.zip?
[amd641@localhost download]$ ls
BootCD_070911.ISO ?U盤量產網.url ?光盤.txt
laomaotao_iso.zip ?訪問我們.url ? 說明.txt
[amd641@localhost download]$ md5sum BootCD_070911.ISO?
9354b013057548d1282451008309b7e9 ?BootCD_070911.ISO
[amd641@localhost download]$ mv BootCD_070911.ISO laomaotao.iso
[amd641@localhost download]$ cp laomaotao.iso /mnt/sda6/
[amd641@localhost download]$ ls -lh /mnt/sda6/
-rw-r--r--. 1 amd641 amd641 110M 12月 29 16:04 laomaotao.iso
?
解壓laomaotao_iso.zip得到BootCD_070911.ISO,驗證它的MD5值,如果正確就將文件名改為全部小寫的laomaotao.iso,復制到E盤
?
到https://sourceforge.net/projects/grub4dos/下載grub4dos-0.4.4.zip,大小為801KB,解壓得到grldr和grub.exe并復制到E盤
[amd641@localhost download]$ unzip grub4dos-0.4.4.zip?
Archive: ?grub4dos-0.4.4.zip
? ?creating: grub4dos-0.4.4/
? inflating: grub4dos-0.4.4/menu.lst ?
? inflating: grub4dos-0.4.4/grldr ? ?
? inflating: grub4dos-0.4.4/README_GRUB4DOS.txt ?
? inflating: grub4dos-0.4.4/badgrub.exe ?
? inflating: grub4dos-0.4.4/grub.pif ?
? inflating: grub4dos-0.4.4/grldr.mbr ?
? inflating: grub4dos-0.4.4/hmload.com ?
? inflating: grub4dos-0.4.4/grub.exe ?
? inflating: grub4dos-0.4.4/COPYING ?
? inflating: grub4dos-0.4.4/config.sys ?
? ?creating: grub4dos-0.4.4/chinese/
? inflating: grub4dos-0.4.4/chinese/grldr ?
? inflating: grub4dos-0.4.4/chinese/badgrub.exe ?
? inflating: grub4dos-0.4.4/chinese/grub.exe ?
? inflating: grub4dos-0.4.4/bootlace.com ?
? inflating: grub4dos-0.4.4/ChangeLog_GRUB4DOS.txt ?
? inflating: grub4dos-0.4.4/default ?
[amd641@localhost download]$ cp grub4dos-0.4.4/grldr /mnt/sda6/
[amd641@localhost download]$ cp grub4dos-0.4.4/grub.exe /mnt/sda6/
[amd641@localhost download]$ cd /mnt/sda6
[amd641@localhost sda6]$ pwd
/mnt/sda7
[amd641@localhost sda6]$ touch menu.lst
[amd641@localhost sda6]$ vim menu.lst
在F盤創建空文件menu.lst并用記事本打開,將以下內容復制到menu.lst中
default=0
timeout=5
title WinPE
find --set-root /laomaotao.iso
map --mem /laomaotao.iso (0xff)
map --hook
chainloader (0xff)
boot
?
[root@localhost ~]# vim /etc/grub.d/40_custom
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. ?Simply type the
# menu entries you want to add after this comment. ?Be careful not to change
# the 'exec tail' line above.
menuentry "grub4dos 0.4.4_grub.exe" {
? ? ? ? insmod ntfs
? ? ? ? set root='(hd0,msdos6)'
? ? ? ? linux /grub.exe
}
menuentry "grub4dos 0.4.4_grldr" {
? ? ? ? insmod ntfs
? ? ? ? insmod ntldr
? ? ? ? set root='(hd0,msdos6)'
? ? ? ? ntldr /grldr
}
注意# the 'exec tail' line above.與menuentry "grub4dos 0.4.4" {之間不能有空行,最后的符號}后面不能有空格
[root@localhost ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.1.0-7.fc16.i686.PAE
Found initrd image: /boot/initramfs-3.1.0-7.fc16.i686.PAE.img
? No volume groups found
Found Windows 7 (loader) on /dev/sda1
Found Fedora release 17 (Beefy Miracle) on /dev/sda10
done
重啟系統在開機界面按向下方向鍵,選擇grub4dos 0.4.4_grub.exe,就是可以進入WinPE系統了
?
參考文獻:
Grub&Grub2引導WinPE和live CD
https://www.cnblogs.com/lixuebin/p/10814594.html
?
使用GRUB2制作U盤PE啟動盤
https://blog.csdn.net/laoyiin/article/details/45021461
?
Grub2引導Grub4dos菜單寫法
https://blog.csdn.net/Akeron/article/details/50756493
總結
以上是生活随笔為你收集整理的Grub2引导grub4dos0.4.4再引导WinPE的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 什么是小型机
- 下一篇: 中首清算:“股神”很闹心,巴菲特曾割肉的