Customized winpe + various dostoolbox USB flash drive + MiniLinux

Source: Internet
Author: User
A 64 m old USB flash drive is useless. If the USB flash drive is large enough, you can use more powerful mini Linux and winpe with more tools. This time we installed winpe + maxdosv6plux + dwarf dos5.3 + cdlinux0.4.9 + mclinux2.02 + bomberlinux3.7, and there should be more tools. There are many ideas: Method 1: You can first make a DOS boot disk, so that you can directly load various dos tools, and then use grub4dos to load winpe. Method 2: You can create ntloader, start winpe, and write the statement for loading the DOS tool in Boot. ini. Method 3: Use grub to guide various tools, including winpe and toolbox. Since GRUB boot is powerful (it is used as a boot tool in major Linux distributions), the third method is used. First, prepare tools: 1. hpusbfw. EXE, or usboot, or other USB flash drive formatting tools. 2. winpe: I used a 64 m USB flash drive, so I used mini winpe. I used the old peach mini winpe version 070911: Thunder: // outputs = If you are using a large USB flash drive, you can download other winpe integrated with many tools. The modified version of old Mao Tao is still too large for us. Therefore, we need to customize it and delete software such as ACDSee. There is an ntboot.exe under the winpe installation file \ Setup \ myinsand it is backed up and may be used in the future. 3. Grub Installation Tool: grubinstall: large (it is part of grub4dos. You can download grub4dos and use this file) 4. maxdos V6 plus: Running http://w1.e666.cn/green/airendos.rar6w.wmitool: large. Due to space limitations, I only use the above software. Start: Part1: winpe + dostool1, use HP formatting tool to format the USB flash drive 2. Open miniepe. ISO: If your USB flash drive is large, you can directly copy the minipe directory to your USB flash drive. If it is as small as mine, delete op first. wim, and then copy it, op. wim contains all tools. Without it, minipe can also be started. We will talk about how to modify op later. wim, reduce its size, and customize its own tools. Copy ntdetect.com and setupldr. Bin under wxpe to the minipe directory and change them to ntcom and ldrxpe respectively. Create a file named Pe in the minipe directory. The content is as follows (if you use the installation method, the file already exists): [setupdata] bootdevice = "ramdisk (0) "bootpath =" \ wxpe \ system32 \ "osloadoptions ="/MININT/fastdetect/rdexportascd/rdpath = minipe \ winpe. is _ "the simpler method is: you can directly use the setup of minipe to install it to your USB flash drive (if the USB flash drive is too small, delete op first. wim re-installation), which is similar to copying the previous one, but there will be several more files, you can choose to delete the files not mentioned above. 3. If you manually copy the file, you must first install grub, use grubinstall_gui, select the USB flash disk, refresh the partition, select the entire disk, and then install it. In this way, grub is re-installed, then copy the grldr file you downloaded. If you are using the installation method, grub has been installed, and its menu is built into grldr for you to edit the menu. lst to start more projects, copy the downloaded grldr to the u disk to overwrite the original, so that you will use your own menu. lst. If grub in MBR does not exist, reinstall grub. If you still want to use the built-in menu, you can use the grubmenu Export command to export the menu, modify it to what you want, and then import the grubmenu, which will become your built-in menu. In addition, to support Chinese menus, use Chinese grldr and Chinese fonts. The ghost is also copied to it, which is the background of the boot screen. you can create your own boot screen. If you are installing minipe, you can directly use your muifont.gz and * .xpm.gz. 4. Install maxdos and airendos, and copy the maxdos and Ados directories to the root directory of the USB flash drive. Then you can uninstall maxdos and Ados. Delete all files except the argj directory under Ados, and then move the files under the argj directory to Ados to delete the argj directory. Delete unnecessary files in the two directories. Comparison file. Since they are all hard disk versions, a single-click ghost may cause problems (the so-called USB flash disk version is also the same on the Internet) and needs to be modified. First, after Hp formatting, the USB flash disk is generally regarded as the first hard disk, while the original hard disk is regarded as the second hard disk. At this time, the src = of the ghost command should be changed to. Then, because we have not created a specified folder, we can directly back up it to the root directory. For example, maxdosuses maxbk.gzand maxre.gz to indicate backup and recovery. use NotePad to open these two files and change them to: Ghost-clone, mode = pdump, src =, DST = \ sysbak. max-Sure-Z2-split = 2000-no1394-nousb-Rb and ghost-clone, mode = pload, src = \ sysbak. MAX: 1, DST =-Sure-no1394-nousb -rband the dwarf dos.pdf export argj.exe in ar5.img, change the extension to GZ, and then decompress the GH in it. bat, menu. BAT and other BAT files, and then find the files that contain argj ~ 1 path, change it to the root directory, such as: C :\*. in addition, the/s command for searching images needs to be removed. You can change it to/a and/s to find Sub-directories, which takes a long time. At the same time, change the similarities of the ghost command src =. If your USB flash drive is not the first hard disk after startup, you do not need to change it. 5. Compile the grub boot menu to identify the USB flash drive, and create a grubhere in the root directory of the USB flash drive. ID of the empty file, of course, you can also use any file on the U disk to identify, such as/maxdos/Maxs. sys, of course, you need to modify the following content. Create a menu in the root directory of the USB flash drive. LST, content: timeout 30 default 0 splashimage/boot/splash.xpm.gz # foreground ffff00fontfile/boot/muifont.gz title mini windowspefind -- Set-root/grubhere. idchainloader/minipe/ldrxpetitle maxdos V6 plusfind -- Set-root/grubhere. idkernel/maxdos/memdisk.gz c = 555 H = 2 S = 18 floppyinitrd/maxdos/Maxs. sys c = 555 H = 2 S = 18 floppytitle dwarf dos toolkit find -- Set-root/grubhere. idkernel/Ados/memdisk.gz c = 118 H = 2 S = 36 floppyinitrd/Ados/ar5.img c = 555 H = 2 S = 18 floppytitle local Windows system map (hd0) (hd1) map (hd1) (hd0) rootnoverify (hd1, 0) makeactivechainloader + 1 title Restart computer reboottitle close computer halttitle grub command line CommandLine save this file. 6. Customize the winpe tool. In fact, the USB flash drive has been started, but we can also customize the tool for minipe. Use wmitool to open op. wim, and then export its files to delete all unnecessary software, such as ACDSee and music play, which is useless for system maintenance, finally, create a new Wim file to import the modified directory. Then, modify the winpe. ini file under minipe, find the place where the shortcut command is created, and delete the link that is not available. 6. If you need to install other toolboxes, the steps are similar to those above. Production is complete. If you want the MBR to be damaged and can start with ntloader, you can use ntboo I :( I is a USB flash disk) to install ntloader to the USB flash disk, but this is not necessary. 7. Backup: You can copy all the files on the USB flash drive to a directory for backup (note that there are hidden files and one backup) for future production ). In the future, you can create a boot USB flash drive. First, format the USB flash drive with the HP formatting tool, copy the backup file, and then use grubinstall to install grub to MBR. Ntboot is not required. If you have time, you can compress these Backup files and write a BAT file so that bat can format and copy files in order, this forms your own winpe + maxdos + airendos installation package. Part2: Mini Linux if you do not need Linux, so far, if you want to start Linux, make the USB flash disk into a boot disk, and then use the mini Linux boot, it can be used to fix Linux system errors on hard disks. Continue: There are many mini Linux systems, such as cdlinux, DSL, and puppy. You can also use your own LFS. Here is a brief introduction to the simplest production method. I chose cdlinux0.4.9 (19 m) and mini Chinese Linux (mclinux2.02) (2.88 m) due to the size limit of the USB flash drive (64 m for my USB flash drive) and bomberlinux 3.9 (2.88 m), because my USB flash drive is also equipped with mini winpe, maxdos, and dwarf dos, they must add up to 64 m (a total of 61 m at the end ). Since the installed winpe and so on are all guided by grub, grub is also used to guide these three mini Linux systems. If you have not installed the above, you only need to start mini Linux, then you need to first create a boot USB flash drive, first format the USB flash drive with Hp, and then use grubinstall to install grub to the MBR of the USB flash drive, copy grldr to the root directory of the USB flash drive. Refer to the previous Article . First, let's look at cdlinux. because it uses syslinux for guidance, we need to make some adjustments. First, open the ISO of cdlinux, extract the cdlinux under the boot directory, and then set the cdlinux. change the IMG extension to gz, that is, cdlinux.gz, and decompress it. Because grub is used for guidance, syslinux files can be deleted. Only bzimage and cdlinux.gz files can be retained and copied to the cdlinux directory, then copy the cdlinux directory to the USB flash drive root directory. Then write menu. lsttitle cdlinux 0.4.9 (with extra) Find -- Set-root/grubhere. idkernel/cdlinux/bzimage root =/dev/ram0 cdl_dev =/dev/sda1initrd/cdlinux/cdlinux.gz grubhere. for more information about ID, see the previous article. For more specific parameters, refer to the command line parameters in cdlinux howtos. Here,/dev/sda1 may be treated differently based on the actual situation. I made it into hda1, and the result could not be loaded with extra because it could not be found. Later I found that Linux recognized it as sda1. Chinese: kernel/cdlinux/bzimage root =/dev/ram0 cdl_lang = zh_cn.utf8 cdl_dev =/dev/sda1 then read mclinux again. I downloaded mclinux1.0 and mclinux2.02, mclinux1.0 is an IMA floppy disk image file, so it can be directly guided by a floppy disk. While mclinux2 is not made into a floppy disk image, it is a one-person ZIP file with many tools to write it to a floppy disk. It's easy to make it an Ima. First, extract the package and then leave it in mclinux. IMG, zimage, syslinux. CFG three files are made into Ima. Since mclinux1.0.ima already exists, I directly use winimage to open mclinux10.ima, then delete the three files and pull them in, then, save the settings and click OK. Save the mclinux. copy the IMA file to the USB flash drive/Linux/and then write the menu. LST: Title mini Chinese Linux 2.02 find -- Set-root/grubhere. idmap -- MEM/Linux/mclinux. ima (fd0) map -- hookchainloader (fd0) + 1 rootnoverify (fd0) is an IMA file for Bomber Linux 3.7, so it is directly copied to the Linux directory and then written to the menu. lsttitle bomberlinux 3.7 find -- Set-root/grubhere. idmap -- MEM/Linux/bomberlinux. ima (fd0) map -- hookchainloader (fd0) + 1 rootnoverify (fd0) is created. If the USB flash disk is large enough, you can use a more powerful C Dlinux0.5.9 (including X and more software) and DSL and puppy. Finally, we have completed the installation of a mini boot USB flash drive with complete functions such as winpe + maxdosv6plux + dwarf dos5.3 + cdlinux0.4.9 + mclinux2.02 + bomberlinux3.7 on a 64 m USB flash drive. In fact, maxdos and dwarf dos only need one, and Linux only needs one (we recommend using cdlinux. If you want to be smaller, you can use one of the two below), which can save space, easier integration of more tools

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.