Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Windows 7 VHD installed and used on USB Key?

25 Jul 2009   #1
realtebo

Windows 7 RTM (From Connect Italian Beta Program)
 
 
Windows 7 VHD installed and used on USB Key?

Is it possible to boot from a usb pen and use a VHD inside it?

To be completely indipendent from specific computer disk boot


My System SpecsSystem Spec
.
25 Jul 2009   #2
spydaz

Windows 7 64-bit 7600 OEM
 
 

I would say "YES"

As once you have the \Boot folder on the key.

AND If you have already followed previous steps in creating a bootable PE / Win7 Instal from a KEY then.... the step should be....

first delete all contents of the key after it can boot except the \boot folder... Here you will have the BCD. File where the boot config is stored, then the bootfile will have to be edited... This is our main problem....

Other than size... As with the gui bcdeditor tool. you cannot edit the usbkey bootfile or with bcd edit..... Hmm... Maybe you cant.... give me a couple of days and i will figure out how to get into this file....
My System SpecsSystem Spec
25 Jul 2009   #3
spydaz

Windows 7 64-bit 7600 OEM
 
 

Actually You cant edit the BCD FILE.. All the editors only edit the MAIN BCD FILE on the Hidden system Partition....

There maybe another way... BUT >>>


I DONT THINK SO!

I know Microsoft Dont Want you to either, BUT... We can only try
My System SpecsSystem Spec
.

25 Jul 2009   #4
spydaz

Windows 7 64-bit 7600 OEM
 
 

OK HERE IT GOES . LOLOLOOLOLOLOLOL VERY HAPPY

Firstly,
SET UP THE USB KEY/HDD DEVICE With The Windows PE 3.0 (Win7)
Then Either Boot up into the PE Environment Or Windows 7 Environment
Open evelated as Adminstrator CMD PROMPT

Here i setup my variables ---- I keep all little scripts in text files as REUSABLE CODE ----

set drive=I: /// enter drive where vhd is stored
set VHD=\Win7_RC1x64.vhd /// enter vhd file name
set description="VHD BOOT"

bcdedit /store i:\boot\bcd /enum
bcdedit /store i:\boot\bcd /copy {default} /d %description%
Bcdedit /store i:\boot\BCD /set <GUID> device = vhd=[%drive%]%VHD%
Bcdedit /store
i:\boot\BCD /set <GUID> osdevice = vhd=[%drive%]%VHD%
Bcdedit /store
i:\boot\BCD /set <GUID> detecthal yes

syntax used:

BCDEDIT /STORE <DRIVE><PATH OF STORE> /Other normal bcdedit cmds

With this you can have a dual boot USB device If you just want the VHD BOOT then just delete the entry.

bcdedit /store i:\boot\bcd /delete {GUID} <<< old PE:

and delete the relevent <old PE stuff>

REMEMBER TO KEEP \BOOT <<<<< This is where the BCD files are <<<

>>>> Thanks for the journey <<<
I had been wondering how to do this then after some carefull thought...
IF you can boot PE / Windows Install IT MUST BE POSSIBLE! Only constraint is the size of the key must be able to HOUSE the VHD...

Im not sure if microsoft want you to boot off a usb key... But If its possible YOU CAN....
My System SpecsSystem Spec
15 Sep 2009   #5
realtebo

Windows 7 RTM (From Connect Italian Beta Program)
 
 

Soorry If i've not replied before, but i'm testing it only now

I'll reply soon to tell about esit, thankx a lot !
My System SpecsSystem Spec
15 Sep 2009   #6
realtebo

Windows 7 RTM (From Connect Italian Beta Program)
 
 

A problem:

C:\Windows\system32>bcedit /store I:\boot\bcd /set <GUID> device=vhd=%drive%]%VHD%

Unable to find specified file

I tried to echo %drive% and %VHD% and both are rights.. so, whats?
My System SpecsSystem Spec
15 Sep 2009   #7
realtebo

Windows 7 RTM (From Connect Italian Beta Program)
 
 

1) I have not copy&pasted the GUID of newly created os entry

2) beetween device and vhd MUST NOT BE A '=' !
My System SpecsSystem Spec
15 Sep 2009   #8
realtebo

Windows 7 RTM (From Connect Italian Beta Program)
 
 

A problem: after succesfully created bcd entry on usb key, and copied vhd file into it ...

when booting

"BOOTMGR missing"

Sigh...... but my WHD is bootable ... It was originally a virtualbox vid file and i converted it.

Waht could be the problem? The bootloader has been found, and when vhd is loaded the boot loader cannot find BBOTMGR but my boor folder is here .. sigh.. what's the problem?
My System SpecsSystem Spec
15 Sep 2009   #9
realtebo

Windows 7 RTM (From Connect Italian Beta Program)
 
 

Code:
Windows Boot Manager
--------------------
identificatore          {bootmgr}
description             Windows Boot Manager
locale                  en-US
inherit                 {globalsettings}
displayorder            {bcf89438-a22f-11de-aeab-000d6113bcb4}
toolsdisplayorder       {memdiag}
timeout                 30

Caricatore di avvio di Windows
-------------------
identificatore          {bcf89438-a22f-11de-aeab-000d6113bcb4}
device                  vhd=[I:]\Win7.vhd
path                    \windows\system32\boot\winload.exe
description             VHD Boot
locale                  en-US
inherit                 {bootloadersettings}
osdevice                vhd=[I:]\Win7.vhd
systemroot              \windows
detecthal               Yes
winpe                   Yes
ems                     Yes
My System SpecsSystem Spec
15 Sep 2009   #10
sup3rsprt

XP, Seven, 2008R2
 
 

Quote   Quote: Originally Posted by realtebo View Post
cannot find BBOTMGR but my boor folder is here .. sigh.. what's the problem?

I think bootmgr needs to exist on the root of the drive, not in the \boot folder

I assume you are selecting the USB device as first boot device (in the BIOS) and you already made the USB drive bootable using something like the bootsect tool?
My System SpecsSystem Spec
Reply

 Windows 7 VHD installed and used on USB Key?




Thread Tools




Similar help and support threads
Thread Forum
Win 7 SP1 Installed, Previously Installed Updates Reappear
I recently installed Windows 7 Service Pack 1 for my Windows 7 Home Premium 32-bit edition. As the installation finished the computer restarted and I did not give it another thought. Later on I returned to the Windows Update screen to see if there were any recent updates available for my PC. To my...
Windows Updates & Activation
installed HD 2600 pro card, installed AMS driver, but no ccc software?
I was wondering if this would help? https://www.sevenforums.com/graphic-cards/195195-fix-catalyst-control-center-ccc-will-not-open-install.html I see no evidence that the AMD driver installed at all. Right click desktop does not show ccc, and ccc is not in the lower right panel. Windows...
Graphic Cards
9gb Ram installed. 7 Gb shown as installed, 6.1gb available. Windows 8
Hello, Haven't needed help from you guys in a while. I'm even using windows 8 now. Your advice was so good the last time.. I'm back. Ok so I have a brand new kingston 4gb ram chip installed on my ecs p-45-t black series board. It replaced a 1gb chip. My other chips all say 1.8v this new one...
Performance & Maintenance
List of updates required to be installed before SP1 is installed?
Hello, Is there a list of hotfixes that are required to be installed prior to installing SP1? I am trying to slipstream SP1 into an installation DVD for Windows 7. It works fine, however, after I installed my newly created DVD, I found an update that said "You must install this patch before...
Windows Updates & Activation
How do I get my newly installed Hard Drive (1TB) with Win 7 installed
to boot up. Here's my issue I have a HP Desk top w/ a standard 320 GB hard Drive. I bought a new Hard drive (1 TB Western Digital) so that I could move everything to the new one and use the old one as storage. I had trouble even formatting the new drive but eventually got it and successfully...
Backup and Restore
neo basic 2165 - 4gb installed but only shows 3gb installed
hey guys got an issue her thats been like a stubbed toe - just cant let go of it - im using a dual core neo basic 2165 - i just recently upgraded my ram to 4gb 2x - 2gb -ddr2 800 but it just shows 2.75 usable - and only 3gb installed - ive tried every thing so far- still same result-...
Hardware & Devices


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 18:08.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App