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: Problems with booting from a VHD

02 May 2009   #1
gencode

Windows Vista
 
 
Problems with booting from a VHD

Hi guys, well I was having some issues before with copying a bootable vhd and it not working. I just retried with RC and I am still having an issue. I just did it so here’s exactly what I did maybe you can let me know what’s wrong.

Steps:
1) Boot Windows 64 RC CD
2) Go format drive completely (All new)
3) Reboot
4) Start Recovery Options, CMD prompt
5) Run diskpart, create vdisk, select vdisk, attach vdisk, exit
6) Install Windows 7 RC

ALL is 100% fine at this point, I have my primary OS running on a VHD, other than that the HD is empty, no issues at all
now I install like SQL, Visual Studio etc that I want
now I want a copy boot of it, this copy one I will use for the office, the above one is for personal work.

So I get cmd prompt while in my newly created home.vhd

copy d:\home.vhd to d:\office.vhd

Now I simply "try" to make it boot off my new office.vhd too

so I do
bcdedit /copy {current} /d "Office"
bcdedit /set {CLSID_Number} osdevice vhd=[d:]\office.vhd

then I reboot
and Home still works 100% fine, but the new copy Office.VHD does not, it starts to boot but mid way through it stops and reboots the whole machine.

Tried this on 2 different machines, HP and a Toshiba.

Please note all my OS's are VHD's there are none that are not on VHD's (regular HD)

Thanks for any info, Ed,


My System SpecsSystem Spec
.
02 May 2009   #2
unawave

Windows XP and 7
 
 

Quote   Quote: Originally Posted by gencode View Post
ALL is 100% fine at this point, I have my primary OS running on a VHD, other than that the HD is empty, no issues at all
On your hard disk you should also have:
file: bootmgr
folder: boot (with file bcd)
file: pagefile.sys
If you don't see them, then enable "show hidden system files"

Both VHDs use the same pagefile.sys. And this pagefile.sys is not IN the VHD.
Sometime I have got problems of booting copied VHD files with an existing pagefile.sys which was used by another VHD before. So I delete pagefile.sys and booting was OK.
Quote   Quote: Originally Posted by gencode View Post
so I do
bcdedit /copy {current} /d "Office"
bcdedit /set {CLSID_Number} osdevice vhd=[d:]\office.vhd
Do you forget this?
bcdedit /set {CLSID_Number} device vhd=[d:]\office.vhd
Quote   Quote: Originally Posted by gencode View Post
Tried this on 2 different machines, HP and a Toshiba.
Do you have moved the VHD files from one PC to another ? Whilst installing the operating system configures drivers for the first PC. Should not work to copy a VHD file to another PC - or all new drivers must re-install.

Also in HKEY_LOCAL_MACHINE\System\MountedDevices
you have a "fingerprint" of your first hard drive - should not work on other hard drives.
My System SpecsSystem Spec
02 May 2009   #3
gencode

Windows Vista
 
 

unawave, thanks for the help, well heres some screenshots
i had already started another test, basically gencodetest is my home and gencodecopy is the office, same thing again, booting to the copy windows loading screen starts and mid way through the machine reboots...the orig one works just fine.

Problems with booting from a VHD-sc1.png

Problems with booting from a VHD-sc2.png

Problems with booting from a VHD-sc3.png


My System SpecsSystem Spec
.

02 May 2009   #4
unawave

Windows XP and 7
 
 

Have you deleted pagefile.sys ? (boot from Linux CD and delete or boot Windows 7 installation DVD, press shift+F10, change to your drive D: and C: and delete pagefile.sys)

On the command prompt screenshot I see this wrong entry:
identifier {a3114298-36d2-11de-8537-94f5553b7e37}
device .... partition=C:

Should named:
device .... vhd=[D:]\gencodecopy.vhd
(same as "osdevice")
My System SpecsSystem Spec
02 May 2009   #5
gencode

Windows Vista
 
 
Solved

Well I tried both of those, but still it did not work.
So I thought maybe something was actually wrong with the file

I remembered when I made the copy I was actually in the VHD that I was copying from.

So I booted from the CD, went to the command prompt, deleted the copy and made a new copy.

Next boot it finally worked, I guess that has been my main issue, thanks for finding the others.

Thanks for all your help, I have learned a lot from this fourm...its all really really appreciated!

Ed,
My System SpecsSystem Spec
Reply

 Problems with booting from a VHD




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Windows 7 booting problems
A few hours ago , I used EasyBCD and deleted Windows 7 entry from it ( still had a Windows 7 loader entry ). Due to that now whenever I try to boot up Windows 7, I get a BSOD right at the icon thinggy ( those 4 lights ). BSOD Error message -> 0x7b I do have a USB flash with windows 7 on it,...
General Discussion
Problems dual booting XP and 7?
This is turning out to be a right pain in the behind, My laptop came with 7HP installed, I created a new partition for XP and ran the XP CD, It got to the point of "Starting setup" then I got a BSOD. I found out I needed SATA drivers, do downloaded them and slipstreamed the CD with Nlite, same...
Installation & Setup
Problems booting W7 Ultimate
I’m not sure what happened. I have a Dell XPS 8300 that was running fine this morning. Windows 7 Ultimate is installed. The hard drive is partitioned asfollows: - OEM Partition 39 MB - Recovery 35.44 GB - OS 300 GB W7 Ultimate - OS#2 300 GB Empty - DATA 1227.54 GB I left it running and...
General Discussion
Problems in booting up
Hi, to be honest my computer probably has a serious problem. When I try to start up Windows normally, I type in my password for the user account and then it just freezes, it doesn't load. So I think, okay, I'll just try to start up it in Safe Mode, no problem. But when I try to start it in Safe...
Performance & Maintenance
Problems booting with 4GB of Ram
I have a problem. I can't boot my computer with 4GB of ram. It boots normally with 2GB. Ram slots are intact and working. I know this because I first tried with two 1GB ram modules and then with one 2GB ram Module. I kept switching the slots to make sure they all work and they do. Memtest86 didn't...
Hardware & Devices
problems booting?
Hello guys. I just finished a new computer for the office. The internals are an MSI x48c platinum, 6gb corsair DDR3, intel Q7200, 1.5TB Barracuda and a Geforce 9400GT. The day after I installed the 7100 RC, the computer would lock up on startup and I would have to restart, but i had to put...
General Discussion


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 22:07.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App