Загрузка Windows Recovery Environment (или любого WIM-образа) с USB flash

Windows Recovery Environment


WinRE Windows: , , , , , , , format C:.
, regedit.exe , , «» Windows.
DVD ISO-, WIM- — , DVD.
, USB- WIM-, , 2 WinRE (x32 + x64), «» DVD. AntiWinLocker, ISO .
, WIM- . .

GRUB4DOS, , Windows.


1) winre.wim, :

— , Win7 C:\Recovery\recovery-guid ( recovery-guid — /); Win8 — :\Recovery\WindowsRE.

:\Recovery , Windows « », 100-500 :\.
.

: \Recovery OEM , , .
, , DiskPart:

diskpart
DISKPART> list disk
DISKPART> select disk 0
DISKPART> list partition
DISKPART> select partition 2
DISKPART> detail partition
DISKPART> set id = 07 override
DISKPART> assign
DISKPART> exit

(disk 0 partition 2 , . / list; detail ID , )

: winre.wim, , , !


— DVD \sources\install.wim\System32\Recovery.

WIM- DISM:

md C:\wim
rem  Win7:
dism /Mount-Wim /WimFile:C:\Recovery\recovery-guid\winre.wim /Index:1 /MountDir:C:\wim /ReadOnly
dism /Mount-Wim /WimFile:D:\sources\install.wim /Index:1 /MountDir:C:\wim /ReadOnly
dism /Unmount-Wim /MountDir:C:\wim /Discard
rem  Win8/8.1/10:
dism /Mount-Image /ImageFile::\Recovery\WindowsRE\winre.wim /Index:1 /MountDir:C:\wim /ReadOnly
dism /Mount-Image /ImageFile:D:\sources\install.wim /Index:1 /MountDir:C:\wim /ReadOnly
dism /Unmount-Image /MountDir:C:\wim /Discard


7-Zip.

2) boot.sdi — winre.wim install.wim \Windows\Boot\DVD\PCAT, DVD \boot.

3) bootsect.exe , — WIM \Windows\System32, DVD \boot.


, , , FAT32 ( , NTFS, ), (). . :-)
, , :

diskpart
DISKPART> list disk
DISKPART> select disk 2
DISKPART> clean
DISKPART> create partition primary
DISKPART> select partition 1
DISKPART> active
DISKPART> format FS=FAT32
DISKPART> assign
DISKPART> exit

(disk 2 , . , ; format FS=NTFS, )


bootsect /nt60 E:

( E: — , )

bootmgr


, 2 : DVD .
1) :

bcdboot C:\Windows /l ru-ru /s E:


!
x32- WinRE x32-, , bcdboot.exe, x32. x64, , .
, 10 WinRE — (Windows Vista/7/8/8.1/10 + ) . . . :-)

2) DVD, ( Windows !):

\boot\fonts\chs_boot.ttf
\boot\fonts\cht_boot.ttf
\boot\fonts\wgl4_boot.ttf
\boot\bcd
\bootmgr

( — ; , C:bcdboot.exe, )

Windows
, bootmgr, , : , , , .
Win7 , Win8/8.1/10 — .
, , .
3 — bootmgr Windows 7, , — .
Windows .

bootmgr Windows 7, winre.wim Windows 10, .. .
: DVD — .



cd /d E:\boot
bcdedit /store bcd /copy {default} /d "Windows Recovery Environment"
bcdedit /store bcd /set {new-guid} device ramdisk=[boot]\boot\winre.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
bcdedit /store bcd /set {new-guid} osdevice ramdisk=[boot]\boot\winre.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
bcdedit /store bcd /set {new-guid} locale ru-RU

( {new-guid} — GUID , . )

, , , - BCD.
, : , Windows.

, DVD Windows 7 x32:

 Windows
-------------------
           {c53853d4-c6c5-11e5-af22-0018f368b2c9}
device                  ramdisk=[boot]\boot\winre.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
path                    \windows\system32\boot\winload.exe
description             Windows Recovery Environment
locale                  ru-RU
inherit                 {bootloadersettings}
osdevice                ramdisk=[boot]\boot\winre.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
systemroot              \windows
detecthal               Yes
winpe                   Yes
ems                     Yes


, winre.wim x64- Windows, WIM- device osdevice.

WIM-


winre.wim boot.sdi \boot .
( bcdedit ), .
boot.sdi.


BIOS USB, Windows.

P.S. , UEFI.
( ) .

UPD 02.02.2016, 15:40:
DISM.

Source: https://habr.com/ru/post/pt389907/


All Articles