Modify the installation file and install Windows XP on the USB flash drive.

Source: Internet
Author: User

From: http://www.verycd.com/groups/@g933353/188257.topic

 

Preface:

The original XP version cannot be directly installed on a mobile hard disk. It is mainly because the installation program uses USB only as the input device during installation, but not as the storage device, therefore, after the file is copied, it cannot be started again. I have made some minor changes to the configuration file and USB driver of the installation program, so that the installation can be smoothly installed on the mobile hard disk. The system installed on a mobile hard disk cannot generate paging files. You can change the virtual memory to non-paging files in my computer attributes. Fortunately, the current machine memory is very large, it basically does not affect usage. NOTE 2: first, if your machine is not a USB interface, don't worry about it yourself. Second, the XP system is a computer, so on which machine the installation can only be used on which machine (unless the uboot http://www.usboot.org /).

 

Prerequisites

● To continue most of the following operations, you need a desktop with a Windows operating system installed.
● A mobile storage device compatible with the USB 2.0 standard. This device can be a mobile hard drive or even a large-capacity flash drive (there are already many flash drives with a capacity of more than 2 GB on the market ). If you want to use a hard disk, this mobile hard disk can be a ready-made product, or you can use a mobile hard disk box for DIY. We recommend that you do it yourself, because it is not only cheap, but also can use a desktop hard disk, the performance can be guaranteed (in order to maintain a certain volume of finished mobile hard disks, the cache is usually small, the capacity is small, low Speed laptop hard drive ). In addition, in order to avoid the time required for data transmission, it is recommended that the USB interface on the mobile hard disk (box) and the motherboard work under the USB 2.0 standard.
● A Windows XP installation CD.
● Ultraiso or other software that can directly edit the ISO file.
● Microsoft cabinet SDK: Release.
● Allows you to directly burn the CD recording software for ISO files.

Solution

The main idea is as follows: first create an ISO image for the original version of Windows XP installation CD, and then add some files to it using the ISO editing software, after editing the file, save the changed version back to the ISO file. Then, you can re-burn the modified ISO file to the CD. You can use this CD to install Windows XP on the USB storage device, will be used to install the hard drive as an example ).
Detailed procedure

Whether boot from a USB device is supported
Generally, if there are similar options in the boot sequence menu of your motherboard BIOS, the answer is yes. If this option is not available in the boot sequence menu, update your BIOS. If you are not sure, you are advised to log on to the website of the motherboard vendor for an accurate response.

Prepare Hard Disk
Because the technology used by the motherboard and mobile hard disk is different, some mobile hard disks can be used as boot disks directly, but some require special processing. If you are not sure whether your mobile hard disk can be used as a boot disk, You can first connect the mobile hard disk directly to your computer, instead of using any usb hub. Then turn off the computer, disconnect all other hard disks from the chassis, and put your original Windows XP installation CD into the optical drive. Start the installer and go to the interface on which you want to select the target hard disk partition. If you can see the hard disks and partitions listed by the installer, it proves that your hard disk is supported, otherwise it will not be supported directly.
Generally, this is not a big problem. What you need to do is "format your hard disk properly. Restart to a normal Windows environment, and then use the HP tool: restart.

Create an image for the installation disc
This step is quite simple. Put the Windows XP installation CD into the optical drive, run ultraiso, select the "make CD image file" option under the "Tools" menu, and save your ISO file.

Extract files to be processed
After the CD image is created, close it and re-open ultraiso. Then, use the open command under the File menu to open the ISO file you just created.
Next, go to the i386 folder and select the following files (press Ctrl to select multiple files ):
● Txtsetup. Sif
● Dosnet. inf
● USB. In _
● USB port. In _
● Usbstor. In _
Under the "operations" menu, select the "extract" command and release the extracted files to other folders.

Extract in _ files
Run the downloaded cabsdk.exe file in the previous text to release the file to the hard disk (assuming it is placed under C:/cabsdk ). Run cmd to open the Command Prompt window, and enter C:/cabsdk/bin. the IN _ format indicates the three ". in _ "file to run the cabarc command, you will eventually get three". INF file.
● USB. inf
● USB port. inf
● Usbstor. inf
At this time, all the. In _ files can be deleted.

Edit File
This is the main work to be done in this article, and I will briefly explain why this is done. You can use a text editor, for example, notepad, to edit a file.

Txtsetup. Sif
This file is loaded by the Windows XP installer in the initial installation phase. In this file, we will change how the Windows Installer processes the USB device. By default, the USB device is considered as an input device during installation. After modification, the USB device will become a large storage device (this device needs to be loaded before use ).
First, follow the example below to process the [inputdevicessupport. Load] and [bootbusextenders. Load] fields (the blue text is the newly added content, and the text with (*) is the deleted content ):

[Bootbusextenders. Load]
PCI = PCI. sys
ACPI = ACPI. sys
Isapnp = isapnp. sys
Acpiec = acpiec. sys
Ohci1394 = ohci1394.sys
Usbehci = usbehci. sys
Usbohci = usbohci. sys
Usbuhci = usbuhci. sys
Usbhub = usbhub. sys
Usbstor = usbstor. sys

[Inputdevicessupport. Load]
Usbehci = usbehci. sys (*)
Usbohci = usbohci. sys (*)
Usbuhci = usbuhci. sys (*)
Usbhub = usbhub. sys (*)
Usbccgp = usbccgp. sys
Hidusb = hidusb. sys
Serial = serial. sys
Serenum = serenum. sys
Usbstor = usbstor. sys (*)

Then, perform similar processing on the [bootbusextenders] and [inputdevicessupport] fields (the blue text is the newly added content and the (*) text is the deleted content ):

[Bootbusextenders]
PCI = "PCI-bustreiber", files. PCI, PCI
ACPI = "ACPI plug & Play-bustreiber", files. ACPI, ACPI
Isapnp = "ISA plug & Play-bustreiber", files. isapnp, isapnp
Acpiec = "integrierter ACPI-controllertreiber", files. None, acpiec
Ohci1394 = "IEEE-1394-Bus-OHCI-konformer anschlusstreiber", files. ohci1394, ohci1394
Usbehci = "erweiterter hostcontroller", files. usbehci, usbehci
Usbohci = "Open hostcontroller", files. usbohci, usbohci
Usbuhci = "universeller hostcontroller", files. usbuhci, usbuhci
Usbhub = "standard-USB-hubtreiber", files. usbhub, usbhub
Usbstor = "USB-speicherklassentreiber", files. usbstor, usbstor

[Inputdevicessupport]
Usbehci = "erweiterter hostcontroller", files. usbehci, usbehci (*)
Usbohci = "Open hostcontroller", files. usbohci, usbohci (*)
Usbuhci = "universeller hostcontroller", files. usbuhci, usbuhci (*)
Usbhub = "standard-USB-hubtreiber", files. usbhub, USB Hub (*)
Hidusb = "hid-parser", files. hidusb, hidusb
Serial = "serial port driver", files. None, serial
Serenum = "Serial Port enumerator", files. None, serenum
Usbstor = "USB-speicherklassentreiber", files. usbstor, usbstor (*)
USB ccgp = "USB generic parent driver", files. USB ccgp, USB ccgp

Then, we need to write some keys in the registry. Txtsetup. Sif allows you to provide some files that will be merged into the Registry during system installation. Add the following blue text in the [hiveinfs. Fresh] field:

[Hiveinfs. Fresh]
Addreg = hivedef. inf, addreg
Addreg = hivesys. inf, addreg
Addreg = hivesft. inf, addreg
Addreg = hivecls. inf, addreg
Addreg = hiveusd. inf, addreg
Addreg = dmreg. inf, DM. addreg
Addreg = USB boot. inf, USB services

Add the following blue text content to the [sourcedisksfiles] field:

[Sourcedisksfiles]
Usbboot. inf = 1, _ x, 3, 3
Bootvid. dll = 1, 3 _, 2, 0, 1, 2
Kdcom. dll = 1, 3 _, 2, 0, 1, 2

Finally, save and close txtsetup. Sif. This step is complete.

Dosnet. inf
Next, open dosnet. inf and change the second [files] field to the following (the blue text is the new content ):

[Files]
D1, USB boot. inf
D1, _ default. pif
D1, 12520437.cpx
D1, 12520850.cpx

USB. inf
Edit the [standardhub. addservice] and [commonclassparent. addservice] fields and add the following blue text content:

[Standardhub. addservice]
Displayname = % standardhub. svcdesc %
Servicetype = 1; service_kernel_driver
Starttype = 0; service_demand_start
Errorcontrol = 1; service_error_normal
Servicebinary = % 12%/usbhub. sys
Loadordergroup = boot bus Extender

[Commonclassparent. addservice]
Displayname = % genericparent. svcdesc %
Servicetype = 1; service_kernel_driver
Starttype = 0; service_demand_start
Errorcontrol = 1; service_error_normal
Servicebinary = % 12%/usbccgp. sys
Loadordergroup = boot bus Extender

Usbport. inf
Edit the [EHCI. addservice], [OHCI. addservice], [uhci. addservice], and [roothub. addservice] fields, and add the following blue text content:

[EHCI. addservice]
Displayname = % ehcimp. svcdesc %
Servicetype = 1; service_kernel_driver
Starttype = 0; service_demand_start
Errorcontrol = 1; service_error_normal
Servicebinary = % 12%/usbehci. sys

Loadordergroup = boot bus Extender
[OHCI. addservice]
Displayname = % ohcimp. svcdesc %
Servicetype = 1; service_kernel_driver
Starttype = 0; service_demand_start
Errorcontrol = 1; service_error_normal
Servicebinary = % 12%/usbohci. sys
Loadordergroup = boot bus Extender

[Uhci. addservice]
Displayname = % uhcimp. svcdesc %
Servicetype = 1; service_kernel_driver
Starttype = 0; service_demand_start
Errorcontrol = 1; service_error_normal
Servicebinary = % 12%/usbuhci. sys
Loadordergroup = boot bus Extender

[Roothub. addservice]
Displayname = % roothub. svcdesc %
Servicetype = 1; service_kernel_driver
Starttype = 0; service_demand_start
Errorcontrol = 1; service_error_normal
Servicebinary = % 12%/usbhub. sys
Loadordergroup = boot bus Extender

Usbstor. inf
Add/modify the following blue text in the [usbstor. addservice] field:

[Usbstor. addservice]
Displayname = % usbstor. svcdesc %
Servicetype = 1
Starttype = 0
Tag = 3
Errorcontrol = 1
Servicebinary = % 12%/usbstor. sys
Loadordergroup = boot bus Extender

New File: usbboot. inf
Create a file named USB boot. inf in the folder where the previously processed file is located, and enter the following content:

[USB services]

HKLM, "system/CurrentControlSet/services/usbstor", "displayname", 0x00000000, "USB Mass Storage driver"
HKLM, "system/CurrentControlSet/services/usbstor", "errorcontrol", 0x00010001,1
HKLM, "system/CurrentControlSet/services/usbstor", "group", 0x00000000, "system reserved"
HKLM, "system/CurrentControlSet/services/usbstor", "ImagePath", 0x00020000, "system32/Drivers/usbstor. sys"
HKLM, "system/CurrentControlSet/services/usbstor", "Start", 0x00010001,0
HKLM, "system/CurrentControlSet/services/usbstor", "type", 0x00010001,1

HKLM, "system/CurrentControlSet/services/usbehci", "displayname", 0x00000000, "USB 2.0 enhanced host controller miniport driver"
HKLM, "system/CurrentControlSet/services/usbehci", "errorcontrol", 0x00010001,1
HKLM, "system/CurrentControlSet/services/usbehci", "group", 0x00000000, "system reserved"
HKLM, "system/CurrentControlSet/services/usbehci", "ImagePath", 0x00020000, "system32/Drivers/usbehci. sys"
HKLM, "system/CurrentControlSet/services/usbehci", "Start", 0x00010001,0
HKLM, "system/CurrentControlSet/services/usbehci", "type", 0x00010001,1

HKLM, "system/CurrentControlSet/services/usbhub", "displayname", 0x00000000, "usb2 enabled Hub"
HKLM, "system/CurrentControlSet/services/usbhub", "errorcontrol", 0x00010001,1
HKLM, "system/CurrentControlSet/services/usbhub", "group", 0x00000000, "system reserved"
HKLM, "system/CurrentControlSet/services/usbhub", "ImagePath", 0x00020000, "system32/Drivers/usbhub. sys"
HKLM, "system/CurrentControlSet/services/usbhub", "Start", 0x00010001,0
HKLM, "system/CurrentControlSet/services/usbhub", "type", 0x00010001,1

HKLM, "system/CurrentControlSet/services/usbuhci", "displayname", 0x00000000, "Microsoft USB universal host controller miniport driver"
HKLM, "system/CurrentControlSet/services/usbuhci", "errorcontrol", 0x00010001,1
HKLM, "system/CurrentControlSet/services/usbuhci", "group", 0x00000000, "system reserved"
HKLM, "system/CurrentControlSet/services/usbuhci", "ImagePath", 0x00020000, "system32/Drivers/usbuhci. sys"
HKLM, "system/CurrentControlSet/services/usbuhci", "Start", 0x00010001,0
HKLM, "system/CurrentControlSet/services/usbohci", "displayname", 0x00000000, "Microsoft USB Open host controller miniport driver"

HKLM, "system/CurrentControlSet/services/usbohci", "errorcontrol", 0x00010001,1
HKLM, "system/CurrentControlSet/services/usbohci", "group", 0x00000000, "system reserved"
HKLM, "system/CurrentControlSet/services/usbohci", "ImagePath", 0x00020000, "system32/Drivers/usbohci. sys"
HKLM, "system/CurrentControlSet/services/usbohci", "Start", 0x00010001,0
HKLM, "system/CurrentControlSet/services/usbohci", "type", 0x00010001,1

Repackage the INF file
If the original. In _ file has not been deleted, it must be deleted now, because we need to replace it with a new file.
Open a command prompt line window again, enter the folder to save these files, and then execute the following command:

Cabarc n USB. In _ USB. inf
Cabarc n usbport. In _ usbport. inf
Cabarc n usbstor. In _ usbstor. inf

In this way, you can see three in _ files. Congratulations, all the modifications have been completed.

Reload the ISO file
Use ultraiso to open your windows XP installation CD image, go to the i386 folder, delete the following files from the ISO file, and save the changes:
● Dosnet. inf
● Txtsetup. Sif
● USB. In _
● USB port. In _
● Usbstor. In _
Make sure that all changes are saved to the ISO file, close and re-open the changed ISO file in ultraiso, and enter the i386 folder again, select the "add file" command under the "operations" menu to add the file you Edited:
● USB boot. inf
● Dosnet. inf
● Txtsetup. Sif
● USB. In _
● USB port. In _
● Usbstor. In _
Save the ISO file.

Burn the ISO file back to the CD
You can select any CD-based recording software at will. Note: We need to burn the ISO file as a "CD image" instead of a "common file. Otherwise, there will be an ISO file in the root directory of the burned CD, which cannot guide the computer and install the system.
Install Windows XP from a cd
Shut down your computer and unplug other built-in hard disks (so that windows won't find them during installation, saving you the trouble of breaking the Master Boot Record ). In the BIOS setup program, set the USB hard disk to the boot device in the first sequence and the optical drive to the second sequence (for detailed operation instructions, refer to the instructions on the computer or motherboard ).
At the same time, you need to connect the USB hard disk directly to the computer, instead of connecting through the USB hub.
In this way, windows can be installed and used normally. During the installation process, you may encounter these problems:
● During driver installation, the installer may remind you that the driver has not passed Microsoft authentication. This is normal. The modification to some files changes the file's check value, so the digital signature of the driver is lost. Click "still install" several times.
● After the installation is complete, the system reports that the paging file is not found at the first startup. You can ignore this error, even if there is no paging file, Windows can work normally.
So far, all operations have been completed, and you can process any confidential data in the system installed on the mobile hard disk with confidence. After that, you just need to unmount the mobile hard disk and save it to a safe place. Then, you can connect the built-in hard disk to the computer to access the usual system.

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.