2009年7月21日星期二
Windows7基于usb和vhd的安装
目前环境
Host os:windows7RC Build7100
Usb drive: 4GB
Windows7 RC Build7100 ISO Image
D盘有15GB空间,可以创建10GB的vhd虚拟磁盘
1、Format the USB Drive
1)Plug in your USB Flash Drive
2)Open a command prompt as administrator (Right click on Start > All Programs > Accessories > Command Prompt and select “Run as administrator”
3)Find the drive number of your USB Drive by typing the following into the Command Prompt window:
diskpart
list disk
The number of your USB drive will listed. You’ll need this for the next step. I’ll assume that the USB flash drive is disk 1.
4)Format the drive by typing the next instructions into the same window. Replace the number “1” with the number of your disk below.
select disk 1
clean
create partition primary
select partition 1
active
format fs=NTFS
assign
exit
也可以直接将usb驱动器格式化为ntfs文件系统格式
2、Make the Drive Bootable
1)将windows7的iso映像mount,假定盘符为z:
2)以管理员权限进入shell,执行cd /d z:\boot
3)假定usb drive盘符为i,执行bootsect /nt60 i:
4)关闭shell窗口
3、将z盘下的安装文件全部拷贝至usb设备
4、选择usb设备为启动设备重启主机,开始安装。进入“语言选择”页面时,按shift+f10键调出命令提示符窗口。
5、创建vhd虚拟盘,vhd是微软虚拟机产品virtual pc中的虚拟硬盘文件。
D:>diskpart
diskpart>create vdisk file=d:\win7.vhd type=fixed maximum=10000
diskpart>select vdisk file=d:\win7.vhd
diskpart>attach vdisk
diskpart>exit
先创建虚拟磁盘,并将其加载
6、按正常方式安装,选择分区是注意选择vhd虚拟磁盘,当然也要先将其创建分区、格式化之后才能进行系统安装。
7、安装完系统后,为了方便辨识,修改操作系统启动选项,
C:\Windows\system32>bcdedit
Windows Boot Manager
--------------------
identifier {bootmgr}
device partition=C:
description Windows Boot Manager
locale en-US
inherit {globalsettings}
default {current}
resumeobject {845c5bcc-6547-11de-bc2b-ee6c8f8bfac6}
displayorder {845c5bcd-6547-11de-bc2b-ee6c8f8bfac6}
{current}
toolsdisplayorder {memdiag}
timeout 3
Windows Boot Loader
-------------------
identifier {845c5bcd-6547-11de-bc2b-ee6c8f8bfac6}
device vhd=[D:]\win7.vhd
path \Windows\system32\winload.exe
description Windows 7
locale en-US
inherit {bootloadersettings}
osdevice vhd=[D:]\win7.vhd
systemroot \Windows
resumeobject {845c5bcc-6547-11de-bc2b-ee6c8f8bfac6}
nx OptIn
detecthal Yes
Windows Boot Loader
-------------------
identifier {current}
device partition=C:
path \Windows\system32\winload.exe
description Windows 7
locale en-US
inherit {bootloadersettings}
recoverysequence {845c5bca-6547-11de-bc2b-ee6c8f8bfac6}
recoveryenabled Yes
osdevice partition=C:
systemroot \Windows
resumeobject {845c5bc8-6547-11de-bc2b-ee6c8f8bfac6}
nx OptIn
C:\Windows\system32>bcdedit /set {845c5bcd-6547-11de-bc2b-ee6c8f8bfac6} descript
ion "Windows7 RC X86 Build7100 VHD"
The operation completed successfully.
8、正常启动vhd系统,发现在该系统下,vhd为系统分区,其它分区在该系统下同样可见。
Host os:windows7RC Build7100
Usb drive: 4GB
Windows7 RC Build7100 ISO Image
D盘有15GB空间,可以创建10GB的vhd虚拟磁盘
1、Format the USB Drive
1)Plug in your USB Flash Drive
2)Open a command prompt as administrator (Right click on Start > All Programs > Accessories > Command Prompt and select “Run as administrator”
3)Find the drive number of your USB Drive by typing the following into the Command Prompt window:
diskpart
list disk
The number of your USB drive will listed. You’ll need this for the next step. I’ll assume that the USB flash drive is disk 1.
4)Format the drive by typing the next instructions into the same window. Replace the number “1” with the number of your disk below.
select disk 1
clean
create partition primary
select partition 1
active
format fs=NTFS
assign
exit
也可以直接将usb驱动器格式化为ntfs文件系统格式
2、Make the Drive Bootable
1)将windows7的iso映像mount,假定盘符为z:
2)以管理员权限进入shell,执行cd /d z:\boot
3)假定usb drive盘符为i,执行bootsect /nt60 i:
4)关闭shell窗口
3、将z盘下的安装文件全部拷贝至usb设备
4、选择usb设备为启动设备重启主机,开始安装。进入“语言选择”页面时,按shift+f10键调出命令提示符窗口。
5、创建vhd虚拟盘,vhd是微软虚拟机产品virtual pc中的虚拟硬盘文件。
D:>diskpart
diskpart>create vdisk file=d:\win7.vhd type=fixed maximum=10000
diskpart>select vdisk file=d:\win7.vhd
diskpart>attach vdisk
diskpart>exit
先创建虚拟磁盘,并将其加载
6、按正常方式安装,选择分区是注意选择vhd虚拟磁盘,当然也要先将其创建分区、格式化之后才能进行系统安装。
7、安装完系统后,为了方便辨识,修改操作系统启动选项,
C:\Windows\system32>bcdedit
Windows Boot Manager
--------------------
identifier {bootmgr}
device partition=C:
description Windows Boot Manager
locale en-US
inherit {globalsettings}
default {current}
resumeobject {845c5bcc-6547-11de-bc2b-ee6c8f8bfac6}
displayorder {845c5bcd-6547-11de-bc2b-ee6c8f8bfac6}
{current}
toolsdisplayorder {memdiag}
timeout 3
Windows Boot Loader
-------------------
identifier {845c5bcd-6547-11de-bc2b-ee6c8f8bfac6}
device vhd=[D:]\win7.vhd
path \Windows\system32\winload.exe
description Windows 7
locale en-US
inherit {bootloadersettings}
osdevice vhd=[D:]\win7.vhd
systemroot \Windows
resumeobject {845c5bcc-6547-11de-bc2b-ee6c8f8bfac6}
nx OptIn
detecthal Yes
Windows Boot Loader
-------------------
identifier {current}
device partition=C:
path \Windows\system32\winload.exe
description Windows 7
locale en-US
inherit {bootloadersettings}
recoverysequence {845c5bca-6547-11de-bc2b-ee6c8f8bfac6}
recoveryenabled Yes
osdevice partition=C:
systemroot \Windows
resumeobject {845c5bc8-6547-11de-bc2b-ee6c8f8bfac6}
nx OptIn
C:\Windows\system32>bcdedit /set {845c5bcd-6547-11de-bc2b-ee6c8f8bfac6} descript
ion "Windows7 RC X86 Build7100 VHD"
The operation completed successfully.
8、正常启动vhd系统,发现在该系统下,vhd为系统分区,其它分区在该系统下同样可见。
标签: windows7 vhd usb
订阅 博文 [Atom]