Jump to content











Photo
- - - - -

Boot Windows 7 from USB hard disk


  • Please log in to reply
137 replies to this topic

#101 Marietto

Marietto

    Frequent Member

  • Advanced user
  • 268 posts
  • Location:Italy
  • Interests:Computers,movies,read/write,talking about philosophy and religion.
  •  
    Italy

Posted 24 September 2009 - 04:25 PM

@fxscrpt,in VMware there is not USB hub > USB composite device > USB Hub device connection,but if you install Windows 7 on the USB disk without a virtual machine (but directly on the disk),you have it. For this reason,I think that usbccgp should be set to System Bus Extender.

#102 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 24 September 2009 - 04:31 PM

12] installed usbbootfix.bat (altered "goto :fix" > "goto fix")


Why? :cheers:

The first one:

if "%1"=="fix" goto fix

already misses (wrongly :)) the colon.

The second one:

reg add HKLM\SYSTEM\CurrentControlSet\services\viaide /v Start /t REG_DWORD /d 0x0 /f
goto :fix

:fix
call :fixservice usbehci "Boot Bus Extender"

can be removed altogether.

Putting a colon in front of a label in a CALL or GOTO statement is perfectly "kosher" and is usually advised as it allows for quickly seeing that the target is a label.

jaclaz

#103 Marietto

Marietto

    Frequent Member

  • Advanced user
  • 268 posts
  • Location:Italy
  • Interests:Computers,movies,read/write,talking about philosophy and religion.
  •  
    Italy

Posted 24 September 2009 - 06:42 PM

It seems that we have been able to make a portable version of Windows 7. Now I ask to you...how much this solution is stable and good ? If I can use it for a lot of computers at the same time I will need to install a lot of drivers inside the registry and when there are a lot of drivers loaded,the registry in a short time will be corrupted and to find which kind of drivers are conflicting will be hard. Do you have a solution for this problem ?

#104 Marietto

Marietto

    Frequent Member

  • Advanced user
  • 268 posts
  • Location:Italy
  • Interests:Computers,movies,read/write,talking about philosophy and religion.
  •  
    Italy

Posted 24 September 2009 - 06:56 PM

another question :

cdob said to add inside the registry these keys :

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\pciide]
"Start"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\intelide]
"Start"=dword:00000000

and what about these ?

amdide ; aliide ; cmdide ; pci ; viaide ; ?

#105 karyonix

karyonix

    Frequent Member

  • Advanced user
  • 472 posts
  •  
    Thailand

Posted 25 September 2009 - 11:10 AM

@jaclaz
In 'CALL :label' command, colon is required.
In 'GOTO label' command, colon is not required. See 'GOTO /?'. It doesn't even say that 'GOTO :label' is acceptable.
I think GOTO :label look better. :) But sometime I want normal GOTO label command as seen in 'GOTO /?'.
I am indecisive. So you see both forms in my batch file.

@Marietto2009
It seems Windows 7 needs at least 1 IDE/SATA/SCSI/RAID controller during boot even if it is booting from USB!
If you want to boot a computer with VIA IDE controller, you need viaide Start=0.
If you want to boot a computer with Intel Matrix RAID, you need iastorv Start=0.
pciide is generic IDE controller driver.
If you want to boot a computer with IDE controller that doesn't require vender-specific driver, you need pciide Start=0.
If you want to boot many computers, set Start values for all their disk controller drivers to 0.

If too many drivers have Start=0, when you boot a computer that its BIOS uses USB 1.1, it will take a long time to load all drivers. It is better to skip drivers that you don't use.

#106 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 25 September 2009 - 11:24 AM

@jaclaz
In 'CALL :label' command, colon is required.
In 'GOTO label' command, colon is not required. See 'GOTO /?'. It doesn't even say that 'GOTO :label' is acceptable.
I think GOTO :label look better. :) But sometime I want normal GOTO label command as seen in 'GOTO /?'.
I am indecisive. So you see both forms in my batch file.


Yep. :cheers:
It is easier to read if the colon is always there, as I see it.
But there is no reason why it should be removed.

However you must admit that:

reg add HKLM\SYSTEM\CurrentControlSet\services\viaide /v Start /t REG_DWORD /d 0x0 /f
goto :fix

:fix
call :fixservice usbehci "Boot Bus Extender"


works EXACTLY as:

reg add HKLM\SYSTEM\CurrentControlSet\services\viaide /v Start /t REG_DWORD /d 0x0 /f
REM DO NOTHING

:fix
call :fixservice usbehci "Boot Bus Extender"

and as:

reg add HKLM\SYSTEM\CurrentControlSet\services\viaide /v Start /t REG_DWORD /d 0x0 /f

:fix
call :fixservice usbehci "Boot Bus Extender"


:cheers:

jaclaz

#107 karyonix

karyonix

    Frequent Member

  • Advanced user
  • 472 posts
  •  
    Thailand

Posted 25 September 2009 - 12:10 PM

@jaclaz
OK. Previously, install subroutine is below fix subroutine. After they are rearranged, some GOTO commands become redundant. They can be removed.
I changed usbbootfix.bat in post 74 as you suggested.

#108 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 25 September 2009 - 12:24 PM

@jaclaz
OK. Previously, install subroutine is below fix subroutine. After they are rearranged, some GOTO commands become redundant. They can be removed.
I changed usbbootfix.bat in post 74 as you suggested.


BTW, your opinion is wanted here:
http://www.boot-land...?...ic=9183&hl=

About the present thread, what if you start a new thread and post just once a placeholder?

I will edit your post, copying in it integrally post #74
http://www.boot-land...?...=9051&st=73

@Marietto2009
If you do the same, I will do the same for your post #71
http://www.boot-land...?...=9051&st=70

@fxscrpt
If you do the same, I will do the same for your post #98
http://www.boot-land...?...=9051&st=97

I am afraid that those useful methods will get lost in this thread by the overlapping of the methods and by the OT and whatnot caused by the development process, or however a newcomer cannot but get confused by the different ways to make the USB install.

Since you will be the Author of the post, you will be able to update and refine it when needed.

Something like:
[Tutorial 1] Boot Windows 7 from USB device by Marietto2009
[Tutorial 2] Boot Windows 7 from USB device by karyonix
[Tutorial 3] Boot Windows 7 from USB device by fxscrpt

:)

jaclaz

#109 Marietto

Marietto

    Frequent Member

  • Advanced user
  • 268 posts
  • Location:Italy
  • Interests:Computers,movies,read/write,talking about philosophy and religion.
  •  
    Italy

Posted 25 September 2009 - 12:25 PM

@karyonix :

what happens if I want to boot a computer with IDE controller that requires a vender-specific driver and I don't set Start values to 0 for its specific disk controller ? It reboots ?

@jaclaz :

good idea,because I'm doing a lot of experiments,I will make changes.

#110 karyonix

karyonix

    Frequent Member

  • Advanced user
  • 472 posts
  •  
    Thailand

Posted 25 September 2009 - 04:40 PM

@Marietto2009
Probably BSOD 0x0000007B and reboot.

Some IDE controller that normally use vender-specific driver may be compatible with pciide.
In that case, if we delete its PCI#VEN_xxxx&DEV_xxxx subkey in CriticalDeviceDatabase, it may match PCI#CC_0101 (Service=pciide) and be able to work.

#111 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 25 September 2009 - 05:17 PM

I am not an expert at this, but I cannot remember IDE controllers/southbridges/whatever that were not "usable" with normal "Standard Dual Channel PCI IDE Controller". :(

The problem has historically been with SCSI devices, and later with SATA ones.

From my Dinosaur point of view :cheers: the NTBOOTDD.SYS approach usually worked all right at the time.

Anyone know if something similar to it can be used with Vista/7? :)

:cheers:

jaclaz

#112 karyonix

karyonix

    Frequent Member

  • Advanced user
  • 472 posts
  •  
    Thailand

Posted 25 September 2009 - 05:58 PM

I don't know each PCI#VEN_xxxx&DEV_xxxx is IDE or SATA or SCSI or RAID controller or other device.
Should we delete all of them, leaving only generic IDs ?

#113 Marietto

Marietto

    Frequent Member

  • Advanced user
  • 268 posts
  • Location:Italy
  • Interests:Computers,movies,read/write,talking about philosophy and religion.
  •  
    Italy

Posted 25 September 2009 - 07:09 PM

How can I set Start values to 0 for specific disk controllers if I want to modify the original USB configuration files (usb.inf ; usbport.inf ; usbstor.inf) of Windows 7 ?

#114 fxscrpt

fxscrpt

    Frequent Member

  • .script developer
  • 328 posts
  •  
    Germany

Posted 25 September 2009 - 07:55 PM

How can I set Start values to 0 for specific disk controllers if I want to modify the original USB configuration files (usb.inf ; usbport.inf ; usbstor.inf) of Windows 7 ?

please try this (not tested, too busy...):

search for sections like this:
[USBSTOR_CBI_NR.NT]
CopyFiles=USBSTOR.CopyList
AddReg=USBSTOR_CBI.AddReg,USBSTOR_NR.AddReg

and append
AddReg=USBSTOR_CBI.AddReg,USBSTOR_NR.AddReg,extra.AddReg

create new section:
[extra.AddReg]
HKLM,System\blabla\...\intelide,Start,0x10001,0x00000000


@fxscrpt
If you do the same, I will do the same for your post #98
http://www.boot-land...?...=9051&st=97

yes, :D

:cheers:
Peter

#115 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 25 September 2009 - 08:23 PM

Let's check the math :cheers:


Question asked: 1

About the present thread, what if you start a new thread and post just once a placeholder?


People asked to: 3

@karyonix
@Marietto2009
@fxscrpt


Aye aswers: 3



Number of new threads created: 0

:D

jaclaz

#116 Marietto

Marietto

    Frequent Member

  • Advanced user
  • 268 posts
  • Location:Italy
  • Interests:Computers,movies,read/write,talking about philosophy and religion.
  •  
    Italy

Posted 25 September 2009 - 08:33 PM

ok. I can be the first. How should be the name of the new thread created by me ? Boot Windows 7 from USB hard disk tutorial by Marietto2009 is good ?

#117 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 25 September 2009 - 09:33 PM

ok. I can be the first. How should be the name of the new thread created by me ? Boot Windows 7 from USB hard disk tutorial by Marietto2009 is good ?


Fine. :cheers:
But write it like this:

[Tutorial] Boot Windows 7 from USB hard disk by Marietto2009


You can also do everything by yourself, simply press the Edit button of your post #71, select everything and copy it.
Paste it in the new thread starting post, edit/fix as you like it.

:D

jaclaz

#118 Marietto

Marietto

    Frequent Member

  • Advanced user
  • 268 posts
  • Location:Italy
  • Interests:Computers,movies,read/write,talking about philosophy and religion.
  •  
    Italy

Posted 27 September 2009 - 12:08 AM

cdob,here --> http://www.boot-land...?...9051&st=60# says that we should install the usbbootwatcher service,but instead to run usbbootwatcher.exe /prepare e:\windows\system32,isn't better to add the registry entries directly inside the original usbstor.inf file ? And again,he says to import these lines to the registry :

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\UsbBootWatcherService]
"Type"=dword:00000010
"Start"=dword:00000002
"ErrorControl"=dword:00000000
"ImagePath"=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,33,\
32,5c,55,73,62,42,6f,6f,74,57,61,74,63,68,65,72,2e,65,78,65,00
"DisplayName"="Usb Boot Watcher Service"
"ObjectName"="LocalSystem"

but I see that there is already something like this inside the registry,with one only difference,that "DisplayName"="UsbBootWatcherService" instead to be "Usb Boot Watcher Service"

To add the entries inside the original usbstor.inf file I added this line :

AddReg=USBSTOR_CBI.AddReg,USBSTOR_NR.AddReg,extra.AddReg

to this block :

[USBSTOR_CBI_NR.NT]
CopyFiles=USBSTOR.CopyList
AddReg=USBSTOR_CBI.AddReg,USBSTOR_NR.AddReg

and then I created this section under the Registry Sections :

[extra.AddReg]

now I want to add these lines :

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\UsbBootWatcherService]
"Type"=dword:00000010
"Start"=dword:00000002
"ErrorControl"=dword:00000000
"ImagePath"=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,33,\
32,5c,55,73,62,42,6f,6f,74,57,61,74,63,68,65,72,2e,65,78,65,00
"DisplayName"="Usb Boot Watcher Service"
"ObjectName"="LocalSystem"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SafeBoot\Minimal\UsbBootWatcherService]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SafeBoot\Network\UsbBootWatcherService]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\usbehci]
"Start"=dword:00000000
"Type"=dword:00000001
"ErrorControl"=dword:00000001
"Group"="Boot Bus Extender"
"Tag"=dword:00000012

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\usbohci]
"Start"=dword:00000000
"Type"=dword:00000001
"ErrorControl"=dword:00000001
"Group"="Boot Bus Extender"
"Tag"=dword: ?

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\usbuhci]
"Start"=dword:00000000
"Type"=dword:00000001
"ErrorControl"=dword:00000001
"Group"="Boot Bus Extender"
"Tag"=dword:00000011

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\usbhub]
"Start"=dword:00000000
"Type"=dword:00000001
"ErrorControl"=dword:00000001
"Group"="System Bus Extender"
"Tag"=dword:00000006

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\USBSTOR]
"Start"=dword:00000000
"Type"=dword:00000001
"ErrorControl"=dword:00000001
"Group"="SCSI miniport"
"Tag"=dword:00000010

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\usbccgp]
"Start"=dword:00000000
"Type"=dword:00000001
"ErrorControl"=dword:00000001
"Group"="System Bus Extender"
"Tag"=dword:00000014

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\USBSTOR#Disk]
"ClassGUID"="{4d36e967-e325-11ce-bfc1-08002be10318}"
"Service"="disk"

under the [extra.AddReg] section,can you help me ? Thanks.

#119 cdob

cdob

    Gold Member

  • Expert
  • 1449 posts

Posted 27 September 2009 - 09:12 PM

I don't know each PCI#VEN_xxxx&DEV_xxxx is IDE or SATA or SCSI or RAID controller or other device.
Should we delete all of them, leaving only generic IDs ?

"Standard Dual Channel PCI IDE Controller" pciide.sys should support all IDE controllers.

Addional driver add special featurers, e.g. intelide.sys support hotplug at special hardware.

A basic approach:
enable pci\cc_0101 and pciide: set pciide service to start=0.
Disable all other IDE controllers by default.
[Custom.DelReg];aliide, amdide, cmdide. intelide, viaideHKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_1022&DEV_7409"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_1022&DEV_7411"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_1022&DEV_7441"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_1022&DEV_7469"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_1095&DEV_0646&REV_05"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_1095&DEV_0646&REV_07"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_1095&DEV_0648"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_1095&DEV_0649"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_10B9&DEV_5229"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_1106&DEV_0571"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_1106&DEV_0581&CC_0101"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_1106&DEV_0591&CC_0101"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_1106&DEV_3149&CC_0101"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_1106&DEV_3164&CC_0101"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_1106&DEV_3349&CC_0101"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_1106&DEV_5287"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_1106&DEV_5324"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_1106&DEV_5337"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_1222"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_1230"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_2411"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_2421"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_244A"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_244B"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_248A"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_248B"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_24C1"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_24CA"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_24CB"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_24D1"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_24DB"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_25A2"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_25A3"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_2651&CC_0101"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_2652&CC_0101"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_2653&CC_0101"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_266F"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_27C0"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_27C4"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_27DF"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_2820"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_2825"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_2828"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_2850"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_7010"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_7111"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_7199"HKLM,"SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_8086&DEV_7601"
Windows boot at other IDE hardware using pccide.sys. PNP may load speficic drivers. Keep other AHIC, RAID or SCSI CriticalDeviceDatabase as a reminder.Set service start=0 if required.Again, this is one approach only. Of course there are different solutions.

cdob,here --> http://www.boot-land.net/forums/index.php?...9051&st=60# says that we should install the usbbootwatcher service,but instead to run usbbootwatcher.exe /prepare e:\windows\system32

No, i didn't suggest usbbootwatcher.exe /prepare. Neither do I suggest usbbootwatcher.exe /install. This dosn't work reliable. I suggested a registry add.

isn't better to add the registry entries directly inside the original usbstor.inf file ?

This is another approach, seems to be half broken.That's a simple solution, may fail a special conditions: e.g. insert a pcmcia USB controller to a laptop. Contrary there is no USB BIOS boot support.
Or add a USB multi media keyboard.

As far as I know, usbccgp.sys is used at some USB multi media keyboards.
I doubt usbccgp.sys is importand at USB boot.

I'll investigate the request.


Added:
There is a Vista / w2k8 installer USB HDD enabler
http://www.911cd.net...showtopic=22497
No idea, if this works at win7.

#120 Marietto

Marietto

    Frequent Member

  • Advanced user
  • 268 posts
  • Location:Italy
  • Interests:Computers,movies,read/write,talking about philosophy and religion.
  •  
    Italy

Posted 30 September 2009 - 10:59 PM

Thanks to cdob,I tried a new approach,but it's not working. I don't know why. Any suggestion is appreciated :

Installed Windows 7 directly to USB hard disk

1] Copied Windows 7 files from DVD source to "(hd0,0)\Win7" directory

2]
imagex /mountrw C:\win7\sources\install.wim 5 C:\7

3] gone into C:\7\windows\inf and edited files : usb.inf,usbport.inf and usbstor.inf (modified files are attached)

4] copied UsbBootWatcher.exe and UsbBootWatcher.conf in c:\7\windows\inf and in c:\7\windows\system32

UsbBootWatcher.conf :

[usbstor]
Start@REG_DWORD=0
Group@REG_SZ="SCSI miniport"
[usbehci]
Start@REG_DWORD=0
Group@REG_SZ="Boot Bus Extender"
[usbohci]
Start@REG_DWORD=0
Group@REG_SZ="Boot Bus Extender"
[usbuhci]
Start@REG_DWORD=0
Group@REG_SZ="Boot Bus Extender"
[usbhub]
Start@REG_DWORD=0
Group@REG_SZ="System Bus Extender"
[usbccgp]
Start@REG_DWORD=0
Group@REG_SZ="System Bus Extender"

5]
imagex /unmount /commit C:\7

6] Installed Windows 7 to a SATA disk until the first reboot

7] Cloned Windows 7 from SATA disk to USB disk

8] Continued and finished installation on USB disk

It works only on the computer where it has been installed the first time. As soon as the computer is started I checked which modifications have been applied and I seen that usb.inf,usbport.inf and usbstor.inf have been changed,but registry still contains the default values.

update :

Tried the Vista / w2k8 installer USB HDD enabler : didn't work.

Attached Files



#121 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 01 October 2009 - 07:58 AM

Tried the Vista / w2k8 installer USB HDD enabler : didn't work.


Just for the record the thingy has been posted here:
http://www.911cd.net...showtopic=22497
but there not AFAIK details on how it works (when it works) and WHAT it does exactly.

:whistling:

jaclaz

#122 cdob

cdob

    Gold Member

  • Expert
  • 1449 posts

Posted 01 October 2009 - 05:38 PM

I tried a new approach,but it's not working.

Why do you insist on editing Windows 7 source files?
There are lot of USB files, e.g. at System32\DriverStore\FileRepository and winsxs.
Edit ALL registry system files and ALL usb*.inf files.
If this works, UsbBootWatcher is not required anymore.

What about boot default files and load edited USB drivers?
This help installation at current connected hardware, that's attach USB drive too.
Windows setup restore original usb inf files at further installation.
UsbBootWatcher is required that way.

#123 Marietto

Marietto

    Frequent Member

  • Advanced user
  • 268 posts
  • Location:Italy
  • Interests:Computers,movies,read/write,talking about philosophy and religion.
  •  
    Italy

Posted 03 October 2009 - 01:31 AM

Some questions :

1) I tried to boot Windows 7 from the USB disk on the HTC Shift. It booted the first time,but after updating drivers I got the error 0x0000007b (0x80786A90,0xc000000e,0x00000000,0x00000000),why ? It happened only this time.

@KARYONIX :

2) I moved my Windows Vista installation from the SATA disk running on the AMD cpu on the USB disk running on INTEL cpu following the Karyonix tutorial. At the first boot it worked and then I updated all the drivers required. When I restarted the computer,it didn't work anymore :

error 0x0000007b (0x80786A90,0xc000000e,0x00000000,0x00000000)

update : usbbootwatcher /prepare fixed the issue

@CDOB :

3) Can you explain to me because your version of usbstor.inf with the usbbootwatcher service added,here doesn't works ? This is what I did :

a) mounted install.wim

b) copied usbstor.sys,usbbootwatcher.conf and usbbootwatcher.exe in \windows\inf

c) copied usbbootwatcher.conf and usb usbbootwatcher.exe in \windows\system32

d) umounted install.wim with /rw

e) started a new virtual machine with vmware

f) checked that every usb configuration file had been loaded edited inside \windows\inf (usb.inf ; usbport.inf ; usbstor.inf),everything is ok.

g) inside the windows registry I see no changes...but why the usbbootwatcher service is not added at the first Windows 7 boot ?

#124 Marietto

Marietto

    Frequent Member

  • Advanced user
  • 268 posts
  • Location:Italy
  • Interests:Computers,movies,read/write,talking about philosophy and religion.
  •  
    Italy

Posted 14 October 2009 - 04:41 PM

I tried to boot Windows 7 on the notebook Acer Aspire 5100,following the Karyonix tutorial,but it did not work. I attached the report did with Everest.

The error that happens is : 0x000007b (0x80d86b58,0xc0000034)

http://www.filefacto...dc/n/Report_txt

#125 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 14 October 2009 - 05:32 PM

The error that happens is : 0x000007b (0x80d86b58,0xc0000034)

0x0000007b is "Unmountable boot device", always connected with Mass Storage Device.

jaclaz




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users