Перейти к содержимому

Cannot find os partition s for disk 0 как исправить

  • автор:

Best Way to Fix “MBR2GPT Cannot Find OS Partition” in Windows 10

Generally, you can convert boot disk from MBR to GPT via the MBR2GPT.exe tool. However, sometimes, you might meet the “MBR2GPT cannot find OS partition” error message. Don’t worry, here we list the workable solution.

By Emily / Last Updated December 22, 2022

MBR2GPT Cannot find OS Partition for Disk 0?

Hi, experts, when i trying to convert my Win10 boot disk from MBR to GPT partition table, it keeps failing with the «Cannot find OS Partition(s) for disk 0». I have read many articles but nobody offered a clear solution for this. Anyone can help me out? Thanks a lot!

Mbr2gpt Cannot Find Os

MBR2GPT.EXE is a tool to help users convert an operating system disk from the MBR to GPT partition style without modifying or deleting any data on the boot disk. You can run it from a Windows Preinstallation Environment (Windows PE) command prompt, or from the full Windows 10 operating system (OS) by using the /allowFullOS option. It is available and located in the Windows\System32 directory on a computer running Windows 10 version 1703 or later.

To convert a system disk with earlier versions of Windows such as Windows 7, 8, or 8.1, you have to upgrade the operating system to Windows 10 first, then perform the MBR to GPT conversion. In particular, Microsoft declared that Windows 11 requires supporting UEFI if users plan to upgrade their Windows 10 to Windows 11 through the «Check for Update» feature. Thus, converting their MBR disk to GPT is also necessary.

Why MBR2GPT cannot find OS partition for disk 0 and how to solve it?

In general, you can use the MBR2GPT command line tool to convert your system disk from MBR to GPT. After this is done, you can boot Windows in modern UEFI mode rather than the old BIOS Legacy mode, and you can make the fullest use of 2TB+ hard drive. However, sometimes, it does not work and prompts the error message saying «Cannot find OS partition for disk 0». There could be many reasons behind this MBR2GPT conversion failure. One of the most important reasons might be the bad entries in the Boot Configuration data. To solve it, you can refer to the subsequent steps:

Step 1. Make use of diskpart and run the following commands to find out the OS partition and the system reserved partition and assign them a drive letter.

▸diskpart

▸select disk 0: the operating system disk

▸list partition

▸select partition 2: the partition where the Windows OS is installed

▸assign drive letter= w (or other available drive letter)

▸select partition 1: the system reserved partition

▸assign drive letter= b (or other available drive letter)

▸exit: exit the diskpart.exe

Assign Drive Letter

Step 2. Run the command “X: \Sources>dir /a w: \ “to take a further look into the Windows system partition to check whether there are the boot folder inside. If there is not required boot folders, then run the command “X: \Sources>dir /a b: \” to check the system reserved partition.

Find Boot Folder

Step 3. After you find the boot folder in either system partition or system reserved partition, you need to run the “X: \Sources>dir /a b: \Boot” to invoke the bcdedit tool and point it to the boot configuration data store that you have found.

Step 4. Look out the invalid entries now. Run the command: “X: \Sources>bcdedit /store B:\boot\bcd /enum all”. There are many hints for bad or invalid entries. For example, you might find “unknown” in some entry. They can be the remnant of a previous Windows installation or caused by some vicious software.

Check Invalid Entries

Unknown Entry

Step 5. Copy the identifier of the bad entry. Then, point bcdedit to the store again and ask it to delete the bad entry using the copied identifier.

Delete The Bad Entry

Step 6. Then you can try to run the “X: \Sources>bcdedit /store B:\boot\bcd /enum all” command again to check whether all are OK now.

When everything goes well, try the MBR2GPT tool again. You can make it done successfully this time.

Best way to evade «MBR2GPT cannot find OS partition» issue

Refer to the above solution and you can solve the “cannot find os partitions for disk 0” in MBR2GPT.exe tool. However, it is too complicatd and difficult to follow for most users. So, here we would like to share an easier tool to help you finish the MBR and GPT conversion. That is AOMEI Partition Assistant Professional. Compared with MBR2GPT, it owns the following advantages:

Finish the MBR to GPT conversion on an intuitive interface, easy to follow for both experts and newbies; Be able to work well on all editions of Windows 11/10/8/7 and Windows XP/Vista (32-bit and 64-bit); Support converting both system disk and non-system disk to from MBR to GPT partition styles without deleting any data on the disk. Besides converting disk from MBR to GPT, it can also convert any disk from GPT to MBR, likewise, without modifying disk data.

Now, you can download its demo version for a free trial or simulation.

Step 1. Install and run AOMEI Partition Assistant Professional. Right-click the system disk and choose “Convert to GPT Disk”.

Convert Disk to GPT

Step 2. In the next window, click “OK” to confirm your operation.

Confirm

Step 3. Back to the main interface, click on “Apply” to commit the pending operation.

Apply

If you want to convert MBR or GPT without loading operating system, you can first use this software to create a bootabale media, then boot computer from it and finish the conversion.

Make Bootable Media

Summary

This page tells how to solve “MBR2GPT cannot find OS partition” on Windows 10. Besides, we also introduce another tool to help you easily get around such issues. The AOMEI Partition Assistant Professional also comes with many other functions: clone MBR disk to GPT disk, or GPT disk to MBR disk, clone partition, transfer OS between MBR and GPT disk, convert dynamic disk to basic disk without deleting volumes, and more. If you are running Windows Server, please switch to the Server edition.

Cannot find os partition s for disk 0 как исправить

trying to integrate this step into my in-place TS Win7 to Win10 but it keeps failing with the "Cannot find OS Partition(s) for disk 0". I have read many articles but nobody offered a clear solution for this.

This is how most of our windows 10 machine’s disks look like. So Windows 1903 version, it should convert without problems but TS fails.

Any suggestions? We need to do this without data loss ofcourse.

All replies

Have you tried the workaround described the Known issue section of this article? It mentions an issue with win10 v1903 when MBR2GPT.exe runs inside an imaging process such as a System Center Configuration Manager task sequence. And the workaround is to copy the missing files and then commit the change.

For more details, we may refer to:

In addition, is the command line in task sequence is something like this?

MBR2GPT: Cannot find OS partition(s) for disk 0

When I had to face this issue. I got frustrated because there were no solutions available online. And to get Windows 11 running I needed to solve the issue.

After a lot of research, I found a genuine answer to this problem.

Converting MBR to GPT may become difficult as it just started to become important as windows 11 started rolling out. And almost everyone is facing issues with this. So, when I look into solving it, I found an interesting video by a YouTuber “IT Army”. He showed a proper way to resolve the problem.

Here you can check out the video.

In the process of moving Windows 10 from Legacy BIOS to UEFI using mbr2gpt command, you might encounter the error that says “Cannot find OS partition(s) for disk 0” error. In this video, He addressed one of the reasons behind this error.

MBR2GPT — утилита конвертации диска из MBR в GPT в Windows 10

date05.06.2020
useritpro
directoryWindows 10
commentsкомментариев 18

Mbr2gpt.exe – это встроенная консольная утилита Windows 10, которая позволяет сконвертировать диск с таблицей разделов MBR (Master Boot Record) в таблицу GPT (GUID Partition Table) без потери данных и без необходимости удаления существующих разделов на диске. Утилиту можно mbr2gpt использовать для конвертации таблицы разделов как в среде Windows PE (Windows Preinstallation Environment), так и непосредственно из запущенной Windows 10. С помощью утилиты можно изменить таблицу разделов с MBR на GPT как на диске с данными, так и на системном диске, на который установлена Windows 10 (с помощью параметра /allowFullOS).

Как работает утилита mbr2gpt?

Утилита mbr2gpt.exe входит в состав образа Windows 10, начиная с билда 1703 (Creators Update). При выполнении офлайн конвертации разметки диска из MBR в GPT, вы можете использовать mbr2gpt для билдов Windows 10 1507, 1511 и 1607 (и выше). Более ранние версии ОС (Windows 7, Windows 8.1) официально не поддерживаются.

В документации Mbr2gpt указано, что преобразования таблицы разделов диска в GPT, должны выполняться следующие условия:

  • Текущая разметка диска MBR;
  • На диске есть свободное место для размещения основной и дополнительной таблицы GPT в начале и конце диска;
  • В MBR таблице должно быть не более 3 разделов, один из которых активный (дополнительные и логические разделы должны отсутствовать);
  • В BCD конфигурации должна быть загрузочная запись, указывающая на раздел с Windows.

Логика работы утилиты Mbr2gpt при преобразовании диска из MBR в GPT следующая:

  1. Выполняется проверка совместимости диска для выполнения конвертации;
  2. Если на диске отсутствует системный раздел EFI (ESP), он создается за счет свободного места на одном из существующих разделов (если места недостаточно, появится сообщение об ошибке “ cannot find room for the EFI system partition ”);
  3. Загрузочные файлы среды UEFI копируются на раздел EFI/ESP;
  4. К диску применяются метаданные и таблица разделов GPT;
  5. Обновляется конфигурация загрузчика BCD.

При смене таблицы разделов на GPT данные на имеющихся разделах не затираются.

Синтаксис утилиты MBR2GPT:

mbr2gpt /validate|convert [/disk:] [/logs:] [/map:=] [/allowFullOS]

mbr2gpt в Windows 10

  • /validate – выполняется только проверка диска на возможность конвертации таблицы разделов (в том числе выполняется проверка, достаточно ли места для хранения основной и вторичной таблицы GPT: 16Кб + 2 сектора в начале диска и 16Кб + 1 сектор в конце);
  • /convert – запуск преобразования диска, при условии успешной валидации;
  • /disk:<disknumber> — задается номер диска, который нужно преобразовать в GPT. Если номер не задан, считается, что нужно сконвертировать системный диск (аналогично команде Diskpart: select disk system );
  • /logs: — указывается путь к каталогу, в который утилита MBR2GPT должна писать логи. Если путь не указан, используется каталог %windir%. Файлы журналов — diagerr.xml, diagwrn.xml, setuperr.log и setupact.log;
  • /map:= позволяет указать дополнительное сопоставление таблицы разделов между MBR и GPT. К примеру /map:42=. Номер MBR раздела описывается в десятеричной системе, а GPT GUID содержит разделители. Можно указать несколько таких сопоставлений;
  • /allowFullOS – по умолчанию утилита MBR2GPT запускается только в среде выполнения Windows PE. С помощью ключа allowFullOS можно запускать конвертацию системного раздела непосредествнно из запущенной Windows 10. Если не указывать этот параметр, при запуске из Windows, появится ошибка: “ ERROR: MBR2GPT can only be used from the Windows Preinstallation Environment. Use /allowFullOS to override ”.

Запуск конвертации таблицы разделов MBR в GPT без потери данных из Windows

Перед конвертацией таблицы разделов проверьте, возможно ли сконвертировать текущий системный MBR диск в GPT.

mbr2gpt.exe /disk:0 /validate /Logs:C:\logs /allowFullOS

mbr2gpt сконвертировать таблицу разделов из MBR в GPT

Строка MBR2GPT: Validation completed successfully говорит о том, что такую конвертацию можно произвести. Строка MBR2GPT: Disk layout validation failed означает, что диск нельзя конвертировать, т.к. он не удовлетворяет условиям.

Еще одна распространённая ошибка “ Cannot find OS partition(s) for disk 0 ” чаще всего она связана с использованием стороннего загрузчика, выбора неверного диска для конвертации. Также может помочь перенос файлов загрузчика Windows на системный диск ( bcdboot c:\Windows /f bios /s c: ), и проверьте корректность записей для среды WinRE в BCD ( reagentc /disable && reagentc /enable ).

Теперь можно выполнить преобразование таблицы разделов на системном диске:

mbr2gpt.exe /convert /disk:0 /allowFullOS

Конвертация диска из из MBR в GPT из установленной Windows 10 выполняется за считанные секунды.

Чтобы компьютер мог загрузится с нового раздела EFI, нужно перенастроить компьютер для загрузки в режиме UEFI. Перезагрузите компьютер, в настройках UEFI измените режим загрузки Legacy (BIOS) на UEFI (Pure) и сохраните изменения.

Настройки загрузки uefi

Windows 10 должна успешно загрузиться. С помощью утилиты msinfo32.exe можно убедиться, что Windows 10 загрузился в режиме BIOS Mode=UEFI.

Режим BIOS - UEFI

  • Возможность создавать разделы более 2 Тб;
  • Защита среды загрузки с помощью Secure Boot;
  • Технология раннего запуска защиты от вредоносного ПО — ELAM (Early Launch Antimalware);
  • Device Guard и Credential Guard в Windows 10 Enterprise;
  • Безопасный запуск (Measured Boot).

Использование MBR2GPT при установке Windows 10

Вы можете использовать утилиту mbr2gpt при установке Windows. Вы создали загрузочную UEFI флешку, и пытаетесь установить Windows 10 на диск с MBR разметкой на компьютере с UEFI. В этом случае появится ошибка:

Установка Windows на данный раздел невозможно. На выбранном диске находится таблица MBR-разделов. В системах EFI Windows можно установить только на GPT-диск.

Если у вас на MBR диске есть разделы с данными (он использовался в Legacy режиме или на компьютере с BIOS), и вы не хотите их удалять при смене таблицы разделов на GPT, можно прямо из окна установки Windows 10 выполнить конвертацию MBR диска в GPT.

mbr2gpt Failed to retrieve geometry for disk

  1. Нажмите сочетание клавиш Shift+F10 на экране установки чтобы открыть командную строку среды WinPE;
  2. Проверьте, можно ли сконвертировать диск в GPT-разметку. Выполните команду: mbr2gpt /validate
  3. Если команда вернула “Validation completed successful”, можно начать конвертацию диска;

mbr2gpt конвертировать системный MBR в GPT диск из winpe

При появлении ошибки “Failed to retrieve geometry for disk -1”, скорее всего у вас в компьютере подключено несколько дисков. Выполните команды diskpart -> list disk , определите номера дисков. Запустить проверку определенного диска можно командой: mbr2gpt /validate /disk:0

Возможные проблемы после преобразования таблицы разделов из MBR в GPT

После конвертации таблицы разделов с помощью mbr2gpt чаще всего проблемы возникают с BitLocker и Hyper-V (доступны в Pro и Enterprise редакциях Windows 10).

Если после конвертации диска при включении BitLocker появляется ошибка “ The system cannot find the file specified ”, скорее всего проблема со средой восстановления Windows Recovery Environment (WinRE).

Попробуйте переименовать файл %windir%\System32\Recovery\ReAgent.xml и запустить BitLocker (новый файл ReAgent.xml будет создан автоматически).

Также возможна ошибка при запуске виртуальных машин Hyper-V:

Для исправления ошибки нужно включить поддержки автозапуска Hyper-V в загрузчике BCD:

BCDEDIT /Set hypervisorlaunchtype auto

Если вы попытаетесь конвертировать диски со предудущими версиями Windows (7 или 8.1), утилита выдаст ошибку “ mbr2gpt cannot install new boot files ”. В этом случае рекомендуется сначала выполнить апгрейд до Windows 10 и только после этого конвертировать таблицу разделов.

Предыдущая статьяПредыдущая статья Следующая статья Следующая статья

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *