[SOLVED] Attempting to convert bios to uefi

rapiddecline

Distinguished
Oct 4, 2009
89
1
18,535
Disk 1 is SSD; Disk 0 is HDD. Boot system selected is for SSd. Have not altered bios selecting from legacy yet.

I have attenpted to change to uefi using win10 adk and diskmanagement separately, as admin. Seems to be the same results- not converting.

The information I have indicated : verify mbr; Issue command: (in diskmanagement) mbr2gpt.exe/convert/allowfullos... As this resulted in return of command listing instructions . I used elevated prompt after trying command prompt in Winpe with same results.

The results in elevated prompt are :C:users\>mbr2gpt.exe /convert /allowfullos
EnablePrivilege: AdjusttokePrivileges failed (error:0x514)
Error: Failed to enable backup/restore privileges.
Check that you are funning in a process with elevated privileges.

I will appreciate advice on curing this issue.


Ps. How do I attach pictures?
 
Solution
from what i can tell you should do

mbr2gpt /validate

first before running the convert
fullos only needed if you run inside windows. By default, MBR2GPT.exe is blocked unless it is run from Windows PE. This option overrides this block and enables disk conversion while running in the full Windows environment. https://docs.microsoft.com/en-us/windows/deployment/mbr-to-gpt

mbr2gpt /convert
is all you need to type in winpe


reasons for that error are: https://www.thewindowsclub.com/mbr2gpt-failed-causing-privilege-issues-on-windows-10

PS pictures: upload to an image sharing website and share links here.
from what i can tell you should do

mbr2gpt /validate

first before running the convert
fullos only needed if you run inside windows. By default, MBR2GPT.exe is blocked unless it is run from Windows PE. This option overrides this block and enables disk conversion while running in the full Windows environment. https://docs.microsoft.com/en-us/windows/deployment/mbr-to-gpt

mbr2gpt /convert
is all you need to type in winpe


reasons for that error are: https://www.thewindowsclub.com/mbr2gpt-failed-causing-privilege-issues-on-windows-10

PS pictures: upload to an image sharing website and share links here.
 
Last edited:
Solution
from what i can tell you should do

mbr2gpt /validate

first before running the convert
fullos only needed if you run inside windows. By default, MBR2GPT.exe is blocked unless it is run from Windows PE. This option overrides this block and enables disk conversion while running in the full Windows environment. https://docs.microsoft.com/en-us/windows/deployment/mbr-to-gpt

mbr2gpt /convert
is all you need to type in winpe


reasons for that error are: https://www.thewindowsclub.com/mbr2gpt-failed-causing-privilege-issues-on-windows-10

PS pictures: upload to an image sharing website and share links here.


Attempted elevated command with mbr2gpt /validate /disk: 1 - response was "ERROR: MBR2GPT can only be used from the Windows Preinstallation Environment. Use /allowFullOS to override."

next tried "mbr2gpt/validate/disk: 1/allowfullos" still got the results showing /.... all of various configurations.

I'd prefer to alter bios config rather that re-inputting Win to obtain uefi setup.
 
i have shown that to a number of people and it seems to work from winpe, do you still get the errors from there?

  1. go to settings/update & security/recovery
  2. under advanced startup, click restart now button
  3. this restarts PC in a blue menu
  4. choose troubleshoot
  5. choose advanced
  6. choose command prompt
enter the commands. most of the reasons for that error don't exist in here.
system restore isn't running
nor is UAC
you can't run in admin in here but that shouldn't stop it.

I assume PC has got UEFI and its not from 2010 and doesn't actually support it?
 
Attempted elevated command with mbr2gpt /validate /disk: 1 - response was "ERROR: MBR2GPT can only be used from the Windows Preinstallation Environment. Use /allowFullOS to override."

next tried "mbr2gpt/validate/disk: 1/allowfullos" still got the results showing /.... all of various configurations.

I'd prefer to alter bios config rather that re-inputting Win to obtain uefi setup.
Strangely, I copied the mbr2gpt /validate /disk:1/allowFullOS from MS Win Deployment example and it worked.
Thank you for you helpful information.
 
  • Like
Reactions: Colif
Well the bios change didn't take. Rebooted and SSd still showing MBR. Suggestions?
Here's what I did:
C:\Windows\system32>mbr2gpt /validate /disk:0 /allowFullOS
MBR2GPT: Attempting to validate disk 0
MBR2GPT: Retrieving layout of disk
MBR2GPT: Validating layout, disk sector size is: 512 bytes
MBR2GPT: Validation completed successfully

When I rechecked diskpart, disk 0 was still mbr.


Disk ### Status Size Free Dyn Gpt
-------- ------------- ------- ------- --- ---
Disk 0 Online 465 GB 502 MB
Disk 1 Online 1863 GB 6144 KB
 
validate doesn't convert though
validate is just making sure drive can run the convert - Instructs MBR2GPT.exe to perform only the disk validation steps and report whether the disk is eligible for conversion.

you still need to run
mbr2gpt /convert

Convert - Instructs MBR2GPT.exe to perform the disk validation and to proceed with the conversion if all validation tests pass.

so do both commands and then swap BIOS boot method to UEFI. Important one is really the convert command
 
validate doesn't convert though
validate is just making sure drive can run the convert - Instructs MBR2GPT.exe to perform only the disk validation steps and report whether the disk is eligible for conversion.

you still need to run
mbr2gpt /convert

Convert - Instructs MBR2GPT.exe to perform the disk validation and to proceed with the conversion if all validation tests pass.

so do both commands and then swap BIOS boot method to UEFI. Important one is really the convert command
Finally got it to convert to uefi. Mobo was a 2013+ allowed uefi or legacy. Anyway the convert was the fix.
Thank you!! for your help