[SSD]Migrate System from Tranditional Hard Disk to SSD

2013-12-13

Situation:
My PC's OS is Windows Server 2012 and has a Hyper-V that included 3 SQL server inside, recently I bought a SSD driver, and prepare migrate it to SSD


Tools:
  • Symantec Ghost 15
  • Old Hard Disk
  • New SSD
  • Dell PC



Process:
Use Symantec Ghost 15 to image the Disk.
Because it's a personal version, so you only allow to copy each partition to the spare Disk (it doesn't matter USB or portable Driver)
Dell PC has its own "Boot" and "Recovery" partitions when you bought the OEM PC.

Recovery the image to the new SSD.
But you are only allowed to recovery one partition to a Disk at the same time.
So I choice recovery the System partition to the new SSD.


Reboot the PC after recovery the image.

ERROR and how to Resolve:

  • "CAN'T recognize the boot Partition" !!! What!!
But don't worry, put your OS CD in your PC and boot by the CD

Choice "Command" mode.
Type this command to rescue it.

BCDboot C:\Windows
PS. if your main OS system is under the C Driver

 After "BCDBoot" command, you need to lunch Hypervisor


  • could not be started because the hypervisor is not running
  Type this command:
bcdedit /set hypervisorlaunchtype auto

 reboot, another problem happened!!!
  • IDE/ATAPI Account does not have sufficient privilege to open attachment
 Resolve article is here

 To resolve this issue, add the Virtual Machine SID to the virtual hard disk (.vhd) file or to the snapshot file (.avhd).

To add the Virtual Machine SID to a .vhd or .avhd file, follow these steps:

  1. Note the Virtual Machine ID that is listed in the "‘General access denied error’ (0x80070005)" error message.

    For example, consider the following error message:

    ‘VMName’: IDE/ATAPI Account does not have sufficient privilege to open attachment
    ‘E:\VMs\VMName\Disk0.vhd. Error: ‘General access denied error’ (0x80070005). (Virtual
    Machine ID 5FC5C385-BD98-451F-B3F3-1E50E06EE663)

    In this example, the Virtual Machine ID is 5FC5C385-BD98-451F-B3F3-1E50E06EE663.
  2. Open an elevated command prompt.
  3. To give the Virtual Machine ID (SID) access to the .vhd or .avhd file, type the following command, and then press Enter:
    icacls  /grant "NT VIRTUAL MACHINE\":(F)
    For example, to use the Virtual Machine ID that you noted in step 1, type the following command, and then press Enter:
    icacls "E:\VMs\VMName\Disk0.vhd" /grant "NT VIRTUAL MACHINE\5FC5C385-BD98-451F-B3F3-1E50E06EE663":(F)
  4. Start the virtual machine.


Newer Older