Unknown's avatar

About PC Paramedic, Inc.

I am computer technician and have been working in the field for over 25 years. I grew up with computers at home and we had them before my school had any.

Convert bootable Windows MBR to GPT

I tried backing up the boot drive of an older Dell Inspiron and restoring it to a new Dell Inspiron 3020 but the new Dell UEFI BIOS doesn’t support booting from an MBR. The solution is to convert the hard drive from MBR to GPT.

Steps to convert MBR to GPT.
1. Restored the backup of old Dell to an M.2 drive and put it in a computer that supports MBR.
2. Booted from a USB drive with Windows 11.
3. Opened Command Prompt
4. Run Diskpart and see what is the drive number is of the M.2 drive
5. Go to windows\system32 and run mbr2gpt /validate /disk:x (where x is the drive #)
6. If validation is successful then run mbr2gpt /convert /disk:x (where x is the drive #)
7. Installed the M.2 drive in the new Dell computer.
8. In the UEFI BIOS of the new Dell computer I change the following 2 items. I am not sure if they were all necessary (1. changed RAID to AHCI/NVMe. 2. turned off Secure boot.)

Errors

https://learn.microsoft.com/en-us/windows/deployment/mbr-to-gpt

Four log files are created by the MBR2GPT tool:

  • diagerr.xml
  • diagwrn.xml
  • setupact.log
  • setuperr.log

These files contain errors and warnings encountered during disk validation and conversion. Information in these files can be helpful in diagnosing problems with the tool. The setupact.log and setuperr.log files have the most detailed information about disk layouts, processes, and other information pertaining to disk validation and conversion.

Open photos in Windows Photo Viewer

  1. run registry file
  2. then right click on a photo, select open with, click “choose another app”, click “more apps”, click “Windows photo Viewer”, click “always use this app…”, click OK

copy the following lines and paste it in a file with the .reg extention

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Applications\photoviewer.dll]

[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell]

[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open]
"MuiVerb"="@photoviewer.dll,-3043"

[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\
6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\
00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,\
25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,50,00,68,00,6f,\
00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5c,00,50,00,68,00,\
6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,65,00,72,00,2e,00,64,00,6c,00,6c,\
00,22,00,2c,00,20,00,49,00,6d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\
5f,00,46,00,75,00,6c,00,6c,00,73,00,63,00,72,00,65,00,65,00,6e,00,20,00,25,\
00,31,00,00,00

[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open\DropTarget]
"Clsid"="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}"

[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\print]

[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\print\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\
6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\
00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,\
25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,50,00,68,00,6f,\
00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5c,00,50,00,68,00,\
6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,65,00,72,00,2e,00,64,00,6c,00,6c,\
00,22,00,2c,00,20,00,49,00,6d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\
5f,00,46,00,75,00,6c,00,6c,00,73,00,63,00,72,00,65,00,65,00,6e,00,20,00,25,\
00,31,00,00,00

[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\print\DropTarget]
"Clsid"="{60fd46de-f830-4894-a628-6fa81bc0190d}"





source https://www.howtogeek.com/225844/how-to-make-windows-photo-viewer-your-default-image-viewer-on-windows-10/#:~:text=To%20use%20Windows%20Photo%20Viewer,as%20the%20default%20image%20application.