在Vista上使用VHD啟動Windows 7
2024-06-28 13:09:16
供稿:網友
以下的操作需要:
1. 干凈安裝的Windows 7計算機一臺
2. U盤一個
3. Vista或者Widows 7的啟動光盤一張
4. 你想要折騰的Vista計算機(一臺或多臺)
為了在安裝Vista的計算機上使用VHD啟動,我們需要下面三個步驟
復制Windows 7的引導文件(啟動包含對VHD的支持)
備份Vista的引導文件
用Windows 7的引導文件替換Vista的引導文件
復制Windows 7的引導文件
為了能夠從VHD啟動計算機,機器的引導文件必須支持VHD格式文件的讀寫。Windows 7的引導文件包含了這一功能,我們需要做的就是把Windows 7的引導文件復制出來并且覆蓋Vista的引導文件。Windows 7的引導文件有兩個:BootMgr和BCDEdit.exe. BootMgr通常在系統分區的根目錄,BcdEdit.exe在C:/Windows/System32文件夾下。
找一臺工作正常的Windows 7計算機,連接上一個U盤,并用管理員權限執行以下的命令:
C:/windows/system32>xcopy /h /y bcdedit.exe f:/ (F盤是U盤的盤符)
/H - 復制隱藏和系統文件
/Y - 對確認提示進行默認YES應答
C:/>cd/
C:/>xcopy /h /y bootmgr f:/
完成后安全的把U盤拔下,備用。
備份Vista的引導文件,在替換Vista的引導文件之前,我們必須進行備份。步驟如下:
啟動進入Vista,用管理員權限執行以下的命令:
C:/windows/system32>cd/
C:/>xcopy /y /h bootmgr bootmgr.sav
PRess f after prompted
C:/>cd Windows/System32
C:/windows/system32>xcopy /y /h bcdedit.exe bcdedit.sav
Press f after prompted
用Windows 7的引導文件替換Vista的引導文件
這是最關鍵的一步,我們需要把之前從Windows 7提出出來的引導文件復制到Vista上。我們可以用Vista安裝盤啟動計算機,并進入Windows恢復工作臺(或者Windows PE啟動計算機),并且執行下面的操作:.
C:/>attrib bootmgr –s –h –r (Note: C: Vista的系統分區)
Attribute command with –s –h –r changes the System, Hidden and Read Only attributes of a given file.
C:/>e: (Note: E: 之前備份Windows 7引導文件的U盤)
E:/>xcopy /y /h bootmgr c:/bootmgr
E:/>xcopy /y /h bcdedit.exe c:/windows/system32
搞定!接下來,您就可以像在Windows 7一樣,從Vista啟動VHD鏡像文件了!