无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 9176|回复: 15
打印 上一主题 下一主题

讨论:在优盘上安装XP系统的设想

[复制链接]
跳转到指定楼层
1#
发表于 2007-6-28 08:21:49 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
随着优盘空间增大和读取速度提高,还有现在优盘启动的多样化,设想如果将xp系统[比方说优化精简版]安装到优盘,或者移动硬盘。使用中利用一个批处理程序在退出系统时将硬件驱动全部清理,进行类似重新封装状态关机,以便在不同电脑上启动。采取影子系统那种状态。[当然不同于XPE系统了,因为pe是建立在虚拟的内存空间,在运行中不能安装其他软件,同时操作也有一定的局限性]

以上是我的想法,不知是否现实,大家如果有什么建议,请一起讨论。

如果觉得我的想法幼稚,可一笑而过,不必太计较。
2#
发表于 2007-6-28 08:36:47 | 只看该作者
不可笑,或许下面的资料对你有用

Windows Vista boots from USB

Author: Dietmar Stölting, 8. August 2006
dietmar.stoelting@t-online.de
Germany


Tutorial (Version 8 for Vista Build <= 5384, others see EDIT at the end))

1.) Format your USB harddisk with Partition Magic 8 with NTFS (about 20 GByte) and set it aktiv.

2.) Disconnect all other harddisks.
Have a look in your Bios, whether all USB is enabled.
Plug the USB harddisk into. (I use WD 160BB.)

3.) Put the Vista DVD in and hit any key.

4.) On some i875 motherboards appears the same problem as to dennis123123: A message appears and
says: Vista cant be installed on that harddisk. It is because the modified ntdetect.com cant be used
anymore, because there is none in Vista. The correct information about the USB harddisk is there not transmitted from the silly Bios to ntoskrnl.exe.
It works on AMD compis and the Shuttle barebones with Intel chipset.

When Vista says, it cant be installed use the edited Tutorial 8 at the end  .

5.) Let Vista been installed.

6.) During the first reboot you got BSOD. So connect your USB harddisk to another working XP.

7.) As described in Tutorial 3, you have to change the values for Group and Start in Registry.
So load SYSTEM into the registry as otto and set Group = System Reserved
and Start = 0 . (HKEY_LOCAL_MACHINE\SYSTEM(otto)\ControlSet001\Services\USBSTOR)
For USBSTOR you have also to add the Entry Group.
For USBHUB, USBEHCI, USBOHCI, USBUHCI do the same.
Export this Hive, make a rescue for SYSTEM in a folder called Rettung, and name otto to SYSTEM.

8.) From another installed VISTA copy the file usbstor.sys to Windows\system32\drivers to the USB
harddisk. The driver usbstor.sys is only in Vista Windows\system32\drivers, when you have connected a USB device to that another running Vista.

9.) Load the Hive SYSTEM.SAV as ottosav and do there the same changes as in 7.)
Export ottosav, make a rescue of SYSTEM.SAV and name ottosav SYSTEM.SAV.

10.) Go to Windows\inf folder. Set there in USB.inf , USBSTOR.inf and USBPORT.inf ONLY for
usbhub, usbehci, usbohci, usbuhci, usbstor

StartType = 0
LoadOrderGroup = System Reserved


To prevent the silly systemrestauration to set back USBSTOR start = 0 to start = 3 in registry
set also in Windows\System32\DriverStore\FileRepository\usbstor.inf_1d121e68\usbstor.inf
StartType = 0
LoadOrderGroup = System Reserved

This can only be done on a Fat 32 partition.



11.) Replug the USB harddisk to the Compi with the Vista DVD in, and start it once more.
The installation completes.

12.) When Vista starts the next time from the USB device, you get the last time BSOD. This is, because
the silly systemrestauration rewrites the registry entries, but only in SYSTEM, SYSTEM.SAV stays correct.
So you have to do once more step 7.)

13.) Vista boots to desktop.

Good luck
Dietmar

EDIT: 19. August 2006

Tutorial
(Version 8 for Windows Vista Build 5472 or newer or to those, where Vista says it cant be installed)

1.) Format your IDE or SATA harddisk with Partition Magic 8 with NTFS (about 20 GByte) and set it aktiv.

2.) Install Vista there as normal.

3.) Make a Bit by Bit copy of this partition with a Hexeditor ( I use Winhex 11.9) to your USB harddisk from
an external XP.
The 63 sectors with the MBR copy also. You do not need to format your USB device before, because all that
partitions information is still there by a Bit to Bit copy.

4.) Continue with step 7.) in the Tutorial 8 above. Delete Key MountedDevices on the USB Vista before first starting.


PS: Until now, I dont know a USB stick with 20 GByte...  
If the pagefile and the hibersys file are deleted,
you still have 8,5 GByte. But with deleting some pictures and videos, you reach 8 GByte, and there
are USB sticks today with 8GByte.
The pagefile is there as normal on the USB device and hibernation works.
The zebra-thing is gone. When you put it to another compi, Vista says that there is a wrong boot entry
or the hardware has changed  .
And: I succeed to "install" Vista with Fat32. If you copy the files and folders of the working vista
to a Fat32 partition, the bootloader for Fat32 has to be build new.
My Vista version is Beta 2, Build 5384 and Build 5472 each 32 bit.

Windows XP boots from USB

Author: Dietmar St&ouml;lting, 6. Juni 2006
dietmar.stoelting@t-online.de
Germany


Tutorial (Version 6)


Hi all,

at 13:00 I am starting with normal XP SP2 install on a brandnew 250 GB WD IDE harddisk, formatted with FAT32 and 8.0 GB partitions size on my AMD compi Siemens with D1607 motherboard.
This is the same hardware as for my VMware image.
I use an original XP SP2 installations CD.

Lets see  , how long I now need to build a generic XP SP2 from this install for USB or normal use.
I will edit this post, what I am doing.

Dietmar

EDIT1: In the meantime I format a WD160BB USB harddisk with Fat32 and 7.5 GB partitionssize by
Partition Magic 8.0 and set it aktiv. After that, I formatted it once more bút now from a working XP.
This is because I noticed differences in the bootsector. The XP formatting gives the best results for USB booting from a harddisk.
This is the best USB harddisk, that I know. It has an USB to IDE controller, that is recogniced through
booting by any compi. Because I have about 20 different USB harddisks, I know what I am writing.
Now I copy the modified ntdetect.com, the XP SP2 ntldr and boot.ini with an extra line to the USB harddisk.
Ok, all my compis show now the two lines from the boot.ini, meaning that the preparation of the USB
device is perfect.

Ok, the XP SP2 install (as normal) on the IDE harddisk is ready. I disable the pagefile.
This XP needs 1.3 GB space.
I dont install anything there (no extra drivers no extra programs)!!!

I connect my WD 160BB USB harddisk to this fresh XP SP2 simply for recognicing.


I copy and past all the files and folder of this new XP SP2 to a folder AMD64XPSP2Rhein from an other outstanding XP. (I use an USB XP hihi)
System Volume Information and Recycled copy not.

I disconnect my brandnew IDE harddisk with the new XP SP2 on it. I do not need it any more. It is only
therefor, if something went wrong with the XP SP2 image in AMD64XPSP2Rhein.

I connect my normal XP working harddisk to do all the needed things ( I need some programs ) with the image.

In AMD64XPSP2Rhein I change the ntdetect.com against the modified one.
I change the USB*.sys files against them from XP SP1.
I delete the driver intelppm.sys in Driver cache. This intelppm.sys has to be renamed in system32\drivers.
I also change there the USB*.sys files against them
from XP SP1 . I use winrar to unpack the sp2.cab file and CABPack to pack it again.
I delete in Registry the key CriticalDeviceDatabase and put the CriticalDeviceDatabase from Tutorial 3 for Windows Embedded in.
I put in inf folder the USB*.inf files with System Reserved and Start = 0 in it (see Tutorial3).
I also change in registry the entries for USB* as described in Tutorial 3.

I delete key MountedDevices. This step should not be done if you use a USB stick, because then it can happen, that your USB device gets the drive letter E:\ (for example).

Now I am copying the files and folders to the WD160BB USB harddisk.

ntldr, ntdetect.com and boot.ini copy not, because they are there and must not be overwritten!!!

I connect it to the AMD D1607 Siemens compi.

Yeahh, it boots at once to Desktop.

Now I change the IDE driver. Go to Device Manager and there IDE Controller.
Rightclick on Bus Master IDE-Controller. (Via or Intel or whatever)
Update driver, choose for advanced users, dont search, choose Standard IDE Controller. Thats all.
Now, Standard IDE Controller can be seen in the Device Managers.

Your generic XPSP2 should be ready. I test and compare it now with the VMware solution.
The whole process lasts only 2 hours.

Nice to hear from you
Dietmar.


Test on next compi without any modifikation of this image: Notebook Acer Extensa 4102WSXGA+
This is with Intel M processor: OK, solved. (WAAAAOOOHH)     
It asks for intelppm.sys hihi...but I do not give it  
I changed the IDE Controller there also against the generic one. All hardware is detected and installed.
For first only from original XP SP2 !!!
Reboot of the notebook: All ok.

Now, without any modification, connecting the USB WD160BB harddisk back to the first compi AMD D1607
This is the hardest test of all: OK, solved: no amnesia is seen, no driver was loaded, the USB drivers
in devicemanager seems to have been changed by a ghost...hihi


Test on next compi without any modification: Shuttle Barebone SB61G2 V3: OK, solved. Waaaaoooh...
I also change there the IDE controller against the Standard IDE controller.

Next Test: ASUS P4C800-E deluxe:OK, solved...Yippiiieheh, this here is TUTORIAL 6.
I also change there the IDE controller against the Standard IDE controller.

The task, how to build a generic XP SP2 image has been done.
I will test some other compis, but I think that they all work.

Nice to hear from you
Dietmar

EDIT2: You can rename the processor driver back to intelppm.sys in system32\drivers.
After that, restart your compi (must be an Intel machine for this) or you get BSOD.
Go to the registry to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Processor
and
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Intelppm .
Change in both the 'Start' value to '4'.
After this you have to rename in system32\drivers intelppm.sys again to iintelppm.sys
or you got BSOD when you boot next time on an AMD machine. Funny thing, but true.
You receive a yellow questionmark in the devicemanager for processor.
But this has no bad sideeffekt as far as I know.
Now, the always appearing message, that new hardware with missing intelppm.sys is found, is gone.

PS: Tutorial 7 will describe, how to do USB boot with a compi, that never heard anything about USB in his live.
I am in contact with Microsoft  .

EDIT3: I noticed, that sometimes intelppm.sys also stays in dllcache. You can delete it there
or do the following:  

I let intelppm.sys been installed. After that I disabled in the devicemanger the processors entry.
Then I go to WINDOWS\inf folder cpu.inf and set there starttype=4 for intelppm.sys and processr.sys.
I set Loadordergroup from... Extended Base... to ... Base also there.
Have a look in registry, whether there stands in Services also start = 4 and Group = Base
for intelppm and processr.
回复

使用道具 举报

3#
发表于 2007-6-28 09:51:48 | 只看该作者
优盘空间的空间不是问题,关键是速度,一般精简XP安装完也要400M~500M,最小安装也要200M,读写时间太长。如果不排除XPE,HK97的盘用到现在,可惜加密,不能编辑了。“重新封装状态关机”的想法太有创意。
回复

使用道具 举报

4#
发表于 2007-6-28 11:50:23 | 只看该作者
其实很多人都有这种想法
回复

使用道具 举报

5#
发表于 2007-6-28 13:01:01 | 只看该作者
什么时候来一个.安装驱动不用重新启动?
回复

使用道具 举报

6#
发表于 2007-6-28 13:05:15 | 只看该作者
想法不错。

问题的关键是这样处理,在不同机器上要运行要多长时间,因为要重新识别硬件,电源及SRS可以解决,那其它程序的驱动呢?全部重新驱动一次?

如果以启动维护为目的,那和PE比较又有多少优势呢?

其实以后将出现的半导体存储,使得我们完全可以带着系统出行。我们需要做的,就是多准备几套硬件方案。在XP启动时,就可以识别及自动添加驱动。
回复

使用道具 举报

7#
 楼主| 发表于 2007-6-28 16:32:00 | 只看该作者
我觉得加载驱动到不是最关键,问题是怎么解决微软的检验硬件更换过后不能进系统的问题,如果能不要重新包装可以做到那就方便多了。
回复

使用道具 举报

8#
发表于 2007-6-28 16:40:03 | 只看该作者
看看这个帖:

偶不是PE 偶是XP
http://bbs.deepin.org/read.php?tid=214976&fpage=2
回复

使用道具 举报

9#
发表于 2007-6-28 20:35:18 | 只看该作者
Vista只是Boot From USB。
关键还是那个WinPE2.0的支持。:lol
回复

使用道具 举报

10#
发表于 2007-6-28 20:55:48 | 只看该作者
我也在深度看了8楼提出的帖子。不过当时觉得很专业。没仔细研究。
回复

使用道具 举报

11#
发表于 2007-6-28 21:02:06 | 只看该作者
深度那个也不行的
换到硬件改动较大的机器上保证启动不起来
没有可移植性
回复

使用道具 举报

12#
发表于 2007-6-28 22:40:14 | 只看该作者
看不懂,学习中,谢谢了,
回复

使用道具 举报

13#
发表于 2007-6-28 22:46:08 | 只看该作者
ms已经有人做成功了
回复

使用道具 举报

14#
发表于 2008-4-11 19:18:53 | 只看该作者

将XP装到U盘上

请看这里
http://blog.chinaunix.net/u/13788/showart.php?id=307924
我是了  但不成功  但有人成功了
回复

使用道具 举报

15#
发表于 2008-4-11 19:26:30 | 只看该作者
怎么深度也要分级 这下麻烦了
回复

使用道具 举报

16#
发表于 2009-12-21 14:08:00 | 只看该作者

回复 #2 barton 的帖子

或许用得上  感谢分享
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2025-7-23 15:34

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表