China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-27 01:52
中国DOS联盟论坛 » 其它操作系统综合讨论区 » A Guide to Making Universal WinXP Ghost Images View 4,608 Replies 16
Original Poster Posted 2005-10-14 16:54 ·  中国 四川 南充 电信
超级版主
★★★★
我爱DOS
Credits 5,310
Posts 2,044
Joined 2005-09-26 12:00
20-year member
UID 42843
Gender Male
From 四川南充
Status Offline
Reinstalling the system is not a fun thing: First, you have to sit in front of the computer desk and honestly answer the questions raised by the Windows installation program. After installation, you can't be idle. You also have to install drivers, applications... It is roughly estimated that it won't be done in less than half a day! Maybe some friends will say, use Ghost, which is fast and convenient, and the system will be restored in less than five minutes. But that's only local backup. If you restore it on someone else's machine, it will definitely "not fit in". The reason is very simple: the configurations of hardware, system, and network cannot all be exactly the same... But after reading this article, you can easily create a universal key. Any machine can easily use the Ghost recovery installation method, and you can install Windows XP in more than 10 minutes!

I. Prepare well

Install Windows XP and use Windows Update to upgrade to the latest system patches (including service Pack 1 and other latest Hot fixes). Also install the required applications. But don't be greedy, because installing applications in the C drive is not a recommended practice, and it will also cause the Ghost image file to be too large.

II. Slim down Windows XP

Whether you need to burn the final Ghost image file to a CD or not, you should slim down Windows XP to minimize the size of the Ghost image file as much as possible. The main items that can be cut are as follows:

1. System file protection cache

It is located in the C:\WINDOWS\System32\Dllcache directory. We just need to run "sfe.exe /purgecache" in the command prompt window to delete it.

2. Empty the page file

Right-click on "My Computer" and select "Properties". In the opened "System Properties" dialog box, select the "Advanced" tab, click the "Settings" button under "Performance", in the opened "Performance Options" dialog box, select the "Advanced" tab, and then click the "Change" button at the bottom right to open the "Virtual Memory" dialog box. By default, the virtual memory file is saved in the installation directory of Windows XP. We just need to select the "No paging file" option below and then click the "Set" button. Restart the computer and the virtual memory file will be deleted. Note that after making the hard disk image file, reset the virtual memory.

3. Turn off the system restore function

In the opened "System Properties" dialog box, select the "System Restore" tab and check the checkbox in front of "Turn off system restore on all drives".

4. Other methods

We can also use other conventional "slimming down" methods such as deleting help documents, deleting unnecessary input methods, font files, etc. to further reduce the size of the partition where Windows XP is located.

III. Operate on the drivers

Since the Windows XP Ghost file we are going to make is universal, the hardware configuration of the target computer must not be exactly the same as the current computer's configuration. Therefore, we need to delete the device drivers on the current computer.

1. Delete ordinary drivers

① Enter "devmgmt.msc" in the "Run" dialog box and press Enter to open the "Device Manager" console window.

② Find the network adapter, right-click on the name of the network card device under it, and click the "Uninstall" menu item in the pop-up menu.

③ Then use a similar method to uninstall device drivers such as Universal Serial Bus controllers, video game controllers, graphics cards, sound cards, etc. Note here that if the system prompts that a restart is required, must not restart the machine, so that the system won't reinstall the drivers on its own.

2. Update the ACPI property

Then we need to change the computer's ACPI property to Standard PC. This is because if there are different types of ACPI in the target computer, the newly cloned target computer will not be able to achieve soft shutdown of the computer and may crash after the first boot! The change steps are as follows:

① In the Device Manager console window, right-click on "Computer" → "ACPI Uniprocessor PC", and click the "Update driver" menu item in the pop-up menu;

② In the opened "Hardware Update Wizard" dialog box, select the "Install from a list or specified location (Advanced)" option and click the "Next" button;

③ In the next page, select the "Don't search, I will choose the driver to install myself" option and click the "Next" button;

④ Then select the "Standard PC" option, and follow the screen prompts all the way to Next. Just when it finally prompts whether to restart, must not restart!

3. Update the IDE controller property

The final operation on the device drivers is to change the IDE ATA/ATAPI controller. This step is very important, because as we all know, different motherboards, such as Intel, Nforce 2, VIA, etc., have very different drivers for the IDE ATA/ATAPI controller and cannot be universal at all!

① In the Device Manager console window, right-click on the IDE ATA/ATAPI controller, Intel (R) 82371 AB/EB Bus Master IDE Controller, and click the "Update driver" menu item in the pop-up menu;

② In the opened "Hardware Update Wizard" dialog box, select the "Install from a list or specified location (Advanced)" option and click the "Next" button;

③ In the next page, select the "Don't search, I will choose the driver to install myself" option and click the "Next" button;

④ Then select the "Standard dual-channel PCI IDE controller" option, and follow the screen prompts all the way to Next. Just when it finally prompts whether to restart, must not restart!

IV. Prepare the main image file

Deleting the drivers on the "mother machine" doesn't mean it's done. This is because each computer has a unique security identifier (SID: security identifier). If the disk image is directly copied to other computers, then other computers will all have the same SID. Therefore, we need to use the Sysprep tool to remove the SID of the "mother machine" to force the target computer to generate a new SID.

1. Automatic answer file

When the target computer restores the cloned backup, the system will start a Mini-Setup wizard process, which will prompt us to enter specific computer variables, such as the administrator password, computer name, etc. But since the drivers are removed in the cloned backup, we cannot use the keyboard and mouse for interaction at this stage. However, we can create an automatic installation answer file to let this answer file automatically answer the questions raised by the installation program.

① Insert the Windows XP installation CD into the optical drive, and extract the DEPLOY.CAB file in the \SUPPORT\TOOLS\ directory to the C:\Sysprep directory;

② Then run the setupmgr.exe file in it. In the interface where the installation type is selected, select the "Sysprep installation" option;

③ Fill in the necessary information according to the screen prompts, keep clicking the "Next" button until finally entering the dialog box for saving the configuration file. Be sure to ensure that the final installation script path is C:\Sysprep\sysprep.inf.

2. Repackage

Now we can use the Sysprep tool to remove the SID of the "mother machine". It's very simple: run the Sysprep.exe program in the C:\Sysprep directory, then click the "Repackage" button in the opened window. Next, it will prompt that the SID will be regenerated when it starts next time. Click the "OK" button, wait for a while, and the computer will automatically shut down.

V. Clone the main image file

After the computer is shut down, we can use the Ghost 2003 boot disk to boot the computer, then click the "Local→Partition→To Image" command in sequence, specify the source partition as the C drive, then set the path and file name of the Ghost image file, and start the backup. After the backup is completed, we will have a universal Windows XP image file!

---------- Edited by willsort ----------
Moved from DOS Troubleshooting & Problem Discussion (Answer Room)
---------- Edited by willsort ----------


[ Last edited by willsort on 2005-10-14 at 18:33 ]
Floor 2 Posted 2005-10-14 17:00 ·  中国 山西 临汾 联通
中级用户
★★
Credits 241
Posts 131
Joined 2005-09-28 19:01
20-year member
UID 42920
Gender Male
Status Offline
Haha, I've seen it! It's just that the re-packaging is a bit difficult! Adding to remove other unnecessary files, deleting pagefile, and things like oe, games, etc., it's best to be able to control it around more than 600M! I made one that's 717M, which is a bit large on one disk! Keep working hard, keep making it as small as possible!
房东说:这娃是个好孩子!
Floor 3 Posted 2005-10-14 18:02 ·  中国 四川 南充 电信
超级版主
★★★★
我爱DOS
Credits 5,310
Posts 2,044
Joined 2005-09-26 12:00
20-year member
UID 42843
Gender Male
From 四川南充
Status Offline
Floor 4 Posted 2005-10-15 09:34 ·  中国 浙江 舟山 电信
新手上路
Credits 5
Posts 5
Joined 2005-10-15 08:14
20-year member
UID 43520
Status Offline
For me, the time spent on software setup and debugging after installing the operating system is much longer than the time spent on installing the operating system. However, if there is an image backup, it's not bad to save 45 minutes.
Floor 5 Posted 2005-10-16 10:22 ·  中国 四川 南充 电信
超级版主
★★★★
我爱DOS
Credits 5,310
Posts 2,044
Joined 2005-09-26 12:00
20-year member
UID 42843
Gender Male
From 四川南充
Status Offline
Floor 6 Posted 2005-11-07 17:45 ·  中国 山西 临汾 联通
中级用户
★★
Credits 241
Posts 131
Joined 2005-09-28 19:01
20-year member
UID 42920
Gender Male
Status Offline
Now all are using SP2. When deploying, pay attention to the version number of sysprep.exe, otherwise problems such as being unable to deploy at all or the final installation not being able to complete automatically may occur! But for friends who need to deploy, I can provide the SP2 version of sysprep.exe!
房东说:这娃是个好孩子!
Floor 7 Posted 2005-11-07 18:01 ·  中国 四川 南充 电信
超级版主
★★★★
我爱DOS
Credits 5,310
Posts 2,044
Joined 2005-09-26 12:00
20-year member
UID 42843
Gender Male
From 四川南充
Status Offline
Floor 8 Posted 2006-01-14 08:01 ·  中国 上海 闵行区 电信
新手上路
Credits 5
Posts 1
Joined 2006-01-14 05:38
20-year member
UID 48949
Status Offline
LZ, it is said that deleting Dllcache will cause instability in the cloned system later. So it is not recommended that everyone delete it. There are special Dllcache file backup tools on the Internet. You can search on Baidu.

As for emptying the page file, there is no need at all, because ghost simply does not back up pagefiles. Don't believe it? You can give it a try. Package an image with the pagefiles file deleted and one without deletion respectively, and then see which one is larger and which one is smaller to understand.
Floor 9 Posted 2006-01-16 14:46 ·  中国 重庆 电信
新手上路
Credits 8
Posts 4
Joined 2006-01-16 14:10
20-year member
UID 49057
Status Offline
My clumsy way is, after installing the system well (I used the 185M one WinXP), then installed the slim version of OFFICE 2003, installed the software that can play DVDRip, for downloading flashget and for uploading the FXP software, can see super star book, and can see PDF software, basically enough, then optimize the system (delete pagefiles files etc.), finally pack, this package has about 500M. Later if someone has a machine to install the system, just burn this package, after burning, don't start, use the 185M WinXP on the newly burned machine to install once, when installing, choose the "repair install" that one. Finally, the explanation is that the 185M this winXP does not bring driver, when installing, must find the machine's show, sound, mainboard etc. driver just line.
Floor 10 Posted 2006-06-02 09:42 ·  中国 广东 汕头 电信
初级用户
Credits 135
Posts 49
Joined 2006-04-28 10:01
20-year member
UID 54589
Status Offline
Originally posted by gojazh9 at 2006-1-14 08:01:
LZ, it is said that deleting Dllcache will cause instability in cloned systems later. So it is not recommended for everyone to delete. There are special DLL cache file backup tools on the Internet. You can search for them on Baidu.
As for the canal...



Only versions above GHOST 8.0 will. The principle is that the 512M page file and 768M hibernation file can be compressed into a few bytes, so there is no need to delete them at all.
Floor 11 Posted 2006-06-02 17:37 ·  中国 福建 莆田 联通
中级用户
★★
DOS爱好者
Credits 213
Posts 99
Joined 2006-03-26 12:36
20-year member
UID 52807
Gender Male
Status Offline
Floor 12 Posted 2006-06-04 10:40 ·  中国 广西 百色田阳县 电信
初级用户
Credits 126
Posts 13
Joined 2005-04-27 00:00
21-year member
UID 38626
Gender Male
Status Offline
Floor 13 Posted 2006-10-06 08:12 ·  中国 山东 威海 联通
新手上路
Credits 18
Posts 5
Joined 2006-01-06 21:51
20-year member
UID 48534
Status Offline
Originally posted by maya0su at 2005-11-7 17:45:
Now everyone is using SP2. When deploying an image, you need to pay attention to the version number of sysprep.exe; otherwise, problems such as being unable to deploy at all or the final installation not completing automatically after deployment may occur! However, for friends who need to deploy an image, I...


Where did you get this Sysprep for Sp2? Is it from the Xpsp2 CD itself? Does it work well after applying the latest patches? Please send me a copy: Hcjcyzw@126.com
Floor 14 Posted 2006-10-07 00:53 ·  中国 广东 东莞 电信
中级用户
★★
Credits 282
Posts 130
Joined 2006-09-20 22:25
19-year member
UID 63201
From 广东
Status Offline
I've always wanted to make one, and I've learned...
Floor 15 Posted 2006-10-11 11:13 ·  中国 广东 广州 越秀区 电信
新手上路
Credits 6
Posts 2
Joined 2006-10-11 09:06
19-year member
UID 65301
Status Offline
Moderator, hello:

1. Could you please provide the Sp2 version of Sysprep?

2. Have you heard of the following software? Can you provide it?

  "ACPI Fact File"

  Software version: 1.0

  Software size: 179KB

  Software nature: Free software

  Applicable platform: Windows 2000/XP/2003

Thanks!

gz1390@126.com
Forum Jump: