Use DD to set the Windows 7 partition as the Active partition.Copy the Windows 7 booting files to the Windows 7 partition by running the following commands:reg unload HKLM\BCD00000000.
This is recommended before making partitioning changes. If this is not the case, the instructions would be different. These instructions further assume that the Windows 7 partition is a Primary partition. Use the drive letters that are correct for your system. NOTE: The instructions below assume that C: is assigned to the Windows 7 partition and D: is assigned to the XP partition when booted into Windows 7.