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: Boot from a VHD using Windows 7

15 Mar 2009   #30
kenshen

Windows 7 rtm
 
 

then what can i boot or is it possible to boot xp ?


My System SpecsSystem Spec
16 Mar 2009   #31
gencode

Windows Vista
 
 
reboots machine when trying to boot from copy

Well I coppied my Win7Beta.vhd(that boots fine) to GenCode.vhd

then I tried the above to see if I could boot from my copy, when I do the entire machine reboots before I even see anything.

The first Win7Beta boots fine still and Vista.

Any ideas where I may have went wrong


C:\Windows\system32>bcdedit
Windows Boot Manager
--------------------
identifier {bootmgr}
device partition=C:
path \bootmgr
description Windows Boot Manager
locale en-US
inherit {globalsettings}
default {current}
resumeobject {ecc68358-0dfb-11de-a1bf-b400729aa187}
displayorder {ecc68359-0dfb-11de-a1bf-b400729aa187}
{current}
{ecc68360-0dfb-11de-a1bf-b400729aa187}
toolsdisplayorder {memdiag}
timeout 30
Windows Boot Loader
-------------------
identifier {ecc68359-0dfb-11de-a1bf-b400729aa187}
device file=[C:]\Win7Beta.vhd
path \Windows\system32\winload.exe
description Win7Beta
locale en-US
inherit {bootloadersettings}
recoverysequence {ecc6835a-0dfb-11de-a1bf-b400729aa187}
recoveryenabled Yes
osdevice vhd=[C:]\Win7Beta.vhd
systemroot \Windows
resumeobject {ecc68358-0dfb-11de-a1bf-b400729aa187}
nx OptIn
Windows Boot Loader
-------------------
identifier {current}
device partition=C:
path \Windows\system32\winload.exe
description Microsoft Windows Vista
locale en-US
inherit {bootloadersettings}
osdevice partition=C:
systemroot \Windows
resumeobject {0dbf36ef-0ae6-11de-80d3-f53a3b2b7793}
nx OptIn
Windows Boot Loader
-------------------
identifier {ecc68360-0dfb-11de-a1bf-b400729aa187}
device file=[C:]\GenCode.vhd
path \Windows\system32\winload.exe
description GenCode VHD
locale en-US
inherit {bootloadersettings}
recoverysequence {ecc6835a-0dfb-11de-a1bf-b400729aa187}
recoveryenabled Yes
osdevice vhd=[C:]\GenCode.vhd
systemroot \Windows
resumeobject {ecc68358-0dfb-11de-a1bf-b400729aa187}
nx OptIn
My System SpecsSystem Spec
17 Mar 2009   #32
unawave

Windows XP and 7
 
 

Quote   Quote: Originally Posted by gencode View Post
Any ideas where I may have went wrong
I don't see any error.

But you can try following step-by-step and reboot after each step:
Make a backup of your bcd database:
bcdedit /export "c:\bcd.old"
Later on you can import it with:
bcdedit /import "c:\bcd.old"

1. delete "recoverysequence" and "resumeobject". Perhaps these parameters belongs to your old "Win7Beta.vhd". I don't have them.
bcdedit /deletevalue {ecc68360-0dfb-11de-a1bf-b400729aa187} recoverysequence
bcdedit /deletevalue {ecc68360-0dfb-11de-a1bf-b400729aa187} resumeobject

2. change "device" to "vhd=". In my bcd database "device" AND "osdevice" are identically:
bcdedit /set {ecc68360-0dfb-11de-a1bf-b400729aa187} device vhd=[C:]\GenCode.vhd

3. delete "nx OptIn". I don't have it.
bcdedit /deletevalue {ecc68360-0dfb-11de-a1bf-b400729aa187} nx

4. delete "inherit". I don't have it.
bcdedit /deletevalue {ecc68360-0dfb-11de-a1bf-b400729aa187} inherit

5. delete "recoveryenabled". I don't have it.
bcdedit /deletevalue {ecc68360-0dfb-11de-a1bf-b400729aa187} recoveryenabled

6. add "detecthal". I have it.
bcdedit /set {ecc68360-0dfb-11de-a1bf-b400729aa187} detecthal Yes
My System SpecsSystem Spec
17 Mar 2009   #33
gencode

Windows Vista
 
 
Its Working now!!

Well I did get it working, I have normal partition Vista and a Win7 vhd
When I was running bcdedit I was actually using the Vista sessoin to make the bcdedit /copy to gencode.vhd.

Thinking that may be the problem I deleted my bcdedit copy entry
Then I rebooted to Win7 vhd
cmd out and ran the bcdedit /copy again and all was fine.

Not 100% sure if it was because I was doing it in the vista partition but anyhow its good now.

Thanks unawave for the reply, but I already did this about the same time you replied.

Once again thanks!
My System SpecsSystem Spec
.


17 Mar 2009   #34
unawave

Windows XP and 7
 
 

Can you boot to Vista and then post the new created part of bcdedit (part with "GenCode.vhd")?
I would like to see the differences.
My System SpecsSystem Spec
17 Mar 2009   #35
gencode

Windows Vista
 
 
Heres the boot section now

Well here it is, looks pretty much the same, wierd thing is device is pointing somewhere else, the Vista one was like that too but I had changed it to the gencode.vhd jsut to try, but that does not seem to affect it.

this one was made in Win7

Windows Boot Loader
-------------------
identifier {ecc68361-0dfb-11de-a1bf-b400729aa187}
device file=[C:]\Win7Beta.vhd
path \Windows\system32\winload.exe
description test
locale en-US
inherit {bootloadersettings}
recoverysequence {ecc6835a-0dfb-11de-a1bf-b400729aa187}
recoveryenabled Yes
osdevice vhd=[C:]\GenCode.vhd
systemroot \Windows
resumeobject {ecc68358-0dfb-11de-a1bf-b400729aa187}
nx OptIn
My System SpecsSystem Spec
18 Mar 2009   #36
unawave

Windows XP and 7
 
 

Old, not booting:
device file= [C:]\GenCode.vhd
osdevice vhd=[C:]\GenCode.vhd

New, booting:
device file= [C:]\Win7Beta.vhd
osdevice vhd=[C:]\GenCode.vhd

I donít know why this works. "device" and "osdevice" are different.

I have something read about "master" and "clone" vhd files.
That means: You can create several clone vhd files which all based on the same master vhd file. If you than make changes on the master vhd file the clone vhd files are also effected.

So I don't know if you have a real independent second installation or if you have a second (clone) installation "GenCode.vhd" which based on a master installation "Win7Beta.vhd".


You can test this:
  • Boot Vista
  • Rename "Win7Beta.vhd" e.g. to "Win7Beta-x.vhd"
  • Reboot (you will get an error, because "Win7Beta.vhd" doesn't exist)
  • Boot "test" (means your "GenCode.vhd")
Does this work?
My System SpecsSystem Spec
18 Mar 2009   #37
gencode

Windows Vista
 
 

Hi unawave,

> You can test this...
Yes, I changed it and the boot screen said corrupt boot or something, and let me go past that error with only the other 2 items listed.


Also when I tried to set it to the right
device file=[C:]\GenCode.vhd

Then I started to get back to my fisrst issue, where teh system just reboots before I ever see even a windows loading screen.

....so, I changed it back to
device file= [C:]\Win7Beta.vhd
and all is well again.

One would think maybe I am just booting the same VHD and donít know it.

Well thatís not the case cause the c: directories are different and apps installed are different, i.e. I installed fiddler on one and not the other, and 2 directories are on one and not the other.

It seems to work as is, but its odd.
My System SpecsSystem Spec
19 Mar 2009   #38
unawave

Windows XP and 7
 
 

It seems I am right and you don't have independent installations.

But perhaps I am wrong with "master" and "clone". Microsoft called it "parent" and "child".
See here:
Frequently Asked Questions: Virtual Hard Disks in Windows 7
"What happens if the parent VHD of a differencing child changes?"

Good explanation:
Innovative Technology Weblog ¬Ľ Native VHD in Windows 7
My System SpecsSystem Spec
28 Apr 2009   #39
turbomcp

seven
 
 

hi guys
just wanted to add my 5 cents hereyou know you can do the boot from vhd thing even if u currently have xp(this way you dont messup your partitions or xp)
cool stuff
My System SpecsSystem Spec
Comment

 Boot from a VHD using Windows 7




Tutorial Tools





Similar help and support threads
Windows 7 Tutorial Category
Dual boot windows vista and windows 7 boot error winload.exe
I am trying to dual boot with 2 different hard drives and 2 different systems. One is Vista x64 and the other is Windows 7 Professional 32-bit. After installing the hard drive with Windows 7 which came from a different computer, I used EasyBCD to configure the boot order. Windows vista still works,...
Installation & Setup
Win 7 , Ubuntu dual boot, windows wont boot, startup disk doesnt help
Hi a couple of months ago my system crashed, windows 7 wouldnt boot, and I misplaced my installation disk. I had the problems several times since obtaining the computer several years ago. (Lenovo IDeaPad y450). I attributed the problem to what I believed was a bad hard disk, so I replaced it with a...
General Discussion
Windows boot fail: Boot selection failed because a required device is
Hi there, I've recently built a new rig and I've had continuous problems trying to boot. I have two HDDs and one SDD. It seems when the two HDDs are plugged in, i can sometimes boot ok, and most times i get: Or Please select a boot device, or something to the affect. I've updated to the...
Hardware & Devices
Windows 7 Crashes at Boot Manager after Deleting Windows 8 Dual Boot
Hi all, I followed some instructions to remove the Windows 8 Dual Boot by just deleting the Windows 8 Partition and that there was no need to edit the boot menu as everything will be done automatically after restart. Now, when I tried to reboot my computer, the computer hangs at the screen...
General Discussion
Dual boot Windows 7 pro and Windows Server 2008 - boot loader
Hey guys i installed windows 7 and windows server 2008 in different partition. I first installed windows 7 and then installed windows server 2008.(I dont know if that makes much of a difference). However , -----after installing the server i could not see the windows 7 in my boot loader so i had...
Installation & Setup
windows7 wont boot past windows splash screen - will boot to safe mod
WIndows 7 premium home version on a lenovo laptop freezing at splash screen. I can boot into safe mode just fine. Whereby I have to run a system restore back to an older date but the issue still comes back up and this seems to be especially true when trying to wake it from sleep mode. beyond the...
BSOD Help and Support

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 21:37.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App