Use syslinux to create an integrated USB flash drive for DOS, winpe, and slax Linux

Source: Internet
Author: User
Tags gz file

[From] http://blog.sina.com.cn/s/blog_4fb009a90100c7ze.html

Use syslinux to create a pocket OS integrated with DOS, winpe, and slax Linux

I. Overview

The price of USB flash drives is getting cheaper, the capacity is getting bigger, and the carrying is also convenient. You can combine some commonly used tools in your work to facilitate the use of computer maintenance.

Ii. System Selection

1. dossystem

At present, there are many dos tool disks, common MS-DOS 7.1, SDOs tool disk, maxdos, dwarf dos tool disk, superpu dos tool disk, etc. In the production, you can choose the appropriate DOS system tool disk according to your favorite, the maxdos 7.1 I selected contains many useful tools, such as Ghost, PQ, and Windows password cracking.

2. winpe System

The winpe system provided on the Internet is basically changed to the winpe of old Mao Tao, it mainly includes the old 9 winpe old Mao Tao modified splay version, the deep red leaf winpe toolbox, the golden finger quick installation U disk version, the general PE toolbox, the perfect U disk winpe Maintenance System, and the morning maple U disk maintenance, etc, in order to minimize the modification during integration, select the maintenance edition of the morning maple U disk.

3. Windows fault recovery console

The Windows Recovery Console enables Windows-based computers to recover when they are not properly started or cannot be started at all. Select the ramdisk-based recovery console running on the online CD.

4. Linux

There are many Linux operating systems on the USB flash disk, such as damn small Linux, slax Linux, Puppy Linux, and Ubuntu, which have relatively small sizes and complete functions. Here slax is selected.

5. Pocket OS

There are mainly Ceedo, mojopac, and portableapps suite. I chose Ceedo based on my hobbies.

Iii. USB flash drive boot GuideProgramSelect

Any operating system running on any hardware platform requires a pilot process, which initializes the software environment, places the kernel from the storage medium into the memory, and starts running. Boot Program carries the bios and kernel InitializationCodeIt is very important, although it does not leave any marks after the machine is started once only once.

Boot programs that can boot U disks mainly include IO, ntldr, syslinux, and grub. They have their own characteristics. Considering compatibility, I chose syslinux. Syslinux is a lightweight boot program dedicated to guiding removable media and supports the initrd function. initrd = init ramdisk is a memory virtual disk used at startup, which improves extensive hardware support.

4. Software list and description

1. syslinux-3.73

For syslinux system files, download them at the following address:

Http://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-3.73.zip

Related installation Tutorials:

Http://syslinux.zytor.com/wiki/index.php/SYSLINUX

2. hp usb flash drive formatting Tool

The hp usb flash drive formatting tool is used to format the USB flash drive. You can also directly start the USB flash drive for I/O. You can download it at the following address:

Http://www.xdowns.com/soft/6/7/2007/Soft_35477.html

3. gdparam

Gdparam is a tool that allows you to conveniently obtain the C/h/S parameter of the disk image file required for a virtual PC startup. When using syslinux to start a DOS disk image, you must specify the C/h/S parameter. You can download it at the following address:

Http://www.05sun.com/downinfo/5089.html

4. winimage

To create and modify a disk image, you can create or modify a DOS disk image by yourself. You can download it at the following address:

Http://www.crsky.com/soft/281.html

5. ultraiso

Ultraiso is an ISO file editing and production tool for CD images. It allows you to create and edit ISO files from the CD and hard disk graphically. You can modify the downloaded winpe or slax image. You can download it at the following address:

Http://www.crsky.com/soft/1134.html

6. winhex

Winhex is a hexadecimal editing software running in windows. It is required to modify the Installation File of winpe. You can download it at the following address:

Http://www.orsoon.com/Soft/4921.html

7. xcab

Xcabcan call the makecab.exe file of the system and compress the file or directory into a cab. In particular, xcmd Devi can be used to generate a cab for winpe. You can download it at the following address:

Http://bbs.wuyou.net/attachment.php? Aid = 14397.

8. wimtool

Wimtool can process Wim files and must be used to modify external packages of winpe. You can download it at the following address:

Http://www.newasp.net/soft/app/26726.html

9. maxdos 7.1 integrated with ghost 11.5 PQ, DM, and CD startup

Telecom download Http://pzz.cn/soft/MaxDOS_71plus_iso.rar

Download from China Netcom Http://c.pzz.cn/soft/MaxDOS_71plus_iso.rar

10. Windows fault recovery console

Http://www.xdowns.com/soft/6/boot/2006/soft_32527.html

11. Maintenance of morning maple USB flash drive V2.0 _ 512m

Http://www.rayfile.com/zh-cn/files/5731196e-e314-11dd-85f0-0019d11a795f/

12. slax 6.0.9

Ftp://ftp.slax.org/SLAX-6.x/slax-6.0.9.iso

13. loadbin

Http://download.gna.org/grubutil/makerom-0.1-bin-w32-2008-01-01.zip

14. Ceedo

Http://www.myfiles.com.cn/soft/5/5224.htm

 

5. Install syslinux

1. format the USB flash drive in FAT32 format. You can use Windows or hp usb flash drive formatting tool.

2. Create a boot folder at the root of the USB flash drive and a syslinux sub-folder under boot

3. decompress the downloaded syslinux-3.73.zip file to the syslinux-3.73folder. The syslinux.exe file is available under win32. Copy "syslinux.exe" to the/boot/syslinux folder of your USB flash drive.

4. Open the command line, switch to the root directory of the USB flash drive, go to the/boot/syslinuxfolder, and run syslinux.exe. Assume that the drive letter of your USB flash drive is J:

Run the following commands in sequence under the command line:

C: \ Documents ents and Settings \ XXXXX> J:

J: \> Cd boot/syslinux

J: \ Boot \ syslinux> syslinux.exe-ma-D/boot/syslinux J:

-D/boot/syslinux stores the command-generated startup system file ldlinux. sys in the/boot/syslinux directory, where you can find the syslinux. cfg configuration file.

6. Configure the Startup Menu

Copy syslinux system files

The configuration of the Startup menu is in the syslinux. cfg file. Several syslinux files are required:

Memdisk                 Guide IMG image files

Vesamenu. c32             One of the two window modules

Menu. c32                 One of the two window modules

Chain. c32                 Start a specified partitionFor example: chain. c32 hd0, 1 (or chain. c32 hd1, 1)

Reboot. c32                Restart the computer

Search for the above files in the decompressed syslinux-3.73 folder and copy them to the/boot/syslinux folder of the U disk in sequence.

VII. dossystem Configuration

1. Create a DOS folder at the root of the USB flash drive

2. Create a DOS Image File

(1) extract the maxdos_71plus_iso.rar file downloaded from the Internet to obtain the maxdos_71plus_iso.iso file.

(2) Use ultraiso to open the Maxs. SYS file in the maxdos_71plus_iso.iso folder.

(3) Rename maxs.systo maxs.gz, and use winrarto start maxdos.exe.

(4) Rename maxdos.exe to maxdos. IMG.

(5) You can use winimage to easily modify the maxdos. imgfile and add your own DOAs application.

(6) copy the modified maxdos. IMG to the DOS folder of the USB flash disk.

3. Obtain the CHS parameter of the imgfile.

Syslinux supports Disk Images in gzip or zip compression formats, but memdisk itself cannot be compressed. memdisk supports direct start of standard floppy images. You need to add the CHS parameter for non-standard images (with a capacity greater than KB. We can use gdparam to obtain the CHS parameter of the imgfile. Write down C/h/S = 555/2/18

4. Modify syslinux. cfg

Open the syslinux. cfg file under U Disk/boot/syslinux and add the following content in it:

Label maxdos

Menu label Max dos v7.1

Kernel/boot/syslinux/memdisk c = 555 H = 2 S = 18 floppy

Append initrd =/DOS/maxdos. img

8. slax System Configuration

1, the downloaded slax-6.0.9.iso with ultraiso open, completely extracted and placed in the slax-6.0.9 folder.

2. Copy the slax folder to the root directory of the USB flash drive.

3. Copy the linuzw.initrd.gz file under the slax-6.0.9/bootfile to the boot file of the U disk.

4. Open the slax. cfg file in the slax-6.0.9/boot folder and copy the following:

Label xconf

Menu label slax graphics mode (KDE)

Kernel/boot/vmlinuz

Append initrd =/boot/initrdch.gz ramdisk_size = 6666 root =/dev/ram0 RW autoexec = xconf; telinit ~ 4 changes =/slax/locale = CHS.UTF-8

5. paste the copied content to the syslinux. cfg file under U Disk/boot/syslinux.

9. winpe Configuration

1. decompress and download the Chunfeng upan maintenance service v2.0_512m .rar to any folder.

2. Create a winpe folder in the USB flash drive root.

3. Modify winpe OEM Information

Winpe in myfeng/boot. is _ changed to winpe. cab, open and decompress winpe with WinRAR. ISO, open it with ultraiso, extract oeminfo.iniand oemlogo.bmp under \ wxpe \ system32for modification, import and replace them, keep the ISO file, and re-package the new ISO file with xcab software, obtain winpe. cab, and then set winpe. change cab to winpe. is _.

4. Modify the winpe external package

Decompress op. WIM in myfeng/boot and use wimtool to unbind it. Then you can replace the desktop background image, add or delete some programs, and then package it into op. Wim using wimtool.

5. Copy the processed op. Wim and winpe. Is _ files to the winpe folder of the USB flash drive.

6. Open winpe. ini in myfeng/boot to modify the op. Wim location code. You can also modify other links. Modify as follows.

Moun % curdrv % \ winpe \ op. Wim, Y: \ external program, 1

Save and copy it to the boot folder of the USB flash drive.

7. Copy ldrxpe, Fon. bin, and ntd.com under myfeng/boot to the boot folder of the USB flash drive.

8. Use notepad to modify the winpe. Is _ path in the xpsi file under myfeng/boot:

Osloadoptions = "/MININT/fastdetect/rdexportascd/rdpath = winpe \ winpe. Is _"

And copy it to the boot folder of the USB flash drive.

9. decompress the downloaded loadbin-0.1-bin-w32-2008-03-01.zip file, change ldntldr. bin to ldntldr, and copy it to the boot folder of the USB flash drive.

10. Open the syslinux. cfg file under Boot/syslinux on the u disk and add the following content to it:

Label winpe

Menu label lite win PE

Kernel/boot/ldntldr

Append initrd =/boot/ldrxpe

10. Windows fault recovery console

1. Create a comcns folder in the USB flash drive root

2. decompress the downloaded base_ramdisk.rar file to the base_ramdisk folder.

3. Use ultraiso to open the ramdisk-based recovery console running on the disc under base_ramdisk. ISO file. is _, winnt. sif, extract it, and then set setupldr under i386. bin is also extracted.

4. Copy cmdcons. Is _ to the comcns folder of the USB flash drive.

5. Open the WINNT. Sif file in notepad and change it:

[Setupdata]

Bootdevice = "ramdisk (0 )"

Bootpath = "\ i386 \"

Osloadoptions = "/noguiboot/fastdetect/rdexportascd/rdpath = comcns \ javascons. Is _"

Save the settings.

6. Rename the modified winnt. Sif file to CNSI and copy it to the boot/disk.

7. Use winhex to open setupldr. Bin.

(1) Search and replace ntdetect. com with boot \ ntd.com. There are four places in total. Replace the first two places.

(2) Find and replace winnt. SIF with boot \ CNSI. Replace all, 9 in total.

(3) Save the setupldr. binfile.

8. Change setupldr. bin to ldrw.con and copy it to the boot/disk of the U disk.

9. Open the syslinux. cfg file under Boot/syslinux on the u disk and add the following content to it:

Label items cons

Menu label cmd cons

Kernel/boot/ldntldr

Append initrd =/boot/ldrw.con

11. Install Ceedo

Install the downloaded Ceedo to your USB flash drive and configure it.

12. directory structure and startup configuration file of the USB flash disk

1. root directory

| --- Boot ---- | -- syslinux -- | sysinux. cfg

| --- DoS

| --- Slax

| --- Comcns

| --- Winpe

| --- Ceedo

| --- My documents ents

 

2. syslinux. cfg file content:

Prompt 1

Timeout 100

Default vesamenu. c32

Menu background back.png

F1 readme.txt

F2 syslinux. cfg

Menu width 36

Menu margin 0

Menu rows 8

Menu helpmsgrow 14

Menu timeoutrow 22

Menu tabmsgrow 24

Menu functions linerow 24

Menu hshift 40

Menu vshift 2

Menu Color Screen37; 40    #00000000 #00000000 none

Menu color border30; 44    #00000000 #00000000 none

Menu Color title    1; 36; 44  #00000000 #00000000 none

Menu color unsel  37; 44    # Ff60ca00 #00000000 none

Menu color hotkey1; 37; 44  # Ff60ca00 #00000000 none

Menu color Sel            7; 37; 40  # Ffffffff # ff60ca00 none

Menu color hotsel 1; 7; 37; 40# Ff808080 # ff60ca00 none

Menu color scrollbar    30; 44    #00000000 #00000000 none

 

Menu color tabmsg 31; 40    # Aaaaaaaa #00000000 none

Menu color coloring mark   1; 36; 40  # Ffff0000 #00000000 none

Menu color using line     37; 40    # Aaaaaaaa #00000000 none

Menu color pwdborder 30; 47    # Ffff0000 #00000000 std

Menu color pwdheader 31; 47    # Ffff0000 #00000000 std

Menu color pwdentry   30; 47    # Ffff0000 #00000000 std

Menu color timeout_msg     37; 40    # Aaaaaaaa #00000000 none

Menu color timeout 1; 37; 40 # Ffaaaaff #00000000 none

Menu color help          37; 40    # Aaaaaa00 #00000000 none

Menu color msg0737; 40    #90 ffffff #00000000 std

 

Menu titleJinjun's tools Disk

 

 

Label maxdos

Menu label Max dos v7.1

Kernel/boot/syslinux/memdisk c = 555 H = 2 S = 18 floppy

Append initrd =/DOS/maxdos. img

Text help

 

More about currently selected:

 

Run Max dos v7.1

Endtext

 

Label winpe

Menu label lite win PE

Kernel/boot/ldntldr

Append initrd =/boot/ldrxpe

Text help

 

More about currently selected:

 

Run lite win PE.

Endtext

 

Label xconf

Menu label slax graphics mode (KDE)

Kernel/boot/vmlinuz

Append initrd =/boot/initrdch.gz ramdisk_size = 6666 root =/dev/ram0 RW autoexec = xconf; telinit ~ 4 changes =/slax/locale = CHS.UTF-8

Text help

 

More about currently selected:

 

Run slax the best way we can.

Endtext

 

Label items cons

Menu label cmd cons

Kernel/boot/ldntldr

Append initrd =/boot/ldrw.con

Text help

 

More about currently selected:

 

Boot System of container con.

Endtext

 

Label boothd

Menu label boot system of hd1

Kernel/boot/syslinux/chain. c32

Append hd1

Text help

 

More about currently selected:

 

Boot System of hd1.

Endtext

 

Label boothd

Menu label boot system of hd2

Kernel/boot/syslinux/chain. c32

Append hd2

Text help

 

More about currently selected:

 

Boot System of hd2.

Endtext

Label reboot

Menu labelReboot

Kernel/boot/syslinux/reboot. c32

Text help

 

More about currently selected:

 

Reboot.

Endtext

 

XIII. Usage

In use, you can set the boot sequence to U-HDD mode first. You are welcome to exchange ideas.

Related Article

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.