Loading

添加vhd的Windows启动菜单项

本文介绍如何挂载已经存在win 7 vhd文件的windows启动菜单项。

1,用windows 7安装光盘启动系统。

2,启动到如下界面

image

3,按Shift+F10进入命令行窗口

image

4,在命令行中,输入

X:\Sources>bcdedit /copy {current} /d "My New VHD Option"
或者
X:\Sources>bcdedit /copy {default} /d "My New VHD Option"
其中,{default}{current}启动列表中某个启动项的标识符(查看启动项列表命令:bcdedit /v)

This will return a GUID. Select it using the Mark command by right-clicking in the Command Prompt and copy it to the clipboard.

Now, using that {guid}, type these commands:

C:\>bcdedit /set {guid} device vhd=[driveletter:]\<directory>\<vhd filename>
C:\>bcdedit /set {guid} osdevice vhd=[driverletter:]\<directory>\<vhd filename>
C:\>bcdedit /set {guid} detecthal on

See the [driveletter:] stuff in brackets? It's NOT obvious, but you need to include those, so:

bcdedit /set {guid} device vhd=[C:]\win7\win7.vhd

NOTE:[driveletter:] need the Square brackets

 

How to Remove
-------------------------
To remove, run the following command in a elevated command prompt:

bcdedit /delete {guid} /cleanup
 
posted @ 2011-03-12 20:43  .net's  阅读(1727)  评论(0编辑  收藏  举报