To create a bootable WinPE media on your USB drive and perform the MBR to GPT conversion, follow these steps:
Step 1: Prepare WinPE Files
- Make sure you have the Windows Assessment and Deployment Kit (ADK) installed on your desktop. You mentioned that you have downloaded it, so ensure it's the latest version.
- Locate the installed WinPE files on your computer. They are usually found in a path like:
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\Oscdimg
Step 2: Open Command Prompt
- Click on the Start menu, search for "Command Prompt," right-click on it, and select "Run as administrator" to open an elevated command prompt.
Step 3: Navigate to the WinPE Files Directory
- In the Command Prompt, navigate to the directory where you found the Oscdimg utility. Use the
cd
command to change directories. The command will look like this (update the path according to your installation location):
cd "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\Oscdimg"
Step 4: Create WinPE ISO
- Now, you will use the Oscdimg utility to create the WinPE ISO image. Use the following command:
oscdimg -n -m -bC:\path\to\boot\etfsboot.com C:\path\to\WinPE\ISO C:\path\to\WinPE\WinPE.iso
Explanation of the parameters:
-
-n
: Allows long filenames (required). -
-m
: Enables ISO 9660 file format with no Microsoft Joliet extensions. -
-b
: Specifies the path to the boot sector file (etfsboot.com
). ReplaceC:\path\to\boot\etfsboot.com
with the correct path toetfsboot.com
on your system. -
C:\path\to\WinPE\ISO
: Replace this with the path where you want to create the temporary ISO files (it will be used to create the final ISO). -
C:\path\to\WinPE\WinPE.iso
: Replace this with the desired path and filename for the final WinPE ISO file.
Step 5: Copy WinPE to USB
- After creating the WinPE ISO, you need to extract its contents to the USB drive (G:). You can use a tool like 7-Zip to do this, or you can use the built-in File Explorer in Windows 10.
- Once you have extracted the contents of the WinPE ISO to the USB drive, you should have a bootable WinPE USB.
Step 6: Convert MBR to GPT
- Boot your computer from the WinPE USB.
- Once WinPE is loaded, open Command Prompt from within WinPE.
- Use the
diskpart
utility to convert the MBR disk (Disk 1 in your case) to GPT. Be extremely careful while usingdiskpart
as it can erase data if not used correctly.
Here are the steps to convert MBR to GPT using diskpart
:
diskpart
list disk
select disk X (Replace X with the number of the MBR disk)
clean
convert gpt
exit
Remember to replace X
with the appropriate disk number of the MBR disk you want to convert to GPT.
- Verify the conversion using the
list disk
command again. The disk should now be listed as GPT.