It is possible for Windows Vista and Windows 7 to be installed on logical partitions. Windows Vista and Windows 7 use the new bootmgr bootloader to start themselves as opposed to ntldr used by old NT-based operating systems like Windows XP. Therefore, booting Windows Vista/7 from a logical partition takes a different approach from booting Windows XP from a logical partition.
Installing Windows Vista/7 onto a Logical Partition
Windows Vista/7 can be installed into a logical partition at the time of first installation. However, a new primary NTFS partition will be created. This partition is about 100 MB and only contains essential bootloader files, such as bootmgr and BCD. If you intend to remove this Vista/Win7 boot partition, be sure to copy its contents (especially bootmgr and BCD) to the logical partition containing Windows Vista/7 beforehand.
After that, reboot with Vista/Win7 installer CD, choose “Repair Your Computer” and proceed to invoke the Command Prompt. Type the following commands to enable Vista/Win7 to boot from a logical partition.
C:
bcdedit /enum /store C:\Boot\BCD
bcdedit /store C:\Boot\BCD /set {bootmgr} device partition=C:
Restart your computer. Put a CD into CD-ROM that has GRUB bootloader. Most Linux install CD's use GRUB these days. When you see the Grub boot menu, press C or Esc. You are now on the GRUB command line. To find which partition is your Windows partition, type root (hd0,
and then press Tab. Windows partitions are mostly type 7. For example, if your Windows partition is (hd0,5), type the following commands to boot Windows.
root (hd0,5)
chainloader +1
boot
The reason why we want to remove the boot partition is most likely because we want to free a primary partition for use by another OS, such as OpenBSD or OpenSolaris. However, in order to boot Windows from a logical partiton, you need to set up a special bootloader, for example, GRUB.
Copying Windows Vista/7 from Primary to Logical Partition
If you installed Windows Vista/7 on a primary partition and want to move it to a logical parition, we need GParted to manipulate partitions. To get GParted, I recommend you to download one of the following ISO's:
Use GParted to copy Windows Vista/7 from a primary partition to a logical partition. Then, delete the original primary partition containing Windows Vista/7. Grab your Windows Vista/7 install DVD and reboot your PC with it. Click “Repair Your Compure” option and open a Command Prompt. Type the following commands to fix the C:\Boot\BCD
file.
C:
bcdedit /enum /store C:\Boot\BCD
bcdedit /store C:\Boot\BCD /set {bootmgr} device partition=C:
bcdedit /store C:\Boot\BCD /set {default} device partition=C:
bcdedit /store C:\Boot\BCD /set {default} osdevice partition=C:
Reboot. Use the following GRUB commands to start Windows Vista/7. In this example, (hd0,5) is the logical partition that has Windows Vista/7.
root (hd0,5)
chainloader +1
boot
Validating the System Restore Drive
After booting Windows Vista/7, open the System Properties dialog and make sure that the Available Disks in System Protection tab are all valid.
No comments:
Post a Comment