Convert from MBR to GPT issue

Hi All,

I have a new dell pc optiplex 5040 and I wanted to use UEFI instead of legacy boot thus need to convert, I used cmd to convert but I am getting virtual disk service error the operation is not allowed on a disk that contains page file volume, I had try to unselect Automatically manage paging file size for all drivers paging size for each drive, but still couldn't work. I would like to ask if anyone know what caused virtual disk service error the operation is not allowed on a disk that contains page file volume. I have only one partition and currently window 7 and wanted to upgarde to win 10 uefi.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Manojkumar RaneCommented:
You cannot convert MBR disk to GPT which contains partitions.

Check article :

You can change a disk from MBR to GPT partition style as long as the disk does not contain any partitions or volumes.

You can use thirdparty partitioning tools to convert disk from MBR to GPT.
Ref :

NOTE : If you convert disk containing system partition, your system will not boot.
xchiazyxAuthor Commented:
Hi Sir,

Thank you for reverting.

I have one Healthy (OEM Partition), RECOVERY - Healthy (System, Active, Primary Partition) and OS (C) Healthy (Boot, Page File, Crash Dump, Primary Partition). When I right click them it the Delete volume is unable to select, only shrink volume is available. And can I check with you which one is able to remove? When I uses cmd list disk only 0 appear which is mean I have one partition? Kindly correct me if I am wrong.

David Johnson, CD, MVPRetiredCommented:
list disk   shows you the physical drives
what you need to do is
list disk
select disk 0
list partition

converting a mbr boot to a uefi boot means losing everything on the disk..
to delete partitions that are special partitions you have to use the override parameter
select partition 3
delete partition override

"You cannot delete the system partition, boot partition, or any partition that contains the active paging file or crash dump (memory dump) file"  Which means you have to do it form a boot disk and not the O/S

What specific reasonining do you want to move from MBR to GPT disk? For most people it doesn't make sense.
Learn SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

xchiazyxAuthor Commented:
Hi Sir,

Thank you for reverting back.

I want to use UEFI window 10, currently windows 7 legacy, is require gpt disk to install it. I don't know is I deleted this few partition will cause my pc to crash. Kindly advice.

noxchoProduct ManagerCommented:
I want to use UEFI window 10, currently windows 7 legacy, is require gpt disk to install it. I don't know is I deleted this few partition will cause my pc to crash. Kindly advice.
You cannot do it the simple way as you think it. You MUST install Windows 10 new. If you convert existing system into GPT (and it is currently configured to boot from MBR) then it will crash.
So new install.
To do this copy out all important data from the drives to USB drive.
Then boot the machine into BIOS and enable there UEFI.
After that boot the PC from Windows 10 installation media and proceed with installation to the step where you can select partition. Use there advanced mode and delete all existing partitions.
When done - select HDD to install Windows 10 and let it partition everything automatically. It will install Windows onto GPT drive.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
xchiazyxAuthor Commented:
Hi Sir,

Thank you for reverting back,

I have just bought a dell optiplex 5040, I wanted to upgrade to windows 10 using the CD given but it doesn't install windows 10 and instead ask for me to choose the language, keyboard and lastly troubleshoot or turn off your pc. The dell win 10 os cd given to me written " Already installed on your computer" but it's windows 7, that is very weird.  I had set the boot option to UEFI and untick/tick enable legacy option roms, secure boot off and on, and yet still unable to install load window 10 from the cd. I had contract dell live chat and they had no idea thus like to check if anyone know about dell uefi boot. Alot said must set GPT to make it boot to uefi, but I am afraid deleted this 3 default partition will cause my pc to crash. Any help will be appreciate.

noxchoProduct ManagerCommented:
Yes, sure it will crash and make your PC unbootable. You can download full version of Windows 10 ISO and install it from it. If you have Windows key of course.
Why at all do you want to have it UEFI? You can upgrade your Windows 7 to Windows 10 directly. Through updates like explained here:
Check here as well how to upgrade it:
David Johnson, CD, MVPRetiredCommented:
from windows 7 insert the disk and select upgrade.  If you boot useing efi then it requires that the disk be gpt or it won't install. if you boot from mbr it won't install to a gpt disk
xchiazyxAuthor Commented:
Thank to all the help
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 10

From novice to tech pro — start learning today.