[How-To] Backup and Restore UEFI Win8 Image.pdf

(381 KB) Pobierz
[HOW-TO] Backup and Restore OS Image under WinPE
SA4 Kin 2012/05
Make WinPE Bootable USB
1. Prepare a USB drive which size is larger than 200MB.
2. Use diskpart to build the USB drive
sel disk 1
create par primary
active
format quick fs=fat32
(UEFI only support FAT32)
3. Plug out and in again to apply the settings.
4. Copy the files WinPE needed to the USB drive.
(get WinPE4.0 64bit pure from tpe_sa4 server)
Backup
1.
2.
3.
Boot up to WinPE4.0
Use diskpart to check the partition letters.
DISKPART> list vol
Create image by DISM command
Dism /Capture-Image /ImageFile:c:\win8.wim /CaptureDir:E:\ /Name:"Windows8"
4.
Save the image file *.wim to USB HDD for restore.
Restore
1. Boot up to WinPE4.0
2. Use diskpart to erase/create partitions.
a. Restore to the same disk
Use diskpart to format the Windows partition
list disk
sel disk 0
(Select the disk of Windows)
list part
sel part 4
(Select the partition of Windows)
format quick fs=ntfs
b. Restore to another one disk
Use diskpart script file to completely erase the disk and conver to GPT
DiskPart /s F:\CreatePartitionsGPT.txt
*Microsoft recommends partition size:
System Recovery 300MB/ EFI System 100MB/ MSR 128MB
*Only modify the Windows Partition size to needed. (ex. 30GB)
*Contents of CreatePartitionsGPT.txt
[Begin]
select disk 0
clean
convert gpt
create partition primary size=300
set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
format quick fs=ntfs
assign letter="T"
create partition efi size=100
format quick fs=fat32 label="System"
assign letter="S"
create partition msr size=128
create partition primary size=30000
format quick fs=ntfs label="Windows"
assign letter="W"
[End]
3. Restore image by DISM command
Dism /apply-image /imagefile:D:\Win8.wim /index:1 /ApplyDir:W:\
4. Set up a basic system partition
for Eng OS command
X:\Windows\System32\bcdboot W:\Windows /l en-US
5. Shutdown or Reboot the system
WinPE command
shutdown system: Wpeutil shutdown
reboot system: exit
Append image
We could use /append-image to save file size for pure OS and all driver OS.
Dism /Append-Image /ImageFile:win8b8250.wim /CaptureDir:C:\ /Name:alldriver
Get imageinfo
We could check the index number which is needed to use bye the /get-imageinfo command.
Dism /Get-ImageInfo /ImageFile:d:\win8b8250.wim
Zgłoś jeśli naruszono regulamin