如何從本地存儲(chǔ)WIM文件啟動(dòng)Windows Vista系統(tǒng)
本文轉(zhuǎn)自:西行資訊
Windows AIK提供了極好的創(chuàng)建Windows PE基礎(chǔ)鏡像的機(jī)會(huì),而且這些鏡像都是以WIM文件提供,并很容易轉(zhuǎn)成ISO文件刻錄到CD或DVD。WIM文件也可以用于通過WDS(Windows Deployment Services)從網(wǎng)絡(luò)啟動(dòng),微軟網(wǎng)站也提供了從USB驅(qū)動(dòng)器或干凈的硬盤建立啟動(dòng)WIM文件的教程,但是卻沒有提供詳細(xì)的有關(guān)把WIM啟動(dòng)鏡像放到本地硬盤并在Vista啟動(dòng)菜單提供可選啟動(dòng)選項(xiàng)的細(xì)節(jié)。
根據(jù)一份文檔,Ray找到了創(chuàng)建該選項(xiàng)的途徑,可以從C:Sourcesboot.wim啟動(dòng)計(jì)算機(jī)。方法如下:
1. 復(fù)制從Windows Vista安裝DVD中的bootboot.sdi文件到C:boot (注意:這個(gè)文件夾是隱藏的)
2. 使用下列命令序列在BCD中創(chuàng)建ramdiskoptions對(duì)象,字串'{ramdiskoptions}' 代表已知對(duì)象的GUID:
bcdedit /create {ramdiskoptions} /d 'Ramdisk options'
bcdedit /set {ramdiskoptions} ramdisksdidevice partition=c:
bcdedit /set {ramdiskoptions} ramdisksdipath bootboot.sdi
3. 創(chuàng)建啟動(dòng)入口:
bcdedit -create /d 'Windows PE boot' /application OSLOADER
4. 第3步返回了與剛剛創(chuàng)建的啟動(dòng)入口相關(guān)的GUID,運(yùn)行下列命令配置這個(gè)啟動(dòng)入口:
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,在啟動(dòng)時(shí)就會(huì)出現(xiàn) 'Windows PE boot'選項(xiàng),然后從c:sourcesboot.wim啟動(dòng)機(jī)器。
