Jump to content











Photo
- - - - -

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


  • Please log in to reply
35 replies to this topic

#1 Marietto

Marietto

    Frequent Member

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

Posted 25 September 2009 - 09:46 PM

UPDATED VERSION ON 26/04/2010 :

1] Create the Windows PE 3.0 image file and burn it to a CD

2] Boot the computer with the Windows PE 3.0 CD

3] Remove the Windows PE 3.0 CD and insert the Windows 7 32 bit DVD.

4] Issue the following commands from the Windows PE 3.0 envinronment :

X:\Windows\System32\wpeinit
X:\Windows\System32\c:
c:\> md win7
d:
d:\> xcopy *.* /s c:\win7
c:
c:\> md 7
c:\imagex /mountrw c:\win7\sources\install.wim 5 c:\7
X:
X:\Windows\System32\notepad

and edit files located on c:\7\Windows\inf :

usb.inf

CODE

;[SignatureAttributes]
;usbccgp.sys=SignatureAttributes.DRM
;usbhub.sys=SignatureAttributes.DRM

[StandardHub.AddService]
DisplayName = %StandardHub.SvcDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
;StartType = 3 ; SERVICE_DEMAND_START
StartType = 0 ; SERVICE_BOOT_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\usbhub.sys
;LoadOrderGroup = Base
LoadOrderGroup = System Bus Extender

usbport.inf

CODE

[ControlFlags]
;BasicDriverOk = *
;ExcludeFromSelect = *

;[SignatureAttributes]
;usbehci.sys=SignatureAttributes.DRM
;usbhub.sys=SignatureAttributes.DRM
;usbohci.sys=SignatureAttributes.DRM
;usbport.sys=SignatureAttributes.DRM
;usbuhci.sys=SignatureAttributes.DRM

;[SignatureAttributes.DRM]
;DRMLevel=1300

[EHCI.AddReg.NT]
HKR,,EnumPropPages32,,"usbui.dll,USBControllerPropPageProvider"
HKR,,Controller,1,01
;HKLM,System\CurrentControlSet\Services\usbehci,BootFlags,0x00010003,4

[EHCI.AddService]
DisplayName = %EHCIMP.SvcDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
;StartType = 3 ; SERVICE_DEMAND_START
StartType = 0 ; SERVICE_BOOT_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\usbehci.sys
;LoadOrderGroup = Base
LoadOrderGroup = Boot Bus Extender

[OHCI.AddReg.NT]
HKR,,EnumPropPages32,,"usbui.dll,USBControllerPropPageProvider"
HKR,,Controller,1,01
;HKLM,System\CurrentControlSet\Services\usbohci,BootFlags,0x00010003,4

[OHCI.AddService]
DisplayName = %OHCIMP.SvcDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
;StartType = 3 ; SERVICE_DEMAND_START
StartType = 0 ; SERVICE_BOOT_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\usbohci.sys
;LoadOrderGroup = Base
LoadOrderGroup = Boot Bus Extender

[UHCI.AddReg.NT]
HKR,,EnumPropPages32,,"usbui.dll,USBControllerPropPageProvider"
HKR,,Controller,1,01
;HKLM,System\CurrentControlSet\Services\usbuhci,BootFlags,0x00010003,4

[UHCI.AddService]
DisplayName = %UHCIMP.SvcDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
;StartType = 3 ; SERVICE_DEMAND_START
StartType = 0 ; SERVICE_BOOT_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\usbuhci.sys
;LoadOrderGroup = Base
LoadOrderGroup = Boot Bus Extender

[ROOTHUB.AddReg.NT]
HKR,,EnumPropPages32,,"usbui.dll,USBHubPropPageProvider"
;HKLM,System\CurrentControlSet\Services\usbhub,BootFlags,0x00010003,4

[ROOTHUB.AddService]
DisplayName = %ROOTHUB.SvcDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
;StartType = 3 ; SERVICE_DEMAND_START
StartType = 0 ; SERVICE_BOOT_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\usbhub.sys
;LoadOrderGroup = Base
LoadOrderGroup = System Bus Extender

usbstor.inf

CODE

[USBSTOR.AddService]
DisplayName = %USBSTOR.SvcDesc%
ServiceType = 1
;StartType = 3
StartType = 0
ErrorControl = 1
ServiceBinary = %12%\USBSTOR.SYS
;AddReg=DeviceSpecific
LoadOrderGroup = System Bus Extender

X:\Windows\System32\imagex /unmount /commit C:\7

5] Shutdown the computer running Windows PE 3.0,run a working version of Windows 7 and burn the whole content of the folder C:\win7 to a CD.

6] Install Windows 7 (with the modified files) on a SATA disk.

7] Once it has been installed,copy UsbBootWatcher.conf and UsbBootWatcher.exe to \Windows\System32

8] Import this file into the registry :

REGEDIT4

[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\pciide]
"Start"=dword:00000000

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

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

Now you have installed Windows 7 on a SATA disk. If you want to install it on a USB disk,it is enough to clone eveything there. If you want to install it on a VHD image file too,continue to read.

9] Shut down your computer and boot it again with the Windows PE 3.0 CD

10] Issue the following commands to create a 16GB VHD image file :

a) diskpart
b) create vdisk file=C:\win7.vhd type=fixed maximum=16000
c) select vdisk file=C:\win7.vhd
d) attach vdisk
e) exit


11] Install Windows 7 on the Unallocated Space.

12] When your computer reboots,remove the Windows 7 DVD and let the installation of Windows 7 (running from the VHD image file),completes.

13] When it is completed,boot it and when it is fully loaded,copy UsbBootWatcher.conf and UsbBootWatcher.exe to \Windows\System32

14] Import this file into the registry :

REGEDIT4

[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\pciide]
"Start"=dword:00000000

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

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

15] Clone everything to a USB disk.

OLD VERSION :

This is what I did :

1] Created the Windows PE 3.0 image file :

a) imagex /mountrw c:\winpe\winpe.wim 1 c:\winpe\mount

b) xcopy "c:\Program Files\Windows AIK\Tools\Servicing" c:\winpe\mount\Windows /s

c) xcopy "c:\Program Files\Windows AIK\Tools\x86" c:\winpe\mount\Windows /s /y

d) imagex /unmount c:\winpe\mount /commit

e) copy c:\winpe\winpe.wim c:\winpe\ISO\sources\boot.wim /y

f) oscdimg -n -bc:\winpe\etfsboot.com c:\winpe\ISO c:\winpe\winpe.iso


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

3] Booted into WinPE and identified (hd0,0) as C: drive

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

3.2] gone into C:\7\windows\inf and edited files :

usb.inf

[codebox];[SignatureAttributes] ;usbccgp.sys=SignatureAttributes.DRM ;usbhub.sys=SignatureAttributes.DRM [StandardHub.AddService] DisplayName = %StandardHub.SvcDesc% ServiceType = 1 ; SERVICE_KERNEL_DRIVER ;StartType = 3 ; SERVICE_DEMAND_START StartType = 0 ; SERVICE_BOOT_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL ServiceBinary = %12%\usbhub.sys ;LoadOrderGroup = Base LoadOrderGroup = System Bus Extender[/codebox] usbport.inf [codebox] [ControlFlags] ;BasicDriverOk = * ;ExcludeFromSelect = * ;[SignatureAttributes] ;usbehci.sys=SignatureAttributes.DRM ;usbhub.sys=SignatureAttributes.DRM ;usbohci.sys=SignatureAttributes.DRM ;usbport.sys=SignatureAttributes.DRM ;usbuhci.sys=SignatureAttributes.DRM ;[SignatureAttributes.DRM] ;DRMLevel=1300 [EHCI.AddReg.NT] HKR,,EnumPropPages32,,"usbui.dll,USBControllerPropPageProvider" HKR,,Controller,1,01 ;HKLM,System\CurrentControlSet\Services\usbehci,BootFlags,0x00010003,4 [EHCI.AddService] DisplayName = %EHCIMP.SvcDesc% ServiceType = 1 ; SERVICE_KERNEL_DRIVER ;StartType = 3 ; SERVICE_DEMAND_START StartType = 0 ; SERVICE_BOOT_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL ServiceBinary = %12%\usbehci.sys ;LoadOrderGroup = Base LoadOrderGroup = Boot Bus Extender [OHCI.AddReg.NT] HKR,,EnumPropPages32,,"usbui.dll,USBControllerPropPageProvider" HKR,,Controller,1,01 ;HKLM,System\CurrentControlSet\Services\usbohci,BootFlags,0x00010003,4 [OHCI.AddService] DisplayName = %OHCIMP.SvcDesc% ServiceType = 1 ; SERVICE_KERNEL_DRIVER ;StartType = 3 ; SERVICE_DEMAND_START StartType = 0 ; SERVICE_BOOT_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL ServiceBinary = %12%\usbohci.sys ;LoadOrderGroup = Base LoadOrderGroup = Boot Bus Extender [UHCI.AddReg.NT] HKR,,EnumPropPages32,,"usbui.dll,USBControllerPropPageProvider" HKR,,Controller,1,01 ;HKLM,System\CurrentControlSet\Services\usbuhci,BootFlags,0x00010003,4 [UHCI.AddService] DisplayName = %UHCIMP.SvcDesc% ServiceType = 1 ; SERVICE_KERNEL_DRIVER ;StartType = 3 ; SERVICE_DEMAND_START StartType = 0 ; SERVICE_BOOT_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL ServiceBinary = %12%\usbuhci.sys ;LoadOrderGroup = Base LoadOrderGroup = Boot Bus Extender [ROOTHUB.AddReg.NT] HKR,,EnumPropPages32,,"usbui.dll,USBHubPropPageProvider" ;HKLM,System\CurrentControlSet\Services\usbhub,BootFlags,0x00010003,4 [ROOTHUB.AddService] DisplayName = %ROOTHUB.SvcDesc% ServiceType = 1 ; SERVICE_KERNEL_DRIVER ;StartType = 3 ; SERVICE_DEMAND_START StartType = 0 ; SERVICE_BOOT_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL ServiceBinary = %12%\usbhub.sys ;LoadOrderGroup = Base LoadOrderGroup = System Bus Extender [/codebox] usbstor.inf [codebox][USBSTOR.AddService] DisplayName = %USBSTOR.SvcDesc% ServiceType = 1 ;StartType = 3 StartType = 0 ErrorControl = 1 ServiceBinary = %12%\USBSTOR.SYS LoadOrderGroup = System Bus Extender[/codebox] 3.3] imagex /unmount /commit C:\7 4] Started diskpart and entered the following commands to create a 16GB .vhd file : a) create vdisk file=C:\win7.vhd type=fixed maximum=16000 b) select vdisk file=C:\win7.vhd c) attach vdisk d) exit 5] Ran the Windows 7 setup file on "C:\Win7\setup.exe" (from directory Win7 on disk (hd0,0)). 6] Installed Windows on the Unallocated Space until first reboot. 7] During the installation,the BCD store has been automatically created on the active partition on (hd0,0). I booted Windows 7 from it and the installation has been completed. 8] Booted the VHD image file from Sata disk and imported this file into registry : [code]REGEDIT4 [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\pciide] "Start"=dword:00000000 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\intelide] "Start"=dword:00000000[/code]

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

9] Enabled Auto Reboot On System Crash

10] Booted WIndows 7 from Sata disk and copied win7.VHD into USB disk

11] Booted Windows 7 on USB disk and created entries to boot the VHD image file :

c:\windows\system32>bcdedit /copy {current} /d "Boot From VHD"

The entry was succesfully copied to {d1c322bc-0f4e-11de-a271-8c2cd1e4be0a}

c:\windows\system32>bcdedit /set {d1c322bc-0f4e-11de-a271-8c2cd1e4be0a} device vhd=[C:]\win7.vhd

c:\windows\system32>bcdedit /set {d1c322bc-0f4e-11de-a271-8c2cd1e4be0a} osdevice vhd=[C:]\win7.vhd

c:\windows\system32>bcdedit /set {d1c322bc-0f4e-11de-a271-8c2cd1e4be0a} detecthal on

c:\windows\system32>bcdedit /set {d1c322bc-0f4e-11de-a271-8c2cd1e4be0a} description "VHD Boot"

Edited by Marietto2009, 13 October 2010 - 08:35 AM.

  • Nuno Brito likes this

#2 operat0r

operat0r

    Newbie

  • Members
  • 20 posts
  •  
    United States

Posted 16 December 2009 - 09:58 PM

I am having issues with this step ...do I need to run this booted from the ISO c:\winpe\winpe.iso ???!?

I did extract the win7 iso from a program I will try burning the ISO then comparing the difference maybe MagicISO Maker 5.5 Portable.exe did not extract it properly.

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

Windows PE Tools Command Prompt
Updating path to include peimg, oscdimg, imagex



   C:\Program Files\Windows AIK\Tools\PETools\

   C:\Program Files\Windows AIK\Tools\PETools\..\x86





C:\Program Files\Windows AIK\Tools\PETools>imagex /mountrw C:\win7\sources\insta

ll.wim 5 C:\7



ImageX Tool for Windows

Copyright (C) Microsoft Corp. 1981-2005. All rights reserved.







The data is invalid.



C:\Program Files\Windows AIK\Tools\PETools>


#3 Marietto

Marietto

    Frequent Member

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

Posted 17 December 2009 - 07:39 AM

This is what you have to do :

1] Boot any version of Windows and copy Windows 7 files from DVD source to C:\Win7 directory

2] Burn the WinPE.iso image to a cd

3] Boot into WinPE from the cd just burned

4] Write this command : imagex /mountrw C:\win7\sources\install.wim 5 C:\7

#4 operat0r

operat0r

    Newbie

  • Members
  • 20 posts
  •  
    United States

Posted 17 December 2009 - 06:39 PM

6] Installed Windows on the Unallocated Space until first reboot.
install on what ?? create a new partition on the MAIN HDD and install windows on that ( two copies of windows on one HDD one using the updated inf's ? )

or install windows to the USB stick ? the use of (hd0,0) and "Sata disk" im at a loss as to whats what the hd0,0 is?? the main drive? "Sata disk" is a second HDD or ?


11] Booted Windows 7 on USB disk and created entries to boot the VHD image file
resolving the above may answer my question but:
how do you boot windows 7 on usb disk if it was never installed on USB disk ? or do I install it to usb disk using the updated inf setup?
* this vhd file is read write IE a REAL install of windows on the USB stick running from a VHD file that can be updated etc ?

BTW this VHD stuff seems really cool !!! can you create a XP image in the same way so I could replace my current usboot.org solution with a single VHD file ?

#5 Marietto

Marietto

    Frequent Member

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

Posted 17 December 2009 - 10:28 PM

hd (0,0) = SATA disk with Windows 7 already installed

Windows 7 should be installed on the VHD file

when the computer has rebooted,you will see a new entry on the MBR of the hd (0,0) SATA disk,(Windows 7 running from the VHD image file). You have to boot and continue the installation of Windows 7 by choosing it.

#6 operat0r

operat0r

    Newbie

  • Members
  • 20 posts
  •  
    United States

Posted 18 December 2009 - 02:10 AM

ok so after I do the attach vdisk I should be able to see a new place to install windows 7
then reboot and I should see a new entry to boot from the VHD file make the other changes ok I get that much

11] Booted Windows 7 on USB disk and created entries to boot the VHD image file :

Not sure on this step .... Ok so copy the VHD file to the usb stick ( say its 16gig NFTS ) but how do I tell it to boot from usb and also use the VHD file ? also I noticed the boot stuff for windows7 is not the NTDLR stuff ? I googled a bit I guess I need more info on howto get a usb stick to boot a VHD file ?

Again thank you so much for your time !! im SO CLOSE :D

I also may include driverpacks.net ( unofficial driver packs for x86 and 64 NIC and WIFI )
:rolleyes:

#7 Marietto

Marietto

    Frequent Member

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

Posted 18 December 2009 - 12:02 PM

clone the \ partition of the SATA disk (where you saved the win7.vhd image file) to the USB disk. I used Macrium Reflect Free Edition.

#8 operat0r

operat0r

    Newbie

  • Members
  • 20 posts
  •  
    United States

Posted 18 December 2009 - 07:08 PM

im ok upto step 5] I think ;/ I have the fixed inf files and the vhd mounted ( in normal mode but not mounted via winpe.iso boot ..

* I am unable to do much on the winpe.iso ... when I run diskpart there is no vdisk support etc .. do I have to set up the vdisk/install via winpe ? if so thats a problem because create does not list vdisk ..
* do I need to run the " C:\Windows\System32\cmd.exe /k "C:\Program Files\Windows AIK\Tools\PETools\pesetenv.cmd" " some how from winpe or should the diskpart /mount just work ? I also tried running the diskpart.exe in c:\windows\system32\ but it just crashes :rolleyes:

* wont let me install win7 it on a vdisk ( booted from the main HDD )


5] Ran the Windows 7 setup file on "C:\Win7\setup.exe" (from directory Win7 on disk (hd0,0)).
6] Installed Windows on the Unallocated Space until first reboot.
from the booted winpe.iso install windows to the mounted VHD file right ?
again winpe.iso wont let me create vdisk etc ..so this would be a problem

7] During the installation,the BCD store has been automatically created on the active partition on (hd0,0). I booted Windows 7 from it and the installation has been completed.
8] Booted the VHD image file from Sata disk and imported this file into registry :
so on reboot from what I can tell it boots to the last installed disk in our case the VHD file right ? 2nd choice would be the main real drive

10] Booted WIndows 7 from Sata disk and copied win7.VHD into USB disk
ok stil not sure how the usb is pose to be setup ... you said "clone the \ partition of the SATA disk" to usb so while its mounted clone the vdisk mounted partiton to the usb stick ?

I tried to push the fixed image / reg patches etc to the usb stick.
* install windows on 2nd part on the main disk
* booted to it ( with the first partition being the active BOOT partition ) did all the reg patches checked the inf etc
* copyied the mbr to the usb dd if=/dev/hda of=/dev/sda bs=512 count=1
but no luck looking into the \boot\bcd file if I just need to edit that manually and set it to boot to 0,0 dun know ...

#9 Marietto

Marietto

    Frequent Member

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

Posted 20 December 2009 - 06:30 PM

Restart everything from the beginning. I will follow you step by step. The first thing is to do a normal installation of Windows 7 on a SATA disk.

#10 operat0r

operat0r

    Newbie

  • Members
  • 20 posts
  •  
    United States

Posted 21 December 2009 - 01:24 PM

I am using VMware I got plain install of windows 7 on IDE 0:0 ;)

#11 Marietto

Marietto

    Frequent Member

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

Posted 21 December 2009 - 02:53 PM

If you want to follow my tutorial,please install Windows 7 on a SATA disk.

#12 operat0r

operat0r

    Newbie

  • Members
  • 20 posts
  •  
    United States

Posted 21 December 2009 - 03:43 PM

If you want to follow my tutorial,please install Windows 7 on a SATA disk.


Ok Just put win7 on a laptop here with a SATA drive new Dell Vostro 1320

#13 Marietto

Marietto

    Frequent Member

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

Posted 21 December 2009 - 04:11 PM

2] Copy Windows 7 files from DVD source to c:\Win7 folder of your Dell Vostro 1320

3] Burn the winpe.iso image file into a cd

#14 operat0r

operat0r

    Newbie

  • Members
  • 20 posts
  •  
    United States

Posted 21 December 2009 - 05:39 PM

* updated ( c:\win7\sources\install.wim ) with the new usb inf's
* booted from the winpe.iso

* still can't create vdisk from winpe.iso boot only options I have are create partition and create volume using DiskPart6.0.6000 also tried running c:\windows\system32\diskpart.exe and it just crashes.

* mabe I created the winpe image wrong some how ? all I get is a command prompt I try to run diskmgmt.msc and I get a open with prompt. I run c:\windows\system32\notepad.exe and it crashes but if I just type notepad it uses the x:\ notepad.exe and works ok if that helps ?

Again thank you so much for your time !

#15 operat0r

operat0r

    Newbie

  • Members
  • 20 posts
  •  
    United States

Posted 21 December 2009 - 05:54 PM

Ok I think I found something that may help me understand how it all works or at least how to get a device to BOOT from a VHD file I am going to mess with it in VMware and not touch the laptop so continue on to the next step if you like. Thanks.

http://technet.micro.....28WS.10).aspx

#16 was_jaclaz

was_jaclaz

    Finder

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

Posted 21 December 2009 - 05:56 PM

DiskPart6.0.6000

Wait a minute.
That does not seem to me the Windows 7 version of Diskpart, it should be 6.1.xxxx

Are you sure you made a Windows PE 3.0 (i.e. using Windows 7 source WAIK)?

You need to start with this WAIK:
http://www.microsoft...;displaylang=en

Brief Description
The Windows® Automated Installation Kit (AIK) for Windows® 7 helps you to install, customize, and deploy the Microsoft Windows® 7 and Windows Server® 2008 R2 family of operating systems.

Quick DetailsFile Name: KB3AIK_EN.iso
Version: 1.0
Date Published: 8/6/2009
Language: English
Download Size: 1706.6 MB


jaclaz

P.S.: Just checked, KB3AIK_EN.iso contains DISKPART 6.1.7600.16385

#17 Marietto

Marietto

    Frequent Member

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

Posted 21 December 2009 - 06:24 PM

you can get the winPE 3.0 iso image that I used directly from me. The file torrent is located here :

LINK REMOVED by jaclaz.

#18 was_jaclaz

was_jaclaz

    Finder

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

Posted 21 December 2009 - 06:29 PM

you can get the winPE 3.0 iso image that I used directly from me. The file torrent is located here :


YOU DO NOT REDISTRIBUTE NON-REDISTRIBUTABLE FILES THROUGH THIS BOARD.

Rule #1.


This is not the first time, next one will be the LAST one.


jaclaz

#19 operat0r

operat0r

    Newbie

  • Members
  • 20 posts
  •  
    United States

Posted 21 December 2009 - 06:29 PM

http://forums.techar...als/1175447.htm trying this now ! + your steps ( updateing the usb inf etc .. )

I just use the command prompt from the win7 boot cd for crreate vdisk etc stuff.

#20 operat0r

operat0r

    Newbie

  • Members
  • 20 posts
  •  
    United States

Posted 21 December 2009 - 08:14 PM

* I have the VHD file ready and updated
* I copied the VHD file onto the usb flash but how do I set it up to boot from it using the vhd file ...
* how do I setup the USB stick !>?! I tried that Macrium Reflect it wont let you push the partition to the USB flash disk ...

I have everything ready to go I just need to :
* get boot stuff setup on usb flash
* edit some how the BCD ON the usb flash to boot from the vhd file ...
* I know there is the bcdedit but how do I tell it to be saved to the flash drive and not the current booted os ?
* I also tried EasyBCD and it won't let you do much of anything much less let you pick what \boot\bcd file to edit ...

#21 Marietto

Marietto

    Frequent Member

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

Posted 21 December 2009 - 08:22 PM

try to install Windows 7 (after having modified the source files) using the VHD file as disk.

#22 operat0r

operat0r

    Newbie

  • Members
  • 20 posts
  •  
    United States

Posted 21 December 2009 - 08:40 PM

I have the VHD file ready I just need to make it boot from the usb AND modify the bcd file to boot from vhd file etc ... I cam trying to copy the c:\boot\BCD to f:\bcd found some stuff here on pushing boot loader to different device maybe ?
http://neosmart.net/...read.php?t=1988
I did
bcdedit /store f:\bcd /create {bootmgr} /d "Boot Loader"

#23 operat0r

operat0r

    Newbie

  • Members
  • 20 posts
  •  
    United States

Posted 21 December 2009 - 08:46 PM

no luck :cheers:
* the USB stick wont even boot
* I boored form the cd attrib -r -h -s c:\boot\bcd and copy the bcd file to f:\ along with that bcdedit /store f:\bcd /create {bootmgr} /d "Boot Loader" hoping it was making the USB bootable

#24 Marietto

Marietto

    Frequent Member

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

Posted 21 December 2009 - 09:01 PM

clone the whole SATA disk (windows 7 on normal mode + the VHD file) on the USB disk using Macrium Reflect and then boot Windows 7 on the USB disk on the same computer where you have installed it (not from the VHD image file).

When you are using windows 7 on the USB disk,do the following :

bcdedit /copy {current} /d "Boot from VHD"

The entry was succesfully copied to {ID}

bcdedit /set {ID} device vhd=[C:]\win7.vhd
bcdedit /set {ID} osdevice vhd=[C:]\win7.vhd
bcdedit /set {ID} detecthal on
bcdedit /set {ID} description "VHD Boot"

#25 operat0r

operat0r

    Newbie

  • Members
  • 20 posts
  •  
    United States

Posted 21 December 2009 - 09:31 PM

VHD stuff is cool but I will try this now .. http://www.boot-land...?showtopic=9196




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users