|
不可笑,或许下面的资料对你有用
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ö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. |
|