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

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

2,启动到如下界面

添加vhd的Windows启动菜单项

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

添加vhd的Windows启动菜单项

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
 

相关文章:

  • 2022-12-23
  • 2021-12-03
  • 2022-12-23
  • 2021-11-04
  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
  • 2021-10-31
猜你喜欢
  • 2021-12-19
  • 2021-08-17
  • 2022-12-23
  • 2021-11-22
  • 2021-12-13
  • 2022-12-23
相关资源
相似解决方案