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

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值