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
Windows Update is both Installed and Not Installed
So I have been trying to work through my Windows Update issues, turns out it was majorly broken. I think I have it mostly working now. My issue I am having is down to one specific update that I downloaded a separate installer for. It failed partway through installation and now I am completely...
Windows Updates & Activation
Windows 7 sp1 is supposed to be installed but sp1not installed.
I had a tech upgrade my laptop to windows 7 sp1( I have the disc) . I use this laptop for back up and trips away. When I tried to upgrade to 10 I was getting upgrades failing. security upgrades installed fine. I don't believe I ever had sp1 installed and cant go any further until it is. how can I...
Installation & Setup
Windows update KB 3045999 installed but not installed
Hi, Firstly thanks for your help. I have a problem with windows update kb3045999. It has caused a lot of problems on my system, with programs not loaded after booting (eg notepad, IE etc return error code The application was unable to start (0xc0000018). I understand that this is a known...
Windows Updates & Activation
Windows can't be installed - Must Be Installed on Partition NTFS
I had someone put Unbuntu on my computer and I don't like it. I am trying to install Windows 7 Home Premium. I was able to erase Unbuntu and have installed the Windows 7 Disk. I install it in safe mode but I keep getting stuck, states that "Windows cannot be installed in the hard drive space....
Installation & Setup
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


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 03:12.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App