A Solution to "Cannot find OS partition(s) for disk 0" - MBR2GPT
HTML-код
- Опубликовано: 4 окт 2024
- While using mbr2gpt for a conversion from MBR partitioning scheme to GPT partitioning scheme, a common error is:
"Could not find OS partition(s) for disk 0"
In this video, I'll show you a potential reason for this error and a resolution for the problem, using bcdedit.
This was a crucial step in getting my technology fixed without getting stolen from. Thank you very much.
Outstanding! Glad to have found your solution. I had exactly the same issue as described in your tutorial.
Legend. This solved my issue and I could find a solution anywhere else!
Thanks you ! Impossible to found solution in winpe / forums etc, you saved to me a lot of time :)
after typing the bcdedit /store etc... it shows me the boot manager and loader, nothing says unknown and the identifier is (bootmgr) and (default) what do i do?....
Please help me , I can’t find any “Unkown”
You helped me so much, a great thank you (i had to use bcdboot c:\Windows /f bios /s c: before it works tho), i had issues to update windows to make Ray Tracing works, now it perfectrly runs.
Thx, after spending several hours your video tutorial solved my issues. you are my hero bro!!!
Thanks a million!!!! I found two unknown partitions and your solution helped! I really appreciate it!
Awesome, your video is very concise and helpful!
The mbr2gpt conversion failed on my computer because my HDD had too many partitions (4). After I deleted the recovery partition, it failed again due to a bad boot entry from the deleted partition. Thanks for this easy fix :-)
Yes! This is literally my same problem!
At first I was getting errors because disk 0 wasn't my OS disk, it was actually my old OS disk before I swapped from an HDD to an SSD. So I figured out the correct disk, figured out it had too many partitions. Then I went through the same process of deleting the extra recovery partition.
Awesome! fixed my VMs not booting after 1909 upgrade issue. Thanks!
THANK YOU!!!!! .... I had the same error with (3) Unknown entries in the boot. I deleted all (3) and it worked like a charm.
Glad to be of help!
Hi i followed all the steps but i cant find anything that say ‘unknown’ in that step, please help
Thank you so much!!! This worked perfectly!!
Glad it helped!
You are a hero bro, it worked!
my old system m.2 didnt work for my new build, finally an easy solution
This Really helped me. Thanks keep up the good work!
Long time no see?
Glad you came back.
Yup, it's been almost 5 years. I am glad to be back. A few more videos in the pipeline ...
I am also taking requests!
Omg thank you Bro. Your solution is awesome. 👍👍
thank you captain. Thanks to you, I was able to find the issue (I had several wrong entries in BCD). It would be good that Microsoft provide checklist or automatic coherency check when mbr2gpt doesn't work
Fantastic video, this helped me fix my issue!
Glad it helped!
You are a lifesaver. Love you dude.
So what if we dont have any unknown entries and we are still getting the mbr2gpt error?
did you ever figure this out? I thought i was blind and kept skipping over it but i guess not
I ended up getting a completely new drive and reinstalling windows.
This right here, THE Best. Thanks man!
Glad to be of help! :)
Amazing, you just earned a new subscriber
THAT works. It´s not the nicest way to do it, because just deleting the pointer to (in my case) the recovery partition still leaves windows recovery service malfunctioning (see also: reagentc /info) and prompts an error after converting mbt to gbr. BUT: Since I don´t plan to use a recovery partition anyways, I happily live with that. The question is, WHY on earth would mbr2gpt need a recovery partition present in the first place and no way to disable the check? That´s soo Microsoft :)... Thanks for pointing me to this solution!
thank you brother, you fixed my issues
Dude. Fucking legend. I tracked my issue all the way back to this and it actually worked. Thanks so much. I was ready to give up.
Wow! thanks, exactly what I needed :)
Thanks that worked perfectly. Only issue I had is the delete parameter does not work in powershell, it must be ran in cmd.
Thanks you stepbrooo I was stuck in the BIOS
thanks man, it worked :) you saved my day
You just helped me install Linux mint beside win boot manager thank you so much! I actually had 2 boot folders. 1 Boot folder in primary part and 1 boot folder in system reserved. No idea how that happened.
Excellent ! thank you
Cheers mate! you saved me! thank you very much!
Excellent. I can solve the problem with my system. Thank you
Thank you for your comment!
@@NehalJWani hi but when doing it on SHIFT+Restart troubleshoot PC, Run CMD, it keeps saying Wrong Password, Incorrect password for my Microsoft account ?
I cannot access the CMD in that PE environment pls help me.
Hello, could you help me?
I have two Disks, my system reserved partition is on the first one, windows is on the second one. Is that why i get the error? and if yes, what can i do?
did you figure it out ?
Legend. Awesome
hey bro please reply there is no "unknown" entries please
Thanks! U helped me alot
Hello! I'm here again. 😅 I have wiped my HDD and Convert it to GPT using EaseUS Partition Master and it failed. Now the hard drive isn't showing. Not even in the Disk Management. I touched the hard drive to sense if it still has a power and it does. It's not ticking, it's just undetectable. Did the shitbox just died? Is it repairable?
I only have Recovery partitions and the main one where W10 is installed.
So when I check for the Boot folder I can find it in the main disk (C), however, I don't have BCD itself in the Boot folder, I only have "BCD.bak".
So I can't use 'bcdedit /store...', it will give me the error "The system cannot find the file specified."
What I can use is only bcdedit withou '/store' and this command will give me 3 entries, 1 for Windows Boot Manager and 2 for Windows Boot Loader.
In one of the Boot Loaders, there is an entry with the attributes 'device' and 'osdevice' set as *unknown*. Can I delete this entry?
I tried to write as understanding as possible, thanks.
great working solution. ty !
You made my day !
thank you a lot. worked fine for me
Sir, What r d basic requirements to convert GPT from MBR?
I have legacy with i3 gen, 4 gb ram 64bit Vaio laptop
Bro but hmare me disk layout validation failed for disk 0 .... to btao mai kya kruu
Please reply me
You are a genius.
How do u find the error at 2:19 if it's not unknown
this is too much for me to understand... while a fresh new copy of Windows, my laptop was on battery, i ran out of power and the installation stopped. Now I am stuck, can't install anymore, not even from an USB key. I think Windows doesn't see the hard drive because I don't see it either lol. But I can see it in diskpart.
If you can see it in diskpart, just try to clean it and restart installation from scratch:
diskpart
list disk
sel disk X (replace X with the number of the disk you want to install windows on)
clean (this will wipe of the entire partition table, be careful)
@@NehalJWani i did that part... "clean" lol. now i am stuck in the bios 😂
I hope you didn't clean out your removable media instead of your hard disk.
Amazing video.
I do not have the BOOT anywhere
I am trying to convert MBR to GPT , I don't see any [unknown] entries on the Windows Boot loader. I am stuck.
error : Cannot find OS partition(s) for disk 0
You could use another tool like testdisk - but be very careful while doing that.
@@NehalJWani Thanks.
@@simplyganesh6177 did you ever fix it?
@@NehalJWani can you make a video on this please?
Thanks! It worked!
Thank you! ❤️🔥🎉
Virtual Disk Service error:
Assigning or removing drive letters on the current boot or pagefile
volume is not allowed.
HOW CAN I FIX THIS
You need to follow the steps shown in the Video in a Windows PE/Recovery environment and not from within a fully booted Windows OS
@@NehalJWani hi but when doing it on SHIFT+Restart troubleshoot PC, Run CMD, it keeps saying Wrong Password, Incorrect password for my Microsoft account ?
I cannot access the CMD in that PE environment pls help me.
It works, thank you
What If.... I've literally deleted both the OS partition and the Recovery partition and created a new disk from that unallocated space.
But now have no windows partition. Why can WindowsPE run all of MBR2GPT and yet suddenly require an existing OS partition to start the job? any workaround?
Probably the MBR2GPT devs assumed that it would be run on a disk with a standard Windows installation in legacy MBR mode. If all you want to do is to convert your exiting partitioning layout to GPT regardless of what it contains, try testdisk or gdisk64
@@NehalJWani thank you kindly for the reply
will check them out!
"Assigning or removing drive letters on the current boot or pagefile volume is not allowed" while assigning letter, Do you have any solution, Please let me know
You need to run this inside a Windows PE/Recovery environment, not from inside a completely booted Windows OS.
@@NehalJWani hi but when doing it on SHIFT+Restart troubleshoot PC, Run CMD, it keeps saying Wrong Password, Incorrect password for my Microsoft account ? Although i type the right password for my Windows Signin. It doesn't work.
I cannot access the CMD in that PE environment pls help me.
Due you are really good
Thank you for your feedback :)
Wow!!!! perfect!!!!! thanks!!!!!
dir /a W:\ says that "the volume does not contain a recognized file system. please make sure that all required file system drivers are loaded and that the volume is not corrupted"
got it to work by changing W back to C and booting back into windows, going back to bios and booting onto my stick
@@znoppen Is your issue resolved now?
@@NehalJWani yes and no, let me explain..
@@NehalJWani I followed your tutorial and it successfully went from mbr to gpt. however, when I went into my bios to change from legacy to uefi (boot option control or something like that, gigabyte bios/mobo) and tried to boot into the drive, it would flash the windows logo for a quarter second, then that white spacebar would flash in the top left for like 10-15 seconds, and after that another windows logo for half a second and then it would restart and I would get back into bios (almost as if it crashed upon trying to boot into it)
also, when selecting the uefi specifically, not the SSD itself (boot override) I would get the manufacturers logo, and after 15 seconds it would kick me back to bios. been doing this for the past 12 hours. tried to boot into windows installation media on USB, won't do that either because it requires the pc to be uefi (and for some reason my PC won't let me use uefi as you can probably tell). thankfully I needed to get windows preinstallation environment, aka windows pe (an admin command prompt, which is where I executed your tutorial from) because this win10 media thing was a problem even before I converted my SSD. windows pe is bootable, and afaik the reason for that is because it's both mbr and gpt compatible, meaning my PC will let me boot into it. I tried unplugging all storage media/devices except win10 install media and it still won't boot, so it's not because it's thinking "oh no a converted drive I must stay in legacy!", if it can even do that. If you were wondering, bootrec does not exist for some reason so I can't use that in windows pe to recover or repair either. Tried resetting my bios, still doesn't work. tried the win10 media in every USB slot I have, no shot. BTW, same problem with flashing windows logo / manufacturers logo when trying to boot into win10 media.
@@NehalJWani Also tried, in almost every combination, to mess with CSM, fastboot (before conversion, it would ONLY boot if fastboot was on ultrafast, skipping bios), storage boot option control (thing with legacy and uefi options) and other pci device ROM priority (for GPU, together with port 60/64 emulation)
I can’t find any bad entries
I cant assign letter ? The argument for this command are not valid
I have an error where it says it cant
find Cannot find OS partition(s) for disk 1, my windows is already installed
Try to employ the same technique shown in the video. Just make sure to assign the drive letter to the correct partition containing the boot entries.
@@NehalJWani how do i assign it
@@korsan4954 In the video, I select disk 0, but you gotta select disk 1. Wherever I use 0, you use 1, and then follow the steps accordingly. At 0:30 in the video, I show how to assign drive letters.
@@NehalJWani the weird issue is that my system is installed on disk 0 not disk 1 so i didnt know whether to try this or not
@@korsan4954 There is no harm in any of the steps till the one I delete the bad entry. All other steps are read-only, so you can follow them nonetheless. Even the drive letter assignments are temporary and will be gone after reboot.
Hello. Thank you for this very informative video. But I don't understand why do you change dive letters to W and B. Do I have to do this with system reserved partition to be able to browse its content? If so, how can I make it work again a s system reserved partition later? I'd like to fix it and convert my drive to GPT without loosing any data or current Windows installation.
The drive letters assigned during the course of the operation is only temporary. They don't become permanent. And yes, they are assigned only for the fact that we want to be able to refer to them easily and also browse them if required. I chose W and B because W stands for Windows and B stands for Boot and I wanted to choose letters which are not likely to be already assigned to any existing partitions/volumes.
@@NehalJWani Thank you for the explanation Nehal. I was able to find a little bit more simple solution in the meantime. You actually just need to use "bcdedit /enum /v
" to determine recoverysequence string that should be deleted. I followed steps posted here: www.micah.soy/posts/converting-windows-10-legacy-bios-to-uefi-secure-boot/ I've already converted my OS drive from MBR to GPT and all works fine. The only strange thing is that the EFI system partition is now shown as FAT32, but I don't think that's relevant. Thanks again for your video that pointed me in the right direction. :)
@@SqbiDoo EFI partitions have to be FAT*. It's part of the specification. You can read more about it at en.m.wikipedia.org/wiki/EFI_system_partition
@@NehalJWani That explains it. BTW it seems that the "Cannot find OS partition(s) for disk _" error occurs if there is no recovery partition present. Such was my case and in the video I can see that for you as well. The error message is misleading, because MBR2GPT actually seeks for the OS disk and not partition - since it converts the whole disk and not a single partition. And OS disk normally consists of 3 partitions: system reserved partition - OS partition - recovery partition. And MBR2GPT looks for this layout. That's why you have to delete the recovery sequence if Windows RE is disabled after removing the recovery partition. I removed it because I had also a data partition on my OS disk and MBR2GPT requires that maximum number of partition is 3 (normally the ones mentioned above). IF I knew this I would backup and delete the data partition and save myself the trouble. MBR2GPT leaves much to be desired when it comes to functionality, on the other hand I think it's the only available solution to convert the OS disk to GPT without data loss that is free.
@@SqbiDoo MBR2GPT is not the only tool for this task (for doing this without data loss and 0$) . I have made 3 videos for this:
ruclips.net/video/Qk6_K9hVu_k/видео.html (uses testdisk)
ruclips.net/video/g1eXD30Fox4/видео.html (uses gdisk)
ruclips.net/video/etcztSQeHuA/видео.html (uses mbr2gpt)
What if i dont have the "unknown" files that you mentioned, what else shall i check for other than that?
The 'unknown' entries are generate duplicate/old entries that are now irrelevant. However, the mbr2gpt tool will still look for valid entries pointing to the OS partition. If there are no relevant ones, it can still error out with that error. In that case, I would try to use bcdedit to rebuild the boot configuration data and also check if the boot partition has been marked as 'active' or not.
@@NehalJWani so your saying that i should use bcdedit and how would i check if the boot partition has been marked active? Thanks for the reply btw appreciate it
@@scars5019 For checking if partition is active or not:
superuser.com/a/505854
@@scars5019 With bcdedit I would try something like:
bcdedit X:\Windows /s B: /f All /v
Where X is the driver letter assigned to the drive containing the Windows installation and B is the drive letter assigned to the partition that is supposed to contain the boot files (the active one)
Thank you!
Youre a god
I just don't have "boot" in the partitions, and I don't understand what to do with it at all
0:34 here only one partition appears, I just installed w10
Doesn't matter, legacy installations can be done in a single partition as well.
already figured out the problem. I use HD and SSD and when I went to install w10 some boot files were installed on the HD even though I was setting it to install only on the SSD. I managed to solve and install w11
Thanks
It doesnt worked for me :(
Did all steps complete without any errors?
thx alot for this
Is this going to erase all my hard disk information? Thank you!
They only deletion that I perform in the steps shown in the video is deletion of bad boot entries.
@@NehalJWani hi but when doing it on SHIFT+Restart troubleshoot PC, Run CMD, it keeps saying Wrong Password, Incorrect password for my Microsoft account ? Although i type the right password for my Windows Signin. It doesn't work.
I cannot access the CMD in that PE environment pls help me.
I only have 1 part? No recovery
Is it the same size as the partition in which Windows is installed?
@@NehalJWani scammeR
@@mortysmith2728 Thank your for your comment, but I am not trying to scam anyone.
I don't have this bcd file
bcdedit is a command, generally available in a standard Windows PE/Recovery environment.
Graciasssss❤
Если с BCD все в порядке, а проблема не решена, то напишите : bcdboot C:\windows /s C:
Caralho, teu russo filho da puta, tu salvou minha vida
Thx dude
THANX !
Good!
GOD DEMAIS HERMANO
Hi, could you please translate?
@@NehalJWani I said "TOO GOD BROTHER" thanks for help me
It didn't work
Try using testdisk/gdisk
I cover that as part of ruclips.net/video/g1eXD30Fox4/видео.html
hello, r you there to help me? Please!
If you still need help and are unsure what to do, you can reach out to me at: asknjw.herokuapp.com/ . I don't bite! I'll reply whenever I can.
I had to delete my recovery partition so I could extend my boot drive into the unallocated space I had (800gb) and hit this error, im a dumbass lol
thanks