我把原来做的网络启动盘,改成PXE的了。顺便写了个说明:
原文(图、软件)
http://zxdz.8800.org/htmldata/2/2007_01/%C0%FB%D3%C3PXE%CD%F8%C2%E7%C6%F4%B6%AF%CE%AC%BB%A4%CF%B5%CD%B31134_1.html
一、PXE网络启动简介
PXE技术利用网卡从PXE服务器上读取启动文件来启动计算机,实现无盘启动。集成网卡是现在主板发展的趋势,很多主板集成网卡的同时在BIOS中提供了PXE网络启动代码,这就让我们可以在网络中广泛使用PXE技术。以前用PXE很麻烦,主要是PXE服务器安装配置烦琐、制作PXE启动映像文件困难,并且都是收费软件。现在用PXELINUX+MEMDISK做PXE启动使这些问题迎刃而解。服务端可使用体积小功能强大的hanwin dhcp server,它的安装配置十分简单。启动映像文件可用Wimage制作,并且可启动非常规软盘映像。
利用PXE启动来修复、维护系统,可避免使用光驱、软驱或将硬盘取下再安装到其他机器上进行系统维护。实现了不开机箱,用网线通过PXE网络启动读取映像文件启动故障机,把内存虚拟成磁盘,利用虚拟盘中的工具或共享其他正常电脑上的工具修复故障机。比如用DOS映像文件启动到DOS系统,运行DM、GHOST等工具,用小型的WINPE映像文件启动到WINXP环境下可安全的对NTFS分区进行读、写、修改系统密码等操作。我们可以将各种工具盘(光盘、软盘)做成映像文件,集中存放在一台笔记本电脑里,从此不用怕找不到工具盘,也不必抱一大堆工具盘上门维修了。
二、yzz163 PXE 网络恢复映像文件介绍
本启动盘使用了DOS联盟论坛的 的PXELINUX启动方式,用我以前制作的网络恢复盘V1.0为基础,对其进行了简单修改,使其成了基于PXE启动的网络恢复盘。功能不变(分别加载NETBEUI+TCP/IP+IPX三种协议),目前支持100余种网卡,只要有网卡驱动程序,大家也可自己添加相应的网卡。本恢复盘侧重于在DOS下利用NETBEUI协议实现文件共享,利用文件共享服务器上的GHOST工具备份、恢复系统。使用NETBEUI协议的主要原因是自己的工作环境,我所在局域网里有各种型号的PC,网卡有8种,机器上装有各种业务系统,网络里普遍使用M$文件共享服务。经过在10余种机器上用本启动盘实践,发现有些主板用EMM386会死机,只有采用保守的参数,对EMM386 参数最终定为 。
实践经验告诉我,在DOS下使用NETBEUI协议最省常规内存(640K),在各种主板上运行稳定;使用TCP/IP最耗内存,有些工具无法使用。本盘是中文界面,便于普通用户使用,客户端可选择备份/恢复功能,按机器名存放/读取共享服务器上的GHO文件。
对于网吧等主板型号单一,只是利用PXE实现网络多播克隆功能,用TCP/IP较为适宜(可在多子网里)。网上有专门的启动盘如:MAXDOS。对于维修来说,在DOS下的局域网里,用TCP/IP占用较多基本内存,使其他工具无法运行,基于TCP/IP的实用价值不大。
现在的局域网里,IPX协议基本消失了,为了配合三诺的硬盘复制,我的盘里也加入了IPX网络支持。这个功能适合用于相同硬件机器之间的整个硬盘的复制。
三、启动盘映像文件的制作方法
启动盘映像文件用Winimage制作,是非标准映像文件,盘上放了GHOST83.EXE 和DM工具,自己可根据需要定义映像文件的大小。在制作过程中遇到一些问题,为使大家少走弯路,下面以8M的映像文件为例,讲一讲制作时要注意的问题。
1、新建一个映像,定义其格式。
映像-更改格式-选择自定义映像格式,按下面输入:(8M)
文件系统 FAT16
每簇 512字节
扇区总数 16384 =8*1024*1024/512
每磁道扇区数 18
磁头 2
隐藏扇区 0
物理驱动器 0
2、设置映像文件载入到内存大小的值
单击 选项-设置-映像,在 “载入到内存的映像的大小限制” 里填写你制作的映像文件大小,单位是KB,本例为 8192。不然,制作后的映像文件启动后无法执行读/写操作,出现INT24错误。
3、将映像文件保存成img格式
文件-另存为,保存类型选“所有文件”,后缀为img,保存为img文件。Winimage默认是压缩了的IMA格式,这种映像文件是无法启动的。
4、更改引导扇区属性
映像-引导扇区属性-win95/98
四、服务端设置
1、PXE服务端使用Hanewin DHCP或tftp32,推荐用Hanewin DHCP,只需配置下启动文件就可。具体步骤见图:
DHCP配置
TFTP配置
若要共享文件,建议添加NETBEUI协议,共享文件目录如下:
\tools--|
----gho
|
----winpe
|
----dos
|
----win
gho放GHOST文件,按机器名建目录,放各用户的GHO备份。winpe放在PE下运行的工具、各种驱动等。
2、修改pxelinux配置文件
在pxelinux.cfg\default文件里加入以下行(启动菜单)
LABEL yzznet (卷标不能和其他的相同)
MENU DEFAULT (缺省启动)
MENU LABEL ^9----yzz163 Network Boot (显示菜单,9为选单键)
kernel memdisk c=455 h=2 s=18 floppy (加载内存盘参数,c=扇区总数16384/2/18取整)
append initrd=yzz163-8m.img (映像文件名为yzz163-8m.img,放在TFTP根目录下)
配置好服务端,启动PXE客户端,按F8选择从网络启动,或在CMOS中设置从PXE网络启动即可出现pxelinux的菜单。如果启动出错,可看Hanewin DHCP的日志,可很快查到原因。
最后,感谢DOS联盟的xugaohui提供的TFTPBOOT.ZIP,感谢无忧论坛的chenall提供的WinPE.iso,感谢所有帮助过我的人。
参考文章:
1、PXE网络维护软件包下载
http://www.cn-dos.net/forum/viewthread.php?tid=19003&fpage=2
2、适用于使用PXE启动的PE
http://bbs.wuyou.com/viewthread.php?tid=87190
3、PXELINUX+memdisk
http://syslinux.zytor.com/index.php
4、网络恢复盘V1.0
http://zxdz.8800.org/htmldata/2/19/2006_05/%CD%F8%C2%E7%C6%F4%B6%AF%BB%D6%B8%B4%B9%E2%C5%CCV1-049_1.html
相关软件下载:
1、hanewin dhcp server 3.04+中文包
2、Winimage 8.00
3、yzz163-8m.img
Last edited by yzz163 on 2007-1-7 at 12:46 PM ]
I have changed the original network boot disk to PXE. By the way, I wrote an instruction:
Original text (pictures, software)
http://zxdz.8800.org/htmldata/2/2007_01/%C0%FB%D3%C3PXE%CD%F8%C2%E7%C6%F4%B6%AF%CE%AC%BB%A4%CF%B5%CD%B31134_1.html
I. Introduction to PXE Network Boot
The PXE technology uses the network card to read the boot file from the PXE server to boot the computer, realizing diskless boot. Integrated network cards are the trend in the development of motherboards. Many motherboards integrate network cards and provide PXE network boot code in the BIOS at the same time, which allows us to widely use the PXE technology in the network. In the past, using PXE was very troublesome. The main problems were that the installation and configuration of the PXE server was cumbersome, making PXE boot image files was difficult, and all were paid software. Now, using PXELINUX + MEMDISK for PXE boot solves these problems easily. The server side can use the small but powerful Hanewin DHCP Server, and its installation and configuration is very simple. The boot image file can be made with Wimage, and unconventional floppy disk image files can be booted.
Using PXE boot to repair and maintain the system can avoid using the optical drive, floppy drive, or removing the hard disk and installing it on other machines for system maintenance. It realizes that without opening the case, the faulty machine is booted by reading the image file through the network cable via PXE network boot, the memory is virtualized into a disk, and the tools in the virtual disk or other tools shared on normal computers are used to repair the faulty machine. For example, boot to the DOS system with a DOS image file, run tools such as DM, GHOST, etc. Boot to the WINXP environment with a small WINPE image file to safely read, write, and modify the system password for the NTFS partition, etc. We can make various tool disks (CD-ROMs, floppy disks) into image files and store them centrally in a laptop. From then on, we don't have to worry about not finding the tool disk, and we don't have to carry a large number of tool disks to go to the door for maintenance.
II. Introduction to yzz163 PXE Network Recovery Image File
This boot disk uses the PXELINUX boot method of the DOS Union Forum. Based on my previously made network recovery disk V1.0, it is simply modified to become a network recovery disk based on PXE boot. The functions remain unchanged (loading three protocols: NETBEUI + TCP/IP + IPX respectively). Currently, it supports more than 100 kinds of network cards. As long as there are network card drivers, everyone can also add corresponding network cards. This recovery disk focuses on realizing file sharing under DOS using the NETBEUI protocol, and using the GHOST tool on the file sharing server to back up and restore the system. The main reason for using the NETBEUI protocol is my working environment. There are various types of PCs in my local area network, 8 types of network cards, and various business systems are installed on the machines. The M$ file sharing service is widely used in the network. After practicing with this boot disk on more than 10 kinds of machines, it is found that some motherboards will crash when using EMM386. Only conservative parameters are adopted, and the final parameters for EMM386 are determined as.
Practical experience tells me that using the NETBEUI protocol under DOS saves the most conventional memory (640K) and runs stably on various motherboards; using TCP/IP consumes the most memory, and some tools cannot be used. This disk has a Chinese interface, which is convenient for ordinary users to use. The client can choose the backup/restore function and store/read GHO files on the shared server according to the machine name.
For Internet cafes and other places where the motherboard models are single and only use PXE to realize the network multicast cloning function, using TCP/IP is more appropriate (can be in multiple subnets). There are special boot disks on the Internet, such as MAXDOS. For maintenance, under DOS in the local area network, using TCP/IP occupies more basic memory, making other tools unable to run, and the practical value based on TCP/IP is not great.
In the current local area network, the IPX protocol has basically disappeared. To cooperate with the hard disk copying of San Nuo, IPX network support is also added to my disk. This function is suitable for copying the entire hard disk between machines with the same hardware.
III. Production Method of Boot Disk Image File
The boot disk image file is made with Winimage and is a non-standard image file. GHOST83.EXE and DM tools are placed on the disk, and you can define the size of the image file according to your needs. Some problems are encountered during the production process. To make everyone take fewer detours, taking the 8M image file as an example, the problems to pay attention to during production are explained below.
1. Create a new image and define its format.
Image - Change Format - Select Custom Image Format, and enter as follows: (8M)
File system FAT16
Sectors per cluster 512 bytes
Total sectors 16384 = 8*1024*1024/512
Sectors per track 18
Heads 2
Hidden sectors 0
Physical drive 0
2. Set the value of the memory size for loading the image file
Click Options - Settings - Image, and fill in the size of the image file you made in "Limit of size of image loaded into memory", the unit is KB. In this example, it is 8192. Otherwise, the booted image file cannot perform read/write operations and an INT24 error occurs.
3. Save the image file as an img format
File - Save As, select "All Files" for the save type, the suffix is img, and save it as an img file. Winimage defaults to the compressed IMA format, and this kind of image file cannot be booted.
4. Change the properties of the boot sector
Image - Boot Sector Properties - Win95/98
IV. Server Side Setup
1. The PXE server side uses Hanewin DHCP or tftp32. It is recommended to use Hanewin DHCP, and only the boot file needs to be configured. The specific steps are shown in the figure:
DHCP configuration
TFTP configuration
If you want to share files, it is recommended to add the NETBEUI protocol. The shared file directory is as follows:
\tools--|
----gho
|
----winpe
|
----dos
|
----win
The gho stores GHOST files, and directories are built according to the machine name to store GHO backups of each user. The winpe stores tools, various drivers, etc. running under PE.
2. Modify the pxelinux configuration file
Add the following lines (boot menu) in the pxelinux.cfg\default file
LABEL yzznet (The label cannot be the same as others)
MENU DEFAULT (Default boot)
MENU LABEL ^9----yzz163 Network Boot (Display the menu, 9 is the menu key)
kernel memdisk c=455 h=2 s=18 floppy (Load memory disk parameters, c=total sectors 16384/2/18 rounded down)
append initrd=yzz163-8m.img (The image file name is yzz163-8m.img, placed in the TFTP root directory)
After configuring the server side, start the PXE client, press F8 to select to boot from the network, or set to boot from the PXE network in the CMOS, and the pxelinux menu will appear. If there is a boot error, you can look at the log of Hanewin DHCP, and the reason can be found quickly.
Finally, thanks to xugaohui from the DOS Union for providing TFTPBOOT.ZIP, thanks to chenall from the Wuyou Forum for providing WinPE.iso, and thanks to all those who helped me.
Reference articles:
1. Download of PXE network maintenance software package
http://www.cn-dos.net/forum/viewthread.php?tid=19003&fpage=2
2. PE suitable for using PXE boot
http://bbs.wuyou.com/viewthread.php?tid=87190
3. PXELINUX+memdisk
http://syslinux.zytor.com/index.php
4. Network recovery disk V1.0
http://zxdz.8800.org/htmldata/2/19/2006_05/%CD%F8%C2%E7%C6%F4%B6%AF%BB%D6%B8%B4%B9%E2%C5%CCV1-049_1.html
Related software downloads:
1. hanewin dhcp server 3.04 + Chinese package
2. Winimage 8.00
3. yzz163-8m.img
Last edited by yzz163 on 2007-1-7 at 12:46 PM ]