grub4dos OVER PXE

简介:

实现效果:

wKiom1MqruSBbKn3AAGX5ANRs4E972.jpg

通过网络启动,直接启动WINPE,网络GHOST,MAXDOS或本地硬盘

需要的软件:

ghost-v8.3或11.X企业版

SymantecGhost11.5

3comdabs网络启动镜像工具

grub4dos-0.4.6a

TONPE

MAXDOS.IMG

1、参照前篇博文搭建好DHCP、GHOSTCAST服务器

2、解压缩grub4dos,把grldr,menu.lst文件保存在C:\TFTP目录中

3、使用TONPE生成winpe.iso,上网下载MAXDOS.IMG,把此两文件复制到C:\TFTP目录中

4、使用Ghost Boot Wizard生成ghost.iso启动镜像:

"开始"--"程序"--"Symantec Ghost"--"Ghost Boot Wizard"--"Network Boot Package"

wKioL1Mqk7ahz4XUAAIcv-MqWCc514.jpg

wKiom1Mqk92zpl3tAAEVxHa_qMM933.jpg

5、修改DHCP启动文件名为grldr

wKioL1MqknfCFpKNAAGCs2v8HXQ679.jpg

6、编写menu.lst文件

我的这样写的:

# This is a sample menu.lst file. You should make some changes to it.

# The old install method of booting via the stage-files has been removed.

# Please install GRLDR boot strap code to MBR with the bootlace.com

# utility under DOS/Win9x or Linux.


color blue/green yellow/red white/magenta white/magenta

timeout 30

## menu border color

color border=0xEEFFEE

## set vbe mode

graphicsmode -1 640 480:800

## loading splashimage

splashimage /boot/grub/splashimage.xpm || splashimage /boot/grub/splashimage.bmp

default /default

## Menu AutoNumber

write 0x8274 0x2001


title WinPE.ISO    

map /WinPE.ISO (0xff) || map --mem(pd) /WinPE.ISO (0xff)  

map --hook  

root(0xff)  

chainloader (0xff)


title GHOSTCAST

map /ghost.iso (0xff) || map --mem(pd) /ghost.iso (0xff)  

map --hook  

root(0xff)  

chainloader (0xff)


title MAXDOS.IMG

find --set-root --ignore-floppies /MAXDOS.IMG

map --mem /MAXDOS.IMG (fd0)

map --hook

chainloader (fd0)+1

rootnoverify (fd0)


title LOCAL HDD

rootnoverify (hd0,0)

makeactive

chainloader +1


title find and load NTLDR of Windows NT/2K/XP\n find and load NTLDR of Windows NT/2K/XP

fallback 1

find --set-root --ignore-floppies --ignore-cd /ntldr

map () (hd0)

map (hd0) ()

map --rehook

find --set-root --ignore-floppies --ignore-cd /ntldr

chainloader /ntldr

savedefault --wait=2


#iftitle only show when command in [] returns true

# set a variable named bootmgr where /bootmgr is found.

iftitle [find --set-root --devices=h /bootmgr && call set bootmgr=%@root^%] load BOOTMGR of Windows VISTA/WIN7/WIN2008 on %bootmgr%

chainloader %bootmgr%/bootmgr

savedefault --wait=2


title reboot

reboot


title SHUTDOWN

halt


7、在客户端设置网卡启动,选择对应启动项,加载即可。如果使用GHOSTCAST,注意启动GHOSTCAST服务器。

加载中文菜单:

    A,使用(0.4.5b以前)中文版grldr配合内置命令 fontfile 加载中文字库来显示中文菜单(菜单文件需使用 ANSI 文本编码模式,否则中文会显示为乱码);
    B,使用(0.4.6a以后)英文版grldr配合内置命令 font 加载中文字库来显示中文菜单(菜单文件需使用 UTF-8 文本编码模式,否则中文会显示为乱码);
    C,使用内置命令 gfxmenu 加载 message 文件来显示中文菜单(菜单文件需使用 UTF-8 文本编码模式,否则中文会显示为乱码);
     (正常情况下方式C显示效果最好,但有可能出错)。

wKiom1O7RinB2ACMAAULnReJH3o077.jpg

checkrange 0x21 read 0x8280 && pxe detect NotExist

timeout 30

default 0

foreground ffff00 

font /unifont.hex.gz

gfxmenu /message



title WinPE启动    

map /WinPE.ISO (0xff) || map --mem(pd) /WinPE.ISO (0xff)  

map --hook  

root(0xff)  

chainloader (0xff) 


title GHOSTCAST网络还原

map /ghost+.iso (0xff) || map --mem(pd) /ghost+.iso (0xff)  

map --hook  

root(0xff)  

chainloader (0xff) 


title MAXDOS工具箱

find --set-root --ignore-floppies /MAXDOS.IMG

map --mem /MAXDOS.IMG (fd0)

map --hook

chainloader (fd0)+1

rootnoverify (fd0) 


title 本地磁盘

rootnoverify (hd0,0)

makeactive

chainloader +1


title Windows NT/2K/XP启动

find and load NTLDR of Windows NT/2K/XP\n find and load NTLDR of Windows NT/2K/XP

fallback 1

find --set-root --ignore-floppies --ignore-cd /ntldr

map () (hd0)

map (hd0) ()

map --rehook

find --set-root --ignore-floppies --ignore-cd /ntldr

chainloader /ntldr

savedefault --wait=2


#iftitle only show when command in [] returns true

# set a variable named bootmgr where /bootmgr is found.

if

title NT6.X启动

[find --set-root --devices=h /bootmgr && call set bootmgr=%@root^%] load BOOTMGR of Windows VISTA/WIN7/WIN2008 on %bootmgr%

chainloader %bootmgr%/bootmgr

savedefault --wait=2


title Reboot

reboot


title Shutdown

halt



本文转自 sfih 51CTO博客,原文链接:http://blog.51cto.com/dayday/1380393

相关文章
|
监控 Shell Linux
【Shell 命令集合 网络通讯 】Linux 共享文件和打印机 Samba 命令 使用指南
【Shell 命令集合 网络通讯 】Linux 共享文件和打印机 Samba 命令 使用指南
647 0
|
7月前
|
人工智能 云栖大会
|
人工智能 编解码 达摩院
万能抠图——你值得拥有!!!
大家好这里是失踪人口三岁,最近较为繁忙,今天给大家来一个万能抠图系统,当然是“万能”抠图
701 0
万能抠图——你值得拥有!!!
|
弹性计算 网络协议 容灾
PostgreSQL 时间点恢复(PITR)在异步流复制主从模式下,如何避免主备切换后PITR恢复(备库、容灾节点、只读节点)走错时间线(timeline , history , partial , restore_command , recovery.conf)
标签 PostgreSQL , 恢复 , 时间点恢复 , PITR , restore_command , recovery.conf , partial , history , 任意时间点恢复 , timeline , 时间线 背景 政治正确非常重要,对于数据库来说亦如此,一个基于流复制的HA架构的集群,如果还有一堆只读节点,当HA集群发生了主备切换后,这些只读节点能否与新的主节点保持
2193 0
|
Windows
开源批量卸载工具
【10月更文挑战第5天】
972 2
|
10月前
|
固态存储 测试技术 iOS开发
硬盘检测工具哪个最好用?这8款值得收藏
硬盘健康状况直接影响电脑性能,选择合适的检测工具至关重要。本文推荐8款实用硬盘检测工具:Windows CHKDSK、DiskGenius免费版、Victoria、HDDScan、SeaTools、AIDA64、HD Tune Pro及Mac磁盘工具。这些工具功能全面,操作简单,涵盖S.M.A.R.T信息查看、坏道检测与修复、性能测试等,满足不同用户需求。无论是Windows还是macOS用户,均可找到适合的工具维护硬盘健康。
|
10月前
|
人工智能 Serverless API
Serverless 加 AI 让应用开发更简单
本文介绍了 Serverless 技术在 AI 领域的应用及 FunctionAI 平台的功能与优势。首先探讨了 Serverless 解决的核心问题,包括降低成本和提升效率。接着分析了构建 AI 应用的阻碍因素,如技术积累不足、大模型迭代快及算力资源有限。FunctionAI 平台通过按需模型托管、一键部署、流程式开发工具和灵活组装能力,帮助企业降低试错成本并提高开发效率。平台架构分为四层,涵盖模型层、开发层、服务层和部署层。实际应用场景包括图像生成、外部开发者支持及大流量处理等。最后,通过客户案例展示了平台在弹性扩展与成本优化方面的价值。
|
传感器 人工智能 监控
智慧化工厂AI算法方案
智慧化工厂AI算法方案针对化工行业生产过程中的安全风险、效率瓶颈、环保压力和数据管理不足等问题,通过深度学习、大数据分析等技术,实现生产过程的实时监控与优化、设备故障预测与维护、安全预警与应急响应、环保监测与治理优化,全面提升工厂的智能化水平和管理效能。
2037 0
智慧化工厂AI算法方案
|
Ubuntu 虚拟化
Ubuntu安装VMtools实现与主机之间复制粘贴
一、安装 VMware Tools 右键点击你创建的系统,然后出现菜单下滑找到安装 VMware Tools(T) 这个点击安装; 右键点击你创建的系统,然后出现菜单下滑找到设置; 然后弹出虚拟机设置-->点击选项-->客户机隔离-->启用复制粘贴; 二、Ubuntu命令 这些命令假设你的Ubuntu系统已连接到互联网并且已配置为使用apt软件包管理器; 如果你的网络环境有限,你可能需要提前配置好网络或更换软件源; Ubuntu上安装和配置VMtools以实现与主机之间的文本复制粘贴功能; 1、打开终端(Terminal)。 2、运行以下命令以卸载旧版本的open-vm-tools: su
6333 1
7. 成功解决:io.netty.util.IllegalReferenceCountException: refCnt: 0, decrement: 1
今天使用 Netty 搭建一个项目,接收报文时提示如下错误:`io.netty.util.IllegalReferenceCountException: refCnt: 0, decrement: 1`
2170 1