下面是在r2下的操作过程
这个主系统是r2,但是我安装的时候没有设置200m的隐藏分区,所以bootmgr在c盘
Microsoft Windows [Version 6.1.7000]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\Users\Administrator>diskpart
Microsoft DiskPart version 6.1.7000
Copyright (C) 1999-2008 Microsoft Corporation.
On computer: WIN-P8BJ7VUVP3P
DISKPART> select disk 0 //定位到第一块硬盘
Disk 0 is now the selected disk.
DISKPART> create partition extended //建立扩展分区
DiskPart succeeded in creating the specified partition.
DISKPART> create partition logical //建立逻辑分区
DiskPart succeeded in creating the specified partition.
DISKPART> assign //分配盘符
DiskPart successfully assigned the drive letter or mount point.
DISKPART> format fs=ntfs quick //快速格式化为ntfs格式
100 percent completed
DiskPart successfully formatted the volume.
DISKPART> select partition 2 //到第二个分区,也就是刚建立的分区
Partition 2 is now the selected partition.
DISKPART> create vdisk file=e:\000.vhd maximum=20000 //在e盘建立一个20g的动态vhd虚拟磁盘文件
DiskPart successfully created the virtual disk file.
DISKPART> select vdisk file=e:\000.vhd //定位到vhd文件
DiskPart successfully opened the virtual disk file.
DISKPART> attach vdisk //将vhd以磁盘形式挂载
DiskPart successfully attached the virtual disk file.
DISKPART> create partition extended //建立扩展分区
DiskPart succeeded in creating the specified partition.
DISKPART> create partition logical size=8000 //建立一个大小为8g的逻辑分区
DiskPart succeeded in creating the specified partition.
DISKPART> assign letter=x //分配盘符为x
DiskPart successfully assigned the drive letter or mount point.
DISKPART> format fs=ntfs quick //快速格式化
100 percent completed
DiskPart successfully formatted the volume.
DISKPART> create partition logical //在剩余空间建立逻辑分区
DiskPart succeeded in creating the specified partition.
DISKPART> assign letter=y //分配盘符为y
DiskPart successfully assigned the drive letter or mount point.
DISKPART> format fs=ntfs quick //快速格式化
100 percent completed
DiskPart successfully formatted the volume.
DISKPART> exit //退出diskpart
Leaving DiskPart...
C:\Users\Administrator>Desktop\imagex.exe /apply d:\sources\install.wim 4 x:\ //将win7 u版x86释放到x分区
ImageX Tool for Windows
Copyright (C) Microsoft Corp. All rights reserved.
[ 100% ] Applying progress
Successfully applied image.
Total elapsed time: 6 min 22 sec
C:\Users\Administrator>x:\Windows\system32\bcdboot x:\Windows /s c: //配置启动环境
Boot files successfully created.
C:\Users\Administrator>bcdedit /enum //查看启动项
Windows Boot Manager
--------------------
identifier {bootmgr}
device partition=C:
description Windows Boot Manager
locale en-us
inherit {globalsettings}
default {default}
resumeobject {7fe1a75c-f9e4-11dd-96ac-000c297e72d9}
displayorder {default}
{current}
toolsdisplayorder {memdiag}
timeout 30
Windows Boot Loader
-------------------
identifier {default}
device partition=X:
path \Windows\system32\winload.exe
description Windows 7
locale en-us
inherit {bootloadersettings}
osdevice partition=X:
systemroot \Windows
resumeobject {7fe1a75c-f9e4-11dd-96ac-000c297e72d9}
nx OptIn
detecthal Yes
Windows Boot Loader
-------------------
identifier {current}
device partition=C:
path \Windows\system32\winload.exe
description Windows Server 2008 R2
locale en-US
inherit {bootloadersettings}
recoverysequence {5e4b7d58-ea09-11dd-940a-ba082ff5f3b6}
recoveryenabled Yes
osdevice partition=C:
systemroot \Windows
resumeobject {5e4b7d56-ea09-11dd-940a-ba082ff5f3b6}
nx OptOut
C:\Users\Administrator>bcdedit /set {default} description "win7x86" //将启动项名称修改为win7x86
The operation completed successfully.
C:\Users\Administrator>Desktop\imagex.exe /apply d:\sources\install.wim 4 y:\ //将win7 u版x64释放到y分区
ImageX Tool for Windows
Copyright (C) Microsoft Corp. All rights reserved.
[ 100% ] Applying progress
Successfully applied image.
Total elapsed time: 10 min 29 sec