4
Windows 8.1 taught by Jawad Safari Ratan Mohapatra 1. Install Windows 8.1 Enterprise on VHD 2. Create an image of the Windows Installation 3. Store the Image on a shared folder 4. Apply the image on a second VHD 5. Convert the VHD to boot a computer from USB flash drive Personal Project. Windows 8.1 Native Boot using VHD

NativeBoot-RatanM

Embed Size (px)

Citation preview

Page 1: NativeBoot-RatanM

Windows 8.1 taught by Jawad Safari

Ratan Mohapatra 1. Install Windows 8.1 Enterprise on VHD2. Create an image of the Windows Installation3. Store the Image on a shared folder4. Apply the image on a second VHD5. Convert the VHD to boot a computer from USB flash

drive

Personal Project. Windows 8.1 Native Boot using VHD

Page 2: NativeBoot-RatanM

Summary

1. Create VM with Windows OS (8.1 Enterprise)

2. Capture Image and store in a shared folder

3. Apply Image on a new VHD

4. Check the OS in the VHD, shutdown and detach the VHD

5. Prepare USB drive:

1. Primary Partition 2. NTFS format 3. Copy the VHD from step-4 to the USB

6. Diskpart: (purpose: to make attach the VHD)

1. Note of the volume on USB, say F:

2. Select vdisk file=f:\win81ent.vhd 3. Attach vdisk

4. List vol 5. select vol 1 (for example, that containing the VHD)

6. Assign letter = r 7. Exit

7. CMD Prompt: r:\windows\system32\bcdboot r:\windows

8. Use Diskpart again to detach the VHD:

Select vdisk file:f:\win81ent.vhd Detach vdisk Exit

1. Boot the computer with the USB as the first option and select the OS. If you have no other OS on the computer you should load windows 8.1 automatically.

2. If you have multiple OS, make sure you change the boot order back to the way it was so the OS’s load with the boot manager on the hard disk

2015-July-21 Native Boot from VHD file 2

Reference OS Image.wim

Apply on VHD

Copy to USB

Attach File

Make Bootable

Detach File

Boot PC from USB

Page 3: NativeBoot-RatanM

Appendix

Creating a WinPE media:

1. Install Microsoft ADK

2. Open the Deployment & Imaging Tools Environment

3. COPYPE AMD64 C:\WINPE_64\

4. If you need a 32 bit version replace amd64 by x86

5. Creating the WinPE Media”

6. ISO file for CD/DVD:

MAKEWINPEMEDIA /ISO C:\WINPE_64 C:\SHARE\WINPE64.ISO (I SAVE IT IN SHARE)

7. To make a Flash drive:

MAKEWINPEMEDIA /UFD C:\WINPE_AMD64 F: (f is usb)

CMD line Boot related operations:

%systemroot%\system32\BCDBOOT %systemdrive%\windows (e.g., c:\windows\system32\bcdboot c:\windows)… makes

windows installation bootable

From Recovery console to fix Boot problems:

Fixing Boot Problems in MBR partition @ the recovery console

Win 7: bootrec /rebuildbcd bootrec /fixmbr bootrec /fixboot

Win 8: bootrec /fixmbr bootrec /fixboot bootrec /ScanOs bootrec /RebuildBcd

2015-July-21 Native Boot from VHD file 3

Page 4: NativeBoot-RatanM

For adding Image to GPT

2015-July-21 Native Boot from VHD file 4

1. Apply efi.wim- the prev. boot conf

2. Apply win.wim

3. Update Boot Configuration Setup:i. BCD boot MGR:

i. bcdedit /set {bootmgr} device partition=sii. bcdedit /set {memdiag} device partition=s

ii. BCD default Windows Loader to point to the OSiii.bcdedit /set {default} device partition =siv.Bcdedit /set {default} osdevice partition =sv. BCD Firmware entry to reference Win Boot MGRvi.bcdedit /set {FWbootmgr} displayorder {Bootmgr} /addfirst

A. 1. Capture efi.wim- the prev. boot confB. 2. Capture win.wim