Friday, 21 December 2012

Move a VHD to a new disk



Moving a VHD to a new disk - Abreviated for quick notes

(referenced from http://fmuntean.wordpress.com/2010/06/27/moving-your-boot-from-vhd-to-a-bigger-drive/)

Attach the new HDD
Server Manager -> Storage -> Disk Management
New Simple Volume (format NFTS, quick) mount as f:
Mark Partition as Active
Command prompt
Bcdboot c:\windows /s f:
Bcdedit /export f:\backup.bcd
Reboot
Boot from Win7 or Windows 2008R2 DVD, Ubuntu
(For windows - "windows loading files…" message when the initial setup screen is displayed press SHIFT+F10 for command prompt)
Copy vhd file from old disk to new one (you need to find the drive letters again as they might not match)
shutdown the machine
Remove old hard drive and replace with the new one.
Start computer.
Boot from install DVD again and start the command prompt
Bcdedit /import c:\backup.bcd
Fix the entry
Bcdedit /set {default} device vhd=[LOCATE]\win2k8R2.vhd
Bcdedit /set {default} osdevice vhd=[LOCATE]\win2k8R2.vhd
Reboot

No comments:

Post a Comment