如何從本地存儲WIM文件啟動Windows Vista系統
本文轉自:西行資訊
Windows AIK提供了極好的創建Windows PE基礎鏡像的機會,而且這些鏡像都是以WIM文件提供,并很容易轉成ISO文件刻錄到CD或DVD。WIM文件也可以用于通過WDS(Windows Deployment Services)從網絡啟動,微軟網站也提供了從USB驅動器或干凈的硬盤建立啟動WIM文件的教程,但是卻沒有提供詳細的有關把WIM啟動鏡像放到本地硬盤并在Vista啟動菜單提供可選啟動選項的細節。
根據一份文檔,Ray找到了創建該選項的途徑,可以從C:Sourcesboot.wim啟動計算機。方法如下:
1. 復制從Windows Vista安裝DVD中的bootboot.sdi文件到C:boot (注意:這個文件夾是隱藏的)
2. 使用下列命令序列在BCD中創建ramdiskoptions對象,字串'{ramdiskoptions}' 代表已知對象的GUID:
bcdedit /create {ramdiskoptions} /d 'Ramdisk options'
bcdedit /set {ramdiskoptions} ramdisksdidevice partition=c:
bcdedit /set {ramdiskoptions} ramdisksdipath bootboot.sdi
3. 創建啟動入口:
bcdedit -create /d 'Windows PE boot' /application OSLOADER
4. 第3步返回了與剛剛創建的啟動入口相關的GUID,運行下列命令配置這個啟動入口:
bcdedit /set {NewGUID} device ramdisk=[c:]sourcesboot.wim,{ramdiskoptions}
bcdedit /set {NewGUID} path windowssystem32bootwinload.exe
bcdedit /set {NewGUID} osdevice ramdisk=[c:]sourcesboot.wim,{ramdiskoptions}
bcdedit /set {NewGUID} systemroot windows
bcdedit /set {NewGUID} winpe yes
bcdedit /set {NewGUID} detecthal yes
bcdedit /displayorder {NewGUID} /addlast
OK,在啟動時就會出現 'Windows PE boot'選項,然后從c:sourcesboot.wim啟動機器。