Winpe/linux has been used for installation and maintenance of multiple boot systems, and CD is commonly used. However, it has recently become more and more difficult to carry the CD with you, and it is easy to become ineffective. The system on a CD is often eliminated in less than two years. Therefore, the idea of using a USB flash drive for system maintenance emerged. Since it is used for maintenance, winpe is indispensable, but I personally think that Linux is also indispensable. First, Linux also needs to be maintained. Second, Linux also provides many features that are not available in WinPE. The two complement each other, and the effect should be better. Therefore, it is necessary that the USB flash drive for maintenance can support the startup of multiple systems. You must first select the WinPE and Linux versions. WinPE has many versions. I used the Tianyi series WinPE (formerly WinPE, the perfect winner ). This series has complete functions and complete drivers (for specific functions, refer to this website). In addition to the Startup File, The WinPE system and external programs are encapsulated in the ISO file for ease of placement, does not generate a large number of files on the USB flash drive. By the end of this article, the latest release version is 1.5. You can download it at this address. The selection of Linux distributions is also dazzling. I personally think Ubuntu is suitable for beginners, with complete drivers and good support, and a variety of communities and documents. This article uses Ubuntu 11.04 desktop line x64. Of course, if you have your own choice, all Linux distributions are similar, and the process of installing the USB flash drive is similar, but it may not be completely in accordance with this tutorial, but you have to do it yourself. Our general idea is to use grub4dos to start the computer, and then use grub4dos's boot function to start the WinPE or Linux we need. The first step is to format the USB flash drive. We recommend that you use the ntfs file system. Then, we want to make the USB flash drive boot-able. Grub4dos is a starter similar to grub and has powerful functions. We can download it here. I chose version 0.4.4. Download the package, decompress it to any location, enter a Linux system, open a terminal, and enter the decompressed folder. Run the following command (comments starting with #, not the command): 1 # view the device name of your USB flash drive, such as sda and sdb. Be sure not to confuse the device names such as hard disks. You can identify 2 sudo fdisk-l 3 by the capacity and number of partitions # Write startup information to the USB disk, replace sdx with the device name of your USB flash drive 4 chmod a + x bootlace.com &&. after/bootlace.com/dev/sdx is complete, put the grldr file into the root directory of the USB flash drive and create a new menu named "menu" under the root directory of the USB flash drive. lst file. Open the menu. lst file and enter the following two lines: 1 timeout 30 2 default 0 now, and our USB flash drive can be started. Under the Family, we want to add WinPE. Let's talk about the Startup Process of WinPE 1.x (that is, the WinXP-based PE we usually see. Different startup methods vary, but they can be summarized as: The Initial Startup (different startup methods) loads SETUPLDR. BIN is based on SETUPLDR. position indicated in BIN to load NTDETECT. COM and WINNT. XPE is based on WINNT. the location indicated by XPE is loaded to the Base System of WinPE. You can directly instruct grub4dos to load SETUPLDR. BIN, you only need. add the following lines to lst: 1 title Windows PE Environment 2 find -- set-root/tool/pe/setup 3 chainloader/tool/pe/setup, we need to modify SETUPLDR. BIN. Decompress the downloaded ISO file of Tianyi PE. Find SETUPLDR. BIN in the boot directory. Create a new tool directory under the root directory of the USB flash drive, create a new pe directory in the tool directory, put SETUPLDR. BIN in the pe directory, and rename it setup. In this way, only the tool directory and grldr and. lst files are saved in the directory of the optimized disk, which is clean and tidy and convenient for storing other data files. The tool directory contains various maintenance tools. Each tool is a folder, and all files related to WinPE are stored in the pe subdirectory. Open the setup file in a hexadecimal Editor (such as HxD and WinHEX. Locate 3E188. Have you noticed two "bootntdetec? This is the string that specifies the NTDETECT. COM position in USB startup mode. Change them to "toolpentde ". As shown in Figure 2: After modifying the original USB flash drive home, we will replace the WINNT. XPE location. In Tianyi PE, WINNT. XPE is actually the type file under the boot directory. Put this file in the toolpe directory of the USB flash drive and rename it to x. Return to the setup file and replace all "boottype" with "toolpex ". It should be noted that the name and position of NTDETECT. COM and WINNT. XPE can be changed as long as the length of the replaced string is the same as that of the replaced string. Next, copy the FON under the boot directory of Tian Yi PE. bin to the toolpe directory of the USB flash drive and rename it to font. This is a Chinese support file at startup. It does not affect startup, but cannot display Chinese characters at startup. We also need to change the path of this font file in setup and change all "bootfon. bin" to "toolpefont. So far, the modification of SETUPLDR. BIN has been completed. Next, modify the WINNT. XPE file to specify the File Location of the Basic System of WinPE. Open the x file in the toolpe directory of the USB flash drive and change the path after rdpath from "typetype. is _" to "toolpetype. is _". Copy the type. is _ and type. isz in the type folder of the Tianyi PE system to the toolpe directory of the excellent drive. Here, the WinPE in the USB flash drive can be started smoothly. However, it is still unable to smoothly load various practical tools built in Tianyi PE. To complete this step, find the type. is _ in the toolpe folder of the USB flash drive and decompress it with WinRAR to obtain a type. iso file. Modify the STARTPE. CMD file in the WXPESYSTEM32 folder of this iso file (which can be used with the UltraISO software) to "toolpetype". There are three parts in total. After the modification, rename the new iso file to type. is _ and overwrite the original type. is _ file in the toolpe directory of the USB flash drive. Here, the WinPE system is successfully installed on our USB flash drive. You can restart it. Next, we will add the Ubuntu System for the USB flash drive. This process is much easier than adding WinPE. First download the Ubuntu version you want, I am under the ubuntu-11.04-desktop-amd64.iso. Copy it to the toolubuntu directory of the USB flash drive. Then open the menu under the root directory of the USB flash drive. add the following content to the lst file (modify the file name according to the Ubuntu version you downloaded): 1 title Ubuntu 11.04 Desktop x64 (sudo umount-l/isodevice) 2 find -- set-root/tool/ubuntu/ubuntu-11.04-desktop-amd64.iso 3map/tool/ubuntu/ubuntu-11.04-desktop-amd64.iso (0xff) | map -- mem/tool/ubuntu/ubuntu-11.04-desktop-amd64.iso (0xff) 4map -- hook 5 root (0xff) 6 kernel/casper/vmlinuz file =/cdrom/preseed/ubuntu. seed boot = casper nopromp T nopersistent iso-scan/filename =/tool/ubuntu/ubuntu-11.04-desktop-amd64.iso -- 7 initrd/casper/initrd. lz so far, the dual-boot USB disk is completely ready.