Multi-function boot U disk detailed production tutorial

Source: Internet
Author: User

as a first step, we need to download a few of the required tool software:

Grub4dos and Grubinst,grub4dos are grub's porting in DOS, which also contains GRLDR files that support Chinese needs. and grubinst can boot to disk under Win32, do not need to run in pure DOS, convenient for Windows users. Grub4dos can be downloaded on the sourceforge.

WinPE. Because there are many versions of WinPE, different versions of features, sizes, and files are very different, so here's an example of the depth WinPE five-year version. Other versions of PE are also used similarly (some older versions of WinPE cannot be installed Win7).

GHO files or Windows system installation files for installing Windows, optional.

Veket, with the latest version 5.29 as an example, other versions of Veket and other Linux portable systems should be similar, can be modified according to the relevant documents.

Linux LiveCD, usually using Ubuntu or deepinlinux, download the corresponding ISO file from the official website. Then prepare a U disk and format it in FAT32 format. If the USB drive turns out to be the FAT32 format, then you can dispense with the formatting steps. In the production process, is not deleted on the U disk on the original data. However, you need to set aside enough space to hold the file, the size of the space and the function of the need, if only need WinPE function, then about 170m;veket need 400M, and 32m-512m optional user data space; The size of the LINUXLIVECD is the size of the ISO file, usually the smallest 700m;dos, the general 10M is almost. In this way, 1G u disk can put down WinPE and Veket, if you want to add a Linux LiveCD will need 2G u disk to do.

  Step two, install Grub

Plug the U disk into the computer's USB, and then through the Windows Disk Management function to find the disk of the corresponding disks. Do not choose errors here, otherwise the MBR of the hard disk will be overwritten. From the figure below, you can see that the USB disk here is Disk 2.

Then run Grubinst under the Grubinst_gui.exe this software, in disk to select the corresponding disk (for example, in the figure can be clearly seen is HD2, in fact, each of the corresponding disk may be different).

Do not need to select what parameters, directly press the Grubinst_gui software button, will be the boot data into the U disk's MBR. The whole process is very fast and the following interface will be displayed when finished. Then the U disk already has the boot function, but to be convenient to use also need to make some settings.

And then the grub4dos in the Grldr this file copied to the root directory of U disk. To support Chinese display on the boot menu, we need to copy the Grldr file in the Chinese subdirectory of Grub4dos. Then in Notepad to create a menu.lst file, this file is a U disk when the start of the menu. In addition, in order to show the Chinese also need a font file, this is a 16-point array of Chinese character font.

  Installation method of WinPE:

Copy the depth WinPE five anniversary file to the U disk. General WinPE are compressed files or ISO files, do not need to follow the usual method of the ISO file into the U disk, which will empty the contents of U disk, here only need to extract the file to the root of the U disk. Depth Five anniversary WinPE is a winrar compressed self release file, spread to the hard disk with WinRAR, and then copy these files to the U disk. The main documents are: Boot.wim, Mtldr, WINNT. XPE, Ntdetect.com, [Programs], etc. note that you want to keep the directory structure.

Then add the following lines to the Menu.lst:

Title Start depth WinPE five anniversary edition

Chainloader/mtldr

If you want to add some of your own tool software, you can look at the instructions inside the WinPE to add the software you need.

  Installation of DOS system:

In some cases, it may be necessary to use a pure DOS system. You can usually download an img file containing DOS, and then create a Dos folder on a U disk, copy the img file in, and finally add the following in the Menu.lst (take Maxdos as an example):

Title DOS Toolbox

Map--mem/dos/maxdos.img (FD0)

Map--hook Chainloader (fd0) +1 rootnoverify (fd0)

Some of the hard drive's setup tools are also running in DOS, or you can use this method. (for example, Hitachi, just replace Maxdos with ftool.img)

  Installation of Veket:

This is probably the easiest. First in the U disk root directory to create a Veket folder, and then use the 7zip software to veket the ISO file to extract, and then the uncompressed files are copied to the U Disk Veket folder. The 7zip is used because the software is uncompressed

Does not change the capitalization of the file name, but the Linux system is case-sensitive.

Then add the following lines to the Menu.lst:

Title enters the portable system Veket

Kernel/veket/vmlinuzpmedia=usbflash

Initrd/veket/initrd.gz

  How to use Linux LiveCD:

And Veket is similar to the first set up a folder (such as Ubuntu), and then the ISO vmlinuz and initrd.gz two files extracted, put into a new folder, and copy the ISO file to the U disk. Finally, add the corresponding item in the MENU.LST,

The following is the LIVECD for adding Deepin:

Title Deep Linux (need to put the deeplinux ISO into the U disk root directory and renamed Deepin.iso) Kernel/deepin/vmlinuz boot=casperiso-scan/filename=/ Deepin.isoro Quiet Splash

Initrd/deepin/initrd.lz

In the case of multiple systems, you can also specify that a system is the default and only need to add the following two lines.

Default 0 Timeout 30

Modifying the number following default can specify a system that starts by default, and timeout is the time (in seconds) to wait at startup.

The font of the menu can use different color and background colors, or you can use the back-view. However, when you use a background image, the font color options are invalidated. Background images need to be in the size of 640x480, 14 colors, and saved in XPM format (can be compressed in GZ). In order to

To avoid accidental deletion of the above system files, you can also set these files and directories to read, system, hide, and so on.

After several steps above, a can guide, convenient DIY multi-function u disk is done, under normal circumstances only need a few minutes is enough. In the BIOS to modify the computer U disk first boot, if you see the menu.lst when the menu, on behalf of the success of the production. In order to facilitate everyone, I have grub and the need for the font, such as file packaging, there is a Menu.lst file example, you can refer to.

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.