无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 3925|回复: 8
打印 上一主题 下一主题

虚拟/现实纠缠在一起,我用的是vhd系统还是真实的系统?--已经ok

[复制链接]
跳转到指定楼层
1#
发表于 2012-12-19 18:23:30 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
在win7下做备份得到g:\win7.vhd文件,然后用bootedit将g:\win7.vhd挂到启动菜单里.<br />启动时从vhd进入win7,我在桌面上建立一个vhd.txt&nbsp; &nbsp;然后重启动进入真实win7,发现vhd.txt在真实win7桌面上也有.<br /><br />又重启动进入vhd-win7,从任务管理栏里发现凡是系统服务均来自于vhd-win7分区,而从start菜单里启动的应用程序,均来自于真实的win7分区,非系统服务(自己装的服务)也来自于真实win7分区.<br />这样的话,如果我要从vhd-win7全部覆盖恢复真实win7分区就不可能了.&nbsp;&nbsp;那怎么用vhd-win7来覆盖恢复真实win7呢?<br /><br />我做vhd的方法&nbsp; &nbsp;我是通过控制面板/系统和安全/备份和恢复做的win7-vhd,放在G:\tool\vhd\3db3efca-39e6-11e2-a76e-806e6f6e6963.vhd<br /><br />然后在管理员cmd下<br />C:\&gt;bcdedit /copy {current} /d "vhd boot (locate)"<br />The entry was successfully copied to {dc491325-321d-11e2-8b21-dd5424cffe8b}.<br /><br />C:\&gt;bcdedit /set {dc491325-321d-11e2-8b21-dd5424cffe8b} device vhd=[G:]\tool\vhd\3db3efca-39e6-11e2-a76e-806e6f6e6963.vhd<br />C:\&gt;bcdedit /set {dc491325-321d-11e2-8b21-dd5424cffe8b} osdevice vhd=[G:]\tool\vhd\3db3efca-39e6-11e2-a76e-806e6f6e6963.vhd<br />C:\&gt;bcdedit /set {dc491325-321d-11e2-8b21-dd5424cffe8b} detecthal on<br /><br />重启动后选 vhd boot (lvocate),进入win7-vhd后, 虚拟win7与真实win7就混在一起了<br /><br /><br />1.请问,我怎么知道我用的是真实win7,还是vhd的win7.<br />2.为啥,启动进入vhd-win7后,在桌面上建立的vhd.txt,却出现在真实win7的桌面上?<br />3.真实win7桌面上建立的一个real.txt,结果也出现在了启动后进入的vhd-win7的桌面上了?



-----------------------经过下面几个贴子的指点,将vhd里的所有mounteddevices删除后,vhd加载后正常。特此感谢!!!

[ 本帖最后由 2012blackantt 于 2012-12-21 13:17 编辑 ]
2#
发表于 2012-12-19 19:59:04 | 只看该作者
因为你把硬盘系统直接搬进了VHD,你VHD系统注册表
HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices
里面\DosDevices\C: 的数据实际还是你硬盘的分区,你VHD启动后还是读取的硬盘系统。

解决办法删掉VHD系统注册表的\DosDevices\C:
回复

使用道具 举报

3#
发表于 2012-12-19 20:12:51 | 只看该作者
没用过系统自带的备份和恢复,进来学习学习。
回复

使用道具 举报

4#
 楼主| 发表于 2012-12-19 21:34:37 | 只看该作者
原帖由 <i>11ydy</i> 于 2012-12-19 19:59 发表 <a href="http://bbs.wuyou.net/redirect.php?goto=findpost&pid=2640686&ptid=273493" target="_blank"><img src="http://bbs.wuyou.net/images/common/back.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open(this.src);}" onmousewheel="return imgzoom(this);" alt="" /></a><br />
因为你把硬盘系统直接搬进了VHD,你VHD系统注册表<br />
HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices<br />
里面\DosDevices\C: 的数据实际还是你硬盘的分区,你VHD启动后还是读取的硬盘系统。<br />
<br />
解决办法删掉VHD系统注册表 ...
<br />

   我先试试!

那怎么从开始做vhd时就避免这种情况呢?
回复

使用道具 举报

5#
 楼主| 发表于 2012-12-20 08:52:08 | 只看该作者
原帖由 <i>11ydy</i> 于 2012-12-19 19:59 发表 <a href="http://bbs.wuyou.net/redirect.php?goto=findpost&pid=2640686&ptid=273493" target="_blank"><img src="http://bbs.wuyou.net/images/common/back.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open(this.src);}" onmousewheel="return imgzoom(this);" alt="" /></a><br />
因为你把硬盘系统直接搬进了VHD,你VHD系统注册表<br />
HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices<br />
里面\DosDevices\C: 的数据实际还是你硬盘的分区,你VHD启动后还是读取的硬盘系统。<br />
<br />
解决办法删掉VHD系统注册表 ...
<br />

VHD系统注册表里的\DosDevices\C: 要怎么才能删除呢?

我进vhd后,在注册表里删除它,重启动进vhd后,它又有了!
回复

使用道具 举报

6#
发表于 2012-12-20 12:35:26 | 只看该作者

回复 #5 2012blackantt 的帖子

重启后你在试试桌面新建个文件,看看硬盘系统有没有
回复

使用道具 举报

7#
 楼主| 发表于 2012-12-20 15:23:14 | 只看该作者
1.通过在真实win7下面挂上vhd,并用regedit删除 vhd的system\mounteddevices下的c:后,再 unload hive.
2.将vhd offline,并deattach
3.将vhd再attach,然后用regedit将vhd的注册表的system再挂上来,发现vhd的system\mounteddevices下的c:确实已经被删除
----------------------------
offline vhd,deattach vhd
-------------------------
重启动进入vhd win7
问题依旧,系统服务来自于vhd盘符,程序及非系统服务来自于c盘符
----------------------------------------------------
重启进入真实win7
attach vhd
用regedit将vhd的system\mounteddevices 挂上来,发现被删除的 c:又回来了!


  TMD,这是咋回事?
回复

使用道具 举报

8#
发表于 2012-12-20 16:33:41 | 只看该作者
原帖由 2012blackantt 于 2012-12-20 15:23 发表
1.通过在真实win7下面挂上vhd,并用regedit删除 vhd的system\mounteddevices下的c:后,再 unload hive.
2.将vhd offline,并deattach
3.将vhd再attach,然后用regedit将vhd的注册表的system再挂上来,发现vhd的sys ...

你自己盘符方面全混乱掉了。
建议你重新制作vhd,然后把mounteddevices下的项全删了
回复

使用道具 举报

9#
 楼主| 发表于 2012-12-21 09:14:14 | 只看该作者
原帖由 &lt;i&gt;fujianabc&lt;/i&gt; 于 2012-12-20 16:33 发表 &lt;a href="http://bbs.wuyou.net/redirect.php?goto=findpost&pid=2641160&ptid=273493" target="_blank"&gt;&lt;img src="http://bbs.wuyou.net/images/common/back.gif" border="0" onload="if(this.width&gt;screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width&gt;screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open(this.src);}" onmousewheel="return imgzoom(this);" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;<br /><br />&lt;br /&gt;<br />你自己盘符方面全混乱掉了。&lt;br /&gt;<br />建议你重新制作vhd,然后把mounteddevices下的项全删了
&lt;br /&gt;<br /><br /><br />在另外一个笔记本上做完vhd-win7后,在真实win7里attach vhd-win7后,用真实win7的regedit想把vhd-win7的注册表system,"load hive"进行编辑,竟然不行。原因是正被另一程序使用。<br /><br />&nbsp;&nbsp;太怪了,谁有这种克隆真实win7并挂入启动菜单的详细教程啊?  我估计是不是我做vhd-win7的某个步骤错了!我原来的做法是在真实win7的控制面板/create a system image里做出真实win7的克隆vhd,再用bcdedit的3条命令将此vhd挂到启动菜单里

[ 本帖最后由 2012blackantt 于 2012-12-21 09:16 编辑 ]
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-9-28 12:40

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表