Mirroring partition to VHD

Tails5

New member
Local time
11:50 PM
Messages
16
Hi, I'm wondering if its possible to copy a partition entirely (including boot record) onto a VHD file I made using diskpart.

EDIT: I went out and got Norton Ghost to do the job... because no internet search was turning up how to do it without Ghost.
 
Last edited:

My Computer My Computer

OS
Windows 7 RC 64-bit/Windows Vista Ultimate 64-bit
CPU
AMD64 Triple-core ~2.3GHz (Maximum clock: 3.2GHz)
Motherboard
Gigabyte GA-MA74GM-S2H
Memory
2GB
Graphics Card(s)
Gigabyte nVidia GeForce 9400GT 1GB
Sound Card
Realtek HD (unsure of model at the moment)
Monitor(s) Displays
ViewSonic VA1903wmb 19" Widescreen
Screen Resolution
1440x900
Hard Drives
500GB Samsung HD501LJ SATA,
80GB Western Digital IDE,
8GB Western Digital IDE
Case
Excel FC-HL11A
Keyboard
Microsoft Internet Keyboard
Mouse
USB Mouse
Internet Speed
256kbps
For VHD:

While attached, go to either diskpart or Disk Management and make it "active".

Then, make sure you have \bootmgr file and \boot hidden folder in the VHD image.

That's it. It should work just fine.
 

My Computer My Computer

Computer Manufacturer/Model Number
ENIAC
OS
Windows 7 RC 7100 32bit/64bit
CPU
Intel Core2Duo E4500 2.20 GHz
Motherboard
ASUS P5LD2-X/1333
Memory
2x1GB Kinsgston DDR2 800MHz
Graphics Card(s)
Nvidia 8500GT
Sound Card
Onboard High Definition Audio Device
Monitor(s) Displays
Sony Bravia 42"
Case
LINKW 2222
Cooling
Standard Intel
Keyboard
Some cheap one
Mouse
Microsoft Intellimouse something
Internet Speed
24MBps ADSL
Do you mean simply copying everything will work, aslong as I get \boot\ and \bootmgr aswell?
 

My Computer My Computer

OS
Windows 7 RC 64-bit/Windows Vista Ultimate 64-bit
CPU
AMD64 Triple-core ~2.3GHz (Maximum clock: 3.2GHz)
Motherboard
Gigabyte GA-MA74GM-S2H
Memory
2GB
Graphics Card(s)
Gigabyte nVidia GeForce 9400GT 1GB
Sound Card
Realtek HD (unsure of model at the moment)
Monitor(s) Displays
ViewSonic VA1903wmb 19" Widescreen
Screen Resolution
1440x900
Hard Drives
500GB Samsung HD501LJ SATA,
80GB Western Digital IDE,
8GB Western Digital IDE
Case
Excel FC-HL11A
Keyboard
Microsoft Internet Keyboard
Mouse
USB Mouse
Internet Speed
256kbps
Yes , but you need to have bcdedit's {bootmgr} set to this partition too.
 

My Computer My Computer

Computer Manufacturer/Model Number
ENIAC
OS
Windows 7 RC 7100 32bit/64bit
CPU
Intel Core2Duo E4500 2.20 GHz
Motherboard
ASUS P5LD2-X/1333
Memory
2x1GB Kinsgston DDR2 800MHz
Graphics Card(s)
Nvidia 8500GT
Sound Card
Onboard High Definition Audio Device
Monitor(s) Displays
Sony Bravia 42"
Case
LINKW 2222
Cooling
Standard Intel
Keyboard
Some cheap one
Mouse
Microsoft Intellimouse something
Internet Speed
24MBps ADSL
Would I have to do that if I just add the .vhd file as a boot item? And how do I unhide \boot\ and \bootmgr? I've turned off hiding protected system files and hidden files but it's not appearing.
 

My Computer My Computer

OS
Windows 7 RC 64-bit/Windows Vista Ultimate 64-bit
CPU
AMD64 Triple-core ~2.3GHz (Maximum clock: 3.2GHz)
Motherboard
Gigabyte GA-MA74GM-S2H
Memory
2GB
Graphics Card(s)
Gigabyte nVidia GeForce 9400GT 1GB
Sound Card
Realtek HD (unsure of model at the moment)
Monitor(s) Displays
ViewSonic VA1903wmb 19" Widescreen
Screen Resolution
1440x900
Hard Drives
500GB Samsung HD501LJ SATA,
80GB Western Digital IDE,
8GB Western Digital IDE
Case
Excel FC-HL11A
Keyboard
Microsoft Internet Keyboard
Mouse
USB Mouse
Internet Speed
256kbps
You will find \bootmgr and \boot in the hidden partition of W7, the small 200MB one. You need to assign a drive letter to it first, from Disk Management, and then you can access it.
 

My Computer My Computer

Computer Manufacturer/Model Number
ENIAC
OS
Windows 7 RC 7100 32bit/64bit
CPU
Intel Core2Duo E4500 2.20 GHz
Motherboard
ASUS P5LD2-X/1333
Memory
2x1GB Kinsgston DDR2 800MHz
Graphics Card(s)
Nvidia 8500GT
Sound Card
Onboard High Definition Audio Device
Monitor(s) Displays
Sony Bravia 42"
Case
LINKW 2222
Cooling
Standard Intel
Keyboard
Some cheap one
Mouse
Microsoft Intellimouse something
Internet Speed
24MBps ADSL
Uhm.. the partition I want to copy to the VHD is a Vista install, not Windows 7...
 

My Computer My Computer

OS
Windows 7 RC 64-bit/Windows Vista Ultimate 64-bit
CPU
AMD64 Triple-core ~2.3GHz (Maximum clock: 3.2GHz)
Motherboard
Gigabyte GA-MA74GM-S2H
Memory
2GB
Graphics Card(s)
Gigabyte nVidia GeForce 9400GT 1GB
Sound Card
Realtek HD (unsure of model at the moment)
Monitor(s) Displays
ViewSonic VA1903wmb 19" Widescreen
Screen Resolution
1440x900
Hard Drives
500GB Samsung HD501LJ SATA,
80GB Western Digital IDE,
8GB Western Digital IDE
Case
Excel FC-HL11A
Keyboard
Microsoft Internet Keyboard
Mouse
USB Mouse
Internet Speed
256kbps
Then you should be able to see the \bootmgr file and \boot folder in the root partition of Vista.
 

My Computer My Computer

Computer Manufacturer/Model Number
ENIAC
OS
Windows 7 RC 7100 32bit/64bit
CPU
Intel Core2Duo E4500 2.20 GHz
Motherboard
ASUS P5LD2-X/1333
Memory
2x1GB Kinsgston DDR2 800MHz
Graphics Card(s)
Nvidia 8500GT
Sound Card
Onboard High Definition Audio Device
Monitor(s) Displays
Sony Bravia 42"
Case
LINKW 2222
Cooling
Standard Intel
Keyboard
Some cheap one
Mouse
Microsoft Intellimouse something
Internet Speed
24MBps ADSL
They aren't there - even directly typing D:\boot\ says that the folder does not exist. The files DO exist in my Windows 7 partition though. Does this mean that there IS no boot record on the Vista partition?
 

My Computer My Computer

OS
Windows 7 RC 64-bit/Windows Vista Ultimate 64-bit
CPU
AMD64 Triple-core ~2.3GHz (Maximum clock: 3.2GHz)
Motherboard
Gigabyte GA-MA74GM-S2H
Memory
2GB
Graphics Card(s)
Gigabyte nVidia GeForce 9400GT 1GB
Sound Card
Realtek HD (unsure of model at the moment)
Monitor(s) Displays
ViewSonic VA1903wmb 19" Widescreen
Screen Resolution
1440x900
Hard Drives
500GB Samsung HD501LJ SATA,
80GB Western Digital IDE,
8GB Western Digital IDE
Case
Excel FC-HL11A
Keyboard
Microsoft Internet Keyboard
Mouse
USB Mouse
Internet Speed
256kbps
Yes, after the Windows 7 installation, they have moved to the w7 partition probably. I don't think W7 keeps the Vista ones , it switches to its own for both OSes, if it finds Vista during install. Just a thought, not sure. But if you don't have them in Vista's partition, that's the case
 

My Computer My Computer

Computer Manufacturer/Model Number
ENIAC
OS
Windows 7 RC 7100 32bit/64bit
CPU
Intel Core2Duo E4500 2.20 GHz
Motherboard
ASUS P5LD2-X/1333
Memory
2x1GB Kinsgston DDR2 800MHz
Graphics Card(s)
Nvidia 8500GT
Sound Card
Onboard High Definition Audio Device
Monitor(s) Displays
Sony Bravia 42"
Case
LINKW 2222
Cooling
Standard Intel
Keyboard
Some cheap one
Mouse
Microsoft Intellimouse something
Internet Speed
24MBps ADSL
So should I be able to simply copy all files and add the .vhd to the bootloader? (And uh.. I dont think it was 7 that deleted Vista's bootmanager, I think I did that when I deleted the partition that was at the start of the drive to install 7)
 

My Computer My Computer

OS
Windows 7 RC 64-bit/Windows Vista Ultimate 64-bit
CPU
AMD64 Triple-core ~2.3GHz (Maximum clock: 3.2GHz)
Motherboard
Gigabyte GA-MA74GM-S2H
Memory
2GB
Graphics Card(s)
Gigabyte nVidia GeForce 9400GT 1GB
Sound Card
Realtek HD (unsure of model at the moment)
Monitor(s) Displays
ViewSonic VA1903wmb 19" Widescreen
Screen Resolution
1440x900
Hard Drives
500GB Samsung HD501LJ SATA,
80GB Western Digital IDE,
8GB Western Digital IDE
Case
Excel FC-HL11A
Keyboard
Microsoft Internet Keyboard
Mouse
USB Mouse
Internet Speed
256kbps
ok, we need to be thorough on this one, to make it work.

1. Copy the \bootmgr and \boot stuff from your Win7 Partition to your VHD image's root \
2. start elevated CMD
3. type :

bcdedit /store X:\boot\bcd

where X: is your VHD's drive letter.

You will get a {bootmgr} listing, among others. You will also get another UUID in {} which will be your W7's location.

4. Change the {bootmgr} path to match your VHD's one. I'd set it to C:, since booting with VHD only, it will be discovered as C: by default.

bcdedit /store X:\boot\bcd /set {bootmgr} device partition=C:
remember to change X: above with your VHD's drive letter again.

5. Change the W7 listing on VHD to be C: as well:

bcdedit /store X:\boot\bcd /set {your_windows_7_UUID} device partition=C:

bcdedit /store X:\boot\bcd /set {your_windows_7_UUID} osdevice partition=C:



That should make it work.
 

My Computer My Computer

Computer Manufacturer/Model Number
ENIAC
OS
Windows 7 RC 7100 32bit/64bit
CPU
Intel Core2Duo E4500 2.20 GHz
Motherboard
ASUS P5LD2-X/1333
Memory
2x1GB Kinsgston DDR2 800MHz
Graphics Card(s)
Nvidia 8500GT
Sound Card
Onboard High Definition Audio Device
Monitor(s) Displays
Sony Bravia 42"
Case
LINKW 2222
Cooling
Standard Intel
Keyboard
Some cheap one
Mouse
Microsoft Intellimouse something
Internet Speed
24MBps ADSL
So, just running that should let me choose 7(real partition) or Vista(vhd on 7's partition) on booting, or should I then add the .vhd as a boot item? And would I be able to use bitlocker and still expect the vhd to boot?

Edit: The Windows 7 entry just shows up as {default} without any other UUID can I just use that and continue?
 

My Computer My Computer

OS
Windows 7 RC 64-bit/Windows Vista Ultimate 64-bit
CPU
AMD64 Triple-core ~2.3GHz (Maximum clock: 3.2GHz)
Motherboard
Gigabyte GA-MA74GM-S2H
Memory
2GB
Graphics Card(s)
Gigabyte nVidia GeForce 9400GT 1GB
Sound Card
Realtek HD (unsure of model at the moment)
Monitor(s) Displays
ViewSonic VA1903wmb 19" Widescreen
Screen Resolution
1440x900
Hard Drives
500GB Samsung HD501LJ SATA,
80GB Western Digital IDE,
8GB Western Digital IDE
Case
Excel FC-HL11A
Keyboard
Microsoft Internet Keyboard
Mouse
USB Mouse
Internet Speed
256kbps
These are settings you need to make in the VHD's partition.

To have Triple Boot with Vista, Windows 7 , and VHD, you need to make other settings.

on your current BCDEDIT config, you need to add the VHD entry. While in Windows 7:

BCDedit /copy {current} /d "VHD Boot"
This will give you a new {UUID} that was just created.

Bcdedit /set {new_UUID_resulted_from_above} device vhd=[C:]\yourvhdfile.vhd

Bcdedit /set {new_UUID_resulted_from_above} osdevice vhd=[C:]\yourvhdfile.vhd
 

My Computer My Computer

Computer Manufacturer/Model Number
ENIAC
OS
Windows 7 RC 7100 32bit/64bit
CPU
Intel Core2Duo E4500 2.20 GHz
Motherboard
ASUS P5LD2-X/1333
Memory
2x1GB Kinsgston DDR2 800MHz
Graphics Card(s)
Nvidia 8500GT
Sound Card
Onboard High Definition Audio Device
Monitor(s) Displays
Sony Bravia 42"
Case
LINKW 2222
Cooling
Standard Intel
Keyboard
Some cheap one
Mouse
Microsoft Intellimouse something
Internet Speed
24MBps ADSL
Thanks very much, I've done all that you've said - I'm just waiting for the file copy to work (I did a CTRL+A with all files unhidden on the drive, and then just pasted into the mounted VHD file.)
 

My Computer My Computer

OS
Windows 7 RC 64-bit/Windows Vista Ultimate 64-bit
CPU
AMD64 Triple-core ~2.3GHz (Maximum clock: 3.2GHz)
Motherboard
Gigabyte GA-MA74GM-S2H
Memory
2GB
Graphics Card(s)
Gigabyte nVidia GeForce 9400GT 1GB
Sound Card
Realtek HD (unsure of model at the moment)
Monitor(s) Displays
ViewSonic VA1903wmb 19" Widescreen
Screen Resolution
1440x900
Hard Drives
500GB Samsung HD501LJ SATA,
80GB Western Digital IDE,
8GB Western Digital IDE
Case
Excel FC-HL11A
Keyboard
Microsoft Internet Keyboard
Mouse
USB Mouse
Internet Speed
256kbps
Uhm. There's been a slight problem, I left the copy going over-night, and after I copied the BCD store from the Seven drive, the OS thinks that it's Windows 7 and has corrupt system files, when actually it's Vista with the wrong BCD... Will Ihave to re-install Vista to the VHD to fix this? If so, how do I go about installing Vista to the VHD?
 

My Computer My Computer

OS
Windows 7 RC 64-bit/Windows Vista Ultimate 64-bit
CPU
AMD64 Triple-core ~2.3GHz (Maximum clock: 3.2GHz)
Motherboard
Gigabyte GA-MA74GM-S2H
Memory
2GB
Graphics Card(s)
Gigabyte nVidia GeForce 9400GT 1GB
Sound Card
Realtek HD (unsure of model at the moment)
Monitor(s) Displays
ViewSonic VA1903wmb 19" Widescreen
Screen Resolution
1440x900
Hard Drives
500GB Samsung HD501LJ SATA,
80GB Western Digital IDE,
8GB Western Digital IDE
Case
Excel FC-HL11A
Keyboard
Microsoft Internet Keyboard
Mouse
USB Mouse
Internet Speed
256kbps
Back
Top