Error no such partition entering rescue mode grub rescue windows 7

При включении компьютера на черном экране можно увидеть следующую ошибку: error no such partition. Это значит, что раздел с Linux был удален.

Главная » Windows » Появляется ошибка error no such partition | Как восстановить загрузчик

Хочу поделиться небольшой историей о том, как я благополучно снес Ubuntu, но ничем хорошим это не кончилось.

У меня на ноутбуке HP стоит Windows 10, но мне захотелось попрактиковаться в работе с Linux-системами, для чего я установил Ubuntu. Поработав в ней немного, я решил ее снести (стёр раздел с Ubuntu утилитой AOEMI Partition Assistant) и установить на виртуальную машину – Virtual Box. При этом, ноутбук я не выключал.

Я отошел на час и когда вернулся ноутбук выключен, когда я его включил, появляется сообщение на черном экране – no such partition grub rescue.

no-such-partition-grub-rescue

В нашем случае, GRUB – загрузчик для Linux, ведет запись информации на первый раздел диска MBR, файлы загрузчика помещаются на раздел с установленной системой в моем случае на раздел с Ubuntu.

Я удалил раздел с системой Ubuntu, в итоге загрузчика физически не существует, о нем остались только некоторые записи. Ноутбук не может ничего делать, а в Windows просто так вы не попадете.

  • Проводим восстановление загрузчика Windows 7
  • Как восстановить загрузчик в Windows 8
  • Проводим восстановление загрузчика Windows 10

К счастью, решение проблемы я нашел быстро, причем не одно, сейчас я расскажу, что нужно делать при появлении такой проблемы.

Для решения этой проблемы есть два способа – использование загрузочного Live CD дистрибутива Linux, либо загрузочный диск или флешка с Windows. При себе я имел только флешку с Windows. Но расскажу и о методе при помощи Linux.

Полезно: Как установить Ubuntu (Подробная инструкция)

Исправляем с помощью Linux

Возьмите загрузочный диск, можно и флешку с Linux, например, Mint, а может быть у вас есть Ubuntu. Создать такой носитель придется на другом компьютере. Загрузитесь с него. Теперь нам понадобится терминал, для этого зажимаем клавиши Ctrl+Alt+T. В терминале пишем команду:

sudo apt-get install lilo

Начинается загрузка пакета, а потом его установка, после чего вводим вот эту команду:

sudo lilo -M /dev/sda mbr

Хочу заметить, что для установки пакета вам понадобится интернет.

Теперь вы можете перезагрузить компьютер и убедиться, что ошибка error no such partition entering rescue mode исчезла.

Скорее всего вы столкнулись с проблемами еще при вводе команд. Например, не установился пакет lilo, либо вторая команда вообще не помогла. У меня было тоже самое и я не нашел этому решения, поэтому рекомендую использовать загрузочный диск с Windows.

Это интересно: Как избавиться от ошибки disk read error occurred

Исправляем с помощью Windows

В данном пункте мы будет восстанавливать загрузчик, а старые записи о grub будут очищены. Вот, что необходимо сделать:

  • При установленной операционной системе Windows 7 необходим загрузочный носитель, либо флешка с этой системой, хотя, может подойти и любая другая, например, Windows 8.
  • Загрузитесь с установочного диска / флешки. Должно появиться окно с предложением об установки Windows.
  • Нам нужна только командная строка, поэтому нажимаем комбинацию клавиш Shift+F10.

bootrec

  • В окне командной строки нужно ввести команду bootrec. На выходе мы получаем ключи, которые можем использовать с этой командной:
    • Bootrec /FixMbr – мы записываем главную загрузочную запись в системный раздел, а таблица раздела при это не перезаписывается. Применяем при повреждении загрузочной записи;
    • Bootrec /FixBoot – записывает новый загрузочный сектор. Применяется, если загрузочный сектор был заменен, поврежден;
    • Bootrec /ScanOs – ведется сканирование диска на все операционные системы, установленные на диске;
    • Bootrec /RebuildBcd – используется для поиска всех ОС на диске, а также для перестройки хранилища конфигурации загрузки.

Для восстановления загрузочной записи я ввел команду с таким ключом – Bootrec /FixMbr.

bootrec-fix-mbr

После этого я перезагрузил компьютер и все стало работать. Появилась эмблема Windows 10, и я благополучно оказался в системе.

Это интересно: Что делать при появлении ошибки The boot configuration data file is missing some required information или 0xc0000034 в Windows 8 | 8.1 | 10

Надеюсь данная статья поможет вам в решении ошибки error no such partition.

( 24 оценки, среднее 4.21 из 5 )

Некоторые пользователи, которые ранее настроили свои компьютеры на двойную загрузку дистрибутивов Windows и Linux (чаще всего с Ubuntu), сообщают, что их компьютер входит в режим восстановления Grub и отображает ошибку Нет такого раздела — Grub Rescue.

Ошибка Нет такого раздела — Grub Rescue

После тщательного изучения этой конкретной проблемы выясняется, что существует несколько различных ситуаций, которые могут вызвать появление этой проблемы. Вот список потенциальных виновников, которые могут нести ответственность за эту проблему:

  • Загрузчик GRUB поврежден или удален — если вы видите эту ошибку из-за какого-либо типа поврежденных данных, связанных с загрузчиком GRUP, или после того, как вы неохотно удалили связанные с ним данные, вы можете решить проблему, вручную перенастроив утилиту для загрузки с помощью правильные файлы.
  • Загрузчик неправильно настроен или поврежден. Поскольку эта проблема также может возникать из-за неправильно настроенных или поврежденных данных BCD, вы сможете решить эту проблему, перестроив данные конфигурации загрузки из командной строки с повышенными привилегиями.
  • Текущая конфигурация загрузки несовместима — если проблема вызвана неверными данными, которые загружаются в загрузчик GRUB, вы можете решить проблему, используя резервную копию реестра, чтобы восстановить ваш компьютер до хорошей конфигурации.

Теперь, когда вы знаете всех потенциальных виновников, вот список методов, которые другие затронутые пользователи успешно использовали для решения проблемы и предотвращения загрузки своего компьютера в режим восстановления Grub:

Безусловно, наиболее эффективное исправление, с которого вам следует начать, поскольку оно наименее разрушительно — это вручную перенастроить загрузчик GRUB и убедиться, что приоритет отдается основной ОС.

Несколько затронутых пользователей подтвердили, что им наконец удалось обойти состояние восстановления GRUB, выполнив ряд инструкций, предназначенных для ручной перенастройки загрузчика GRUP для определения приоритета основной ОС.

Если этот сценарий применим, следуйте приведенным ниже инструкциям, чтобы сделать это непосредственно через меню восстановления GRUB:

  1. Когда ваш компьютер войдет в режим восстановления GRUB, введите следующую команду и нажмите Enter, чтобы просмотреть все доступные разделы: ls
  2. После того, как вы это сделаете, вы должны получить обзор всех разделов, которые в настоящее время есть на вашем основном диске. На этом этапе вам необходимо убедиться, что вы выбрали основную ОС. В нашем случае правильный раздел (hd0, msdos2), поэтому мы использовали следующую команду для опроса раздела: ls (hd0, msdos2)

    Примечание. Убедитесь, что вы заменили раздел правильным примером в вашем случае. Если вы получили сообщение вроде «Файловая система — это ext2 или ext3», вы правильно определили раздел, в котором находится ваша основная ОС.
    Примечание 2: Если вы опрашиваете раздел и получаете сообщение «Файловая система неизвестна», вы выбрали неправильный раздел.

    Сообщение об ошибке неправильного раздела в GRUB

  3. После выбора правильного раздела введите «set» и нажмите Enter, чтобы запросить и получить окончательный список вашего основного раздела.
  4. Затем введите следующие команды и нажмите Enter после каждой команды, чтобы изменить приоритет загрузчика GRUB на правильный: set boot = (hd0, msdos5) set prefix = (hd0, msdos5) / boot / grub insmod normal normal
  5. После того, как вы введете последнюю команду, вы попадете в главное меню GNU Grub. Как только вы попадете на этот экран, просто выберите ОС, с которой вы хотите загрузиться, и нажмите Enter.
    Загрузка с основного раздела в GRUB

В случае, если этот метод не сработал для вас и последовательность загрузки в конечном итоге загрузится с той же ошибкой No such Partition -Grub Rescue, вернитесь к следующему потенциальному исправлению ниже.

Метод 2: восстановление файлов данных конфигурации загрузки (BCD)

Если первый метод не сработал для вас, следующим шагом будет использование утилиты данных конфигурации загрузки (BCD), чтобы найти установочные файлы Windows на всех дисках и добавить их обратно в список загрузки, чтобы последовательность загрузки могла найти это во время запуска.

Этот метод успешно использовался многими пользователями, которые ранее сталкивались с ошибкой No such Partition — Grub Rescue. Восстановление кластеров файлов BCD позволило им нормально выполнять двойную загрузку без принудительного входа в меню восстановления GRUP.

ВАЖНО! Этот метод потребует от вас подключения совместимого установочного носителя Windows. Если у вас его нет наготове, вы можете создать установочный носитель Windows с нуля и загрузить его на USB-накопитель.

Выполнив все требования, следуйте приведенным ниже инструкциям:

  1. Подключите USB-накопитель с установочным носителем и запустите компьютер обычным способом, нажав кнопку питания.
  2. Для доступа к кнопке настройки нажмите соответствующую кнопку в зависимости от производителя вашей материнской платы.Доступ к меню настройки BIOS / UEFI

    Примечание: ключ настройки будет отличаться от производителя к производителю. Чаще всего клавиша настройки представляет собой одну из клавиш F (F2, F4, F6, F8), клавишу Esc или клавишу Del (на компьютерах / ноутбуках Del). Если у вас возникли проблемы с доступом к меню настройки, поищите в Интернете конкретные инструкции по доступу к нему.

  3. Как только вы войдете в меню «Настройка», перейдите на вкладку «Загрузка» и убедитесь, что USB-накопитель, содержащий установочный носитель, установлен как вариант загрузки №1.Загрузка с установочного носителя
  4. Сохраните изменения, затем перезагрузите компьютер, дайте компьютеру загрузиться с установочного носителя и дождитесь загрузки установочных файлов.
  5. Когда вы перейдете на первую страницу, нажмите «Далее», затем нажмите «Восстановить компьютер» в правом нижнем углу экрана.Ремонт компьютера с установочного носителя
  6. Затем дождитесь загрузки меню «Восстановление», затем выберите «Устранение неполадок» и нажмите «Командная строка» в списке доступных параметров:Доступ к командной строке через меню восстановления

    Примечание. В некоторых версиях Windows 10 вы также можете загрузиться из меню «Восстановление», вызвав 3 последовательных прерывания системы во время процедуры запуска.

  7. Как только вы войдете в командную строку с повышенными привилегиями, введите следующую команду и нажмите Enter, чтобы исправить зависимости MBR, связанные с вашей установкой Windows: bootrec / fixmbr
  8. После успешной обработки команды введите следующие команды и нажмите Enter, чтобы исправить данные конфигурации загрузки, связанные с вашей установкой Windows: bootrec / fixboot

    Примечание. Если вы получаете сообщение об ошибке «Доступ запрещен» при вводе одной из двух вышеперечисленных команд, следуйте этим инструкциям, чтобы решить проблему с доступом к bootrec.

  9. Затем введите следующую команду и нажмите Enter, чтобы просканировать все ваши диски на наличие установочного носителя Windows: bootrec / scanos

    Примечание. Эта операция может занять некоторое время в зависимости от размера ваших разделов. Не закрывайте это окно до завершения операции.

  10. Если операция завершена успешно, введите следующую команду для эффективного восстановления данных конфигурации BCD: bootrec / rebuildbcd
  11. Когда вас попросят подтвердить, введите Y и нажмите Enter, чтобы подтвердить и начать операцию.Подтвердите операцию построения файловой системы BCD
  12. Наконец, введите «exit» и нажмите клавишу «Ввод», чтобы выйти из командной строки с повышенными привилегиями и позволить Windows нормально загрузиться.

В случае, если конечный результат такой же (попытка загрузки заканчивается той же ошибкой «Нет такого раздела»), перейдите к следующему способу ниже.

Метод 3: Использование резервной копии реестра для восстановления последней удачной конфигурации

Если ни один из вышеперечисленных методов не помог вам, возможно, вы сможете исправить текущую конфигурацию с помощью последней удачной резервной копии, которая должна позволить вам без проблем выполнять двойную загрузку.

Для этого вам потребуется использовать меню «Дополнительные параметры», чтобы открыть командную строку с повышенными привилегиями и выполнить ряд команд, которые позволят вам загрузиться с использованием последней удачной конфигурации.

Сообщается, что этот метод успешно использовался многими пользователями, столкнувшимися с ошибкой No such Partition -Grub Rescue.

Чтобы использовать резервную копию реестра для восстановления последней удачной конфигурации, следуйте приведенным ниже инструкциям:

  1. Вставьте совместимый установочный носитель Windows и загрузитесь с него, нажав любую клавишу при появлении соответствующего запроса.Загрузка с установочного носителя

    Примечание. Если у вас нет совместимого установочного носителя или ваша система не загружается с него, выполните шаги с 1 по 4 из метода 2.

  2. Как только вам удастся успешно загрузиться с установочного носителя, нажмите «Восстановить компьютер» в нижнем левом углу экрана.Ремонт вашего компьютера
  3. Когда вы, наконец, войдете в меню Advanced Recovery, нажмите «Устранение неполадок», затем нажмите «Командная строка» в списке доступных параметров.Доступ к командной строке через меню восстановления
  4. Как только вы войдете в командную строку с повышенными привилегиями, введите «C:» и нажмите клавишу ВВОД, чтобы получить доступ к разделу, в котором вы установили Windows. Если вы установили Windows на другой раздел, замените букву соответствующим образом.
  5. Затем введите «dir» и нажмите Enter, чтобы получить доступ к корневому каталогу диска с ОС.
    Примечание. Перед тем как продолжить, рекомендуется создать резервную копию текущего реестра. Для этого введите следующую команду и нажимайте Enter после каждой команды: cd windows system32 config MD backup copy *. * BackupРезервное копирование реестра
  6. Затем введите следующие команды и нажмите Enter, чтобы получить доступ к последней удачной конфигурации и изменить поведение по умолчанию для загрузки с нее: CD regback copy *. * ..
  7. Когда появится подсказка, нажмите A и еще раз нажмите Enter.
  8. Наконец, введите exit и нажмите Enter, чтобы выйти и нормально загрузиться. Это приведет вас в главное меню GRUP, где вы сможете выполнить двойную загрузку по своему усмотрению.

Some users that have previously configured their computers to dual-boot Windows and Linux distributions (most commonly with Ubuntu) are reporting that their PC is entering Grub Rescue Mode and displaying the error No Such Partition – Grub Rescue.

Error No Such Partition -Grub Rescue

After investigating this particular issue thoroughly, it turns out that there are several different situations that might trigger the apparition of this issue. Here’s a list of potential culprits that might be responsible for this issue:

  • GRUB Bootloader is Corrupted or Deleted – If you are seeing this error due to some type of corrupted data associated with the GRUP Bootloader or after you have unwillingly deleted data associated with it, you can fix the issue by manually reconfiguring the utility to boot using the correct files.
  • The bootloader is Misconfigured or Corrupted – Since this issue can also occur due to misconfigured or corrupted BCD data, you should be able to fix the issue by rebuilding the Boot Configuration data from an elevated Command Prompt.
  • Current Boot Configuration is inconsistent – In case the issue is being caused by bad data that’s being fed into the GRUB bootloader, you can potentially fix the issue by using a Registry Backup to restore your computer back to a good configuration.

Now that you know every potential culprit, here’s a list of methods that other affected users have successfully used to fix the issue and prevent their computer from booting into Grub rescue mode:

Method 1: Manually Reconfigure GRUB Bootloader

By far, the most effective fix and the one you should start with since it’s the least destructive is to manually reconfigure the GRUB bootloader and make sure that the primary OS is prioritized.

Several affected users have confirmed that they finally managed to bypass the GRUB rescue state by following a set of instructions designed to manually reconfigure the GRUP Bootloader to prioritize the main OS.

If this scenario is applicable, follow the instructions below to do so directly via the GRUB Rescue menu:

  1. Once your PC enters GRUB Rescue Mode, type the following command and press Enter to get an overview of all your available partitions:
    ls
  2. After you do this, you should get an overview of all partitions that you currently have on your primary disk. At this point, you need to make sure that you select the primary OS. In our case, the correct partition is (hd0,msdos2), so we used the following command to interrogate the partition:
    ls (hd0, msdos2)

    Note: Make sure to replace the partition with the correct example in your case. If you get a message saying something like ‘File System is ext2 or ext3‘, you have correctly identified the partition that holds your primary OS.
    Note 2: If you interrogate a partition and you get the message ‘Filesystem is unknown‘, you didn’t select the correct partition.

    Incorrect partition error message in GRUB
  3. Once the correct partition is selected, type the ‘set‘ and press Enter to interrogate and get a definitive listing of your main partition.
  4. Next, type the following commands and press Enter after each command to change the priority of GRUB Bootloader to the correct one:
    set boot = (hd0, msdos5)
    set prefix=(hd0, msdos5)/boot/grub
    insmod normal 
    normal
  5. After you input the final command, you’ll be taken to the main GNU Grub menu. Once you get to this screen, simply select the OS that you want to boot from and press Enter.
    Booting from the main partition in GRUB

In case this method didn’t work for you and the booting sequence eventually boots in the same No Such Partition -Grub Rescue error, move back to the next potential fix below.

Method 2: Rebuilding the Boot Configuration Data files (BCD)

If the first method didn’t work for you, the next step would be to use the Boot Configuration Data (BCD) utility to locate the Windows installation files on all disks and add them back to the boot list so that the booting sequence can locate it during startup.

This method was successfully used by a lot of users that were previously dealing with No Such Partition – Grub Rescue error. Rebuilding the BCD file clusters successfully allowed them to dual-boot normally without being forced into the GRUP Rescue menu.

IMPORTANT: This method will require you to plug in a compatible installation Windows installation media. If you don’t have one at the ready, you can create the Windows installation media from scratch and load it on a USB drive.

Once you meet all requirements, follow the instructions below:

  1. Plug-in the USB stick containing the installation media and start your computer normally via the power button.
  2. Access the Setup key by pressing the correspondent button depending on your motherboard manufacturer.
    Accessing the BIOS / UEFI Setup menu

    Note: The setup key will be different from manufacturer to manufacturer. Most commonly the Setup key is either one of the F keys (F2, F4, F6, F8), the Esc key, or the Del key (on Del computers/laptops). If you’re having trouble accessing the Setup menu, search online for specific instructions on accessing it.

  3. Once you’re inside the Setup menu, access the Boot tab and make sure to set the USB stick containing the installation media as Boot Option #1.
    Booting from the installation media
  4. Save the changes, then restart and allow your computer to boot from the installation media and wait for the installation files to load.
  5. Once you get to the first page, click on Next, then click on Repair your computer from the bottom-right corner of the screen.
    Repairing Computer via installation media
  6. Next, wait for the Recovery menu to load, then select Troubleshoot and click on Command Prompt from the list of available options:
    Accessing the Command Prompt via the Recovery menu

    Note: On certain Windows 10 versions, you might also be able to boot from the Recovery menu by forcing 3 consecutive system interruptions during the startup procedure.

  7. Once you’re inside the elevated Command Prompt, type the following command and press Enter to fix the MBR dependencies associated with your Windows installation:
    bootrec /fixmbr
  8. Once the command is processed successfully, type the following commands and press Enter to fix the Boot Configuration Data associated with your Windows installation:
    bootrec /fixboot

    Note: If you get the ‘Access is denied’ error while inputting one of the 2 commands above, follow these instructions to fix the bootrec access problem. 

  9. Next, type the following command and press Enter to scan all your disks for the Windows installation media:
    bootrec /scanos

    Note: This operation might take some time depending on the size of your partitions. Don’t close this window until the operation is complete.

  10. If the operation is completed successfully, type the following command to effectively rebuild the BCD configuration data:
    bootrec /rebuildbcd
  11. When asked to confirm, type Y and press Enter to confirm and start the operation.
    Confirm the operation of building the BCD file system
  12. Finally, type ‘exit’ and press enter to effectively leave the elevated CMD prompt and allow your Windows to boot normally.

In case the end result is the same (the boot attempt ends with the same No Such Partition error), move down to the next method below.

Method 3: Using the Registry Backup to Restore the last good Configuration

If none of the methods above have worked for you, you might be able to fix the current configuration with the last known good backup that should allow you to dual boot without issues.

Doing this will require you to use the Advanced Options menu to open an elevated Command Prompt and run a series of commands that will allow you to boot using the last known good configuration.

This method was reportedly used successfully by a lot of users dealing with the No Such Partition -Grub Rescue error.

In order to use the Registry Backup to restore the last known good configuration, follow the instructions below:

  1. Insert a compatible Windows installation media and boot from it by pressing any key when prompted to do so.
    Booting from the installation media

    Note: If you don’t have a compatible installation media or your system doesn’t boot from it, follow steps 1 to 4 from Method 2.

  2. Once you manage to successfully boot from the installation media, click on Repair your computer from the bottom-left corner of the screen.
    Repairing your computer
  3. Once you’re finally inside the Advanced Recovery menu, click on Troubleshoot, then click on Command Prompt from the list of available Options.
    Accessing the Command Prompt via the Recovery menu
  4. Once you are inside the elevated Command prompt, type ‘C:‘ and press enter to access the partition where you installed Windows. If you installed Windows on a different partition, replace the letter accordingly.
  5. Next, type ‘dir‘ and press Enter to access the root location of your OS drive.
    Note: It’s recommended to back up the current registry before going forward. To do this, input the following command and press Enter after each command:
    cd windowssystem32config
    MD backup
    copy *.* backup

    Backing up the Registry
  6. Next, type the following commands and press Enter to access the last known good configuration and modify the default behavior to boot from it:
    CD regback
    copy *.* ..
  7. When prompted by the prompt, press A and hit Enter once again.
  8. Finally, type exit and press Enter to exit and boot normally. This should take you to the main GRUP menu where you should be able to dual boot as you see fit.

Photo of Kevin Arrows

Kevin Arrows

Kevin is a dynamic and self-motivated information technology professional, with a Thorough knowledge of all facets pertaining to network infrastructure design, implementation and administration. Superior record of delivering simultaneous large-scale mission critical projects on time and under budget.

Данная статья рассказывает историю моих о мучениях и за одно несет в себе полезную информацию для тех, кто столкнулся с такой же проблемой «no such partition grub rescue». Часть с установкой, софтом и прочем будет сильно урезана, ибо статья не об этом. Итак, поехали!

Началось все с того, что захотелось мне после прочтения очередного номера журнала про линукс посмотреть вживую на все нововведения, ибо в последние годы не пользовался линукс дистрибутивами и сидел полностью на окнах. И вот скачал самый популярный дистрибутив Ubuntu, оторвал от диска D 100Гб на новый раздел L, установил, поигрался.

Надоело, поставил вместо него более любимый мною дистрибутив Linux Mint, поигрался, и вот решил сносить все это через пару дней.

Загружаюсь в Windows, управление дисками, раздел L – удалить, диск D расширить и возвращаю диску обратно его родные 100Гб.

Перезагружаюсь…BIOS…ASUS…error: no such partition grub rescue. Перезагружаюсь опять, BIOS – перепроверяю все настройки. Все верно, сохранить и перезагрузить. И опять после BIOS идет error: no such partition grub rescue. Ни выбора системы, ни возможности загрузить Windows. Сразу пошел за ноутом и гуглить.

Grub — это загрузчик систем, который устанавливается с Linux и пишет всю нужную информацию на самый первый раздел на диске — MBR (master boot record). А его файлы размещаются на диске с системой Linux

Так вот, после удаления Linux, компьютер просто «не знает, что делать» поскольку обращаясь в папку с grub, ничего не находит (все же было удалено). Вот и получаем «grub rescue».

Решения и тщетные попытки все исправить

Для начала, если есть желание удалить любой дистрибутив линукс, лучше прочтите, как это правильно делать. А не так, как я – удалить рездел и думать, что все так просто.

Если же вы не удаляли линукс, но получили эту ошибку «error: no such partition grub rescue>», то все можно легко исправить, указав в новый раздел и папку на нем с файлами GRUB подобной информации полно на форумах. Но в моём случае это не подходило, ибо удален не просто сам линукс, но и раздел на котором он был и возвращен к диску D. Ищу дальше и, натыкаясь на статью, что такую ошибку исправить можно 2 способами:

— исправить раздел MBR с помощью загрузочного диска Windows;
— исправить раздел MBR с помощью live CD с Linux.

У меня уже была флешка с Linux Mint – с нее и загрузился и выбрал «Попробовать Mint».
Открываем терминал (Ctrl+Alt+T) и пишем:

sudo apt-get install lilo ждем установки, далее sudo lilo -M /dev/sda mbr

После перезагружаемся и все должно работать, очень многим этот способ помог, но не мне. Выдавало на 2-й команде ошибку. Начал искать еще способы и наткнулся на пост о том, что можно запустить установку windows и на моменте управления дисками, удалить все разделы, включая «Зарезервировано системой» — и это свободное место преобразовать в новый раздел. Оставить только раздел с окнами и D. Записал образ, запустил установку, удалил все разделы, создал на их месте новый один раздел. Перезагрузка — no such partition grub rescue.

Хоть этот способ и многим помог, но опять же — только не мне. Идем дальше:

Запустить восстановление системы с диска/флешки, отрыть дополнительные параметры, консоль и там ввести bootrec.exe /fixmbr. Написало, что все выполнено успешно. Перезагрузка — no such partition grub rescue. Психанул запустил установку Windows и удалил все разделы, кроме D, создал один новый и переустановил систему. Все заработало.

P.S. Хоть я и не смог решить проблему «деликатными» методом, но по отзывам эти методы помогали большинству. Надуюсь, помогут и вам при такой проблеме. И вам не придется все переустанавливать.

Спасибо за внимание.

Earlier I installed Ubuntu 10.04 from a USB flash drive.

Since the system was unable to detect Ubuntu in the initial menu that appears on reoboting, I deleted the partition onto which I had installed Ubuntu while in Windows 7.

I then installed PowerISO which prompted me to reboot the system.

Now however I get the following error:

error: no such partition
grub rescue>

How can I fix this?

Gaff's user avatar

Gaff

18.3k15 gold badges56 silver badges68 bronze badges

asked Sep 27, 2010 at 8:52

kamalbhai's user avatar

1

answered Sep 29, 2011 at 21:28

Dan's user avatar

DanDan

6483 gold badges7 silver badges17 bronze badges

2

Part of GRUB lives in the Master Boot Record (MBR), while the other parts live in the Linux boot partition. Since you killed the that partition, GRUB can’t load all the other files that it needs.

To fix this, you need a Windows install CD so that you can get into the recovery console. From there, use the commands FIXMBR and FIXBOOT (I think) to remove the last remaining parts of GRUB. After that, your machine should boot up as normal.

answered Sep 27, 2010 at 11:13

MBraedley's user avatar

MBraedleyMBraedley

2,8044 gold badges27 silver badges46 bronze badges

2

Ever get into the freaking condition, when your system doesn’t boot successfully and throw your control to a grub rescue utility informing the following error?

error: no such partition.
Entering rescue mode...
grub rescue>

I went through this situation today. And here is how I rescued with it.

Note: Other possible solutions might be available, but this is just what worked for me. You are recommended to explore the web first, then go with the solution that suits *your* condition perfectly.

1. Reason

Actually, I was trying to resize my Linux (Ubuntu 16.04 LTS) partition which is dual booted with Windows 10. For that, my first step was to unallocate the partition which I wanted to merge with my ext4 (Linux partition). For this, first I logged in Windows and tried to unallocate the partition I wanted to merge (Local Disk :D) but I found out that it can be done with Gparted from Ubuntu as well. But still.

“I started to explore windows storage management console, and a couple of times I detached and reallocate this partition, together with separating out a partition of 3 GB from it. I was just playing and testing the working of the console. But this fun, lead me to freak, later in the day.”

2. Problem

Now the next step was to use Gparted from Linux. But for that, I needed to reboot and login to my Ubuntu 16.04 LTS and here is the twist. When I did reboot my laptop to switch the OS. Oh my God! I get encountered with this scary error.

error: no such partition.
Entering rescue mode... 
grub rescue>

I was screwed up! I didn’t know what the hack is done with my system.

I searched the web and found out the reason for this error that was “I deleted a Windows partition. and somehow (I don’t know how), I messed up with some grub configurations.”

3. Solution

But something worked like heaven for me. Here is the solution, if you ever get into this, proceed as follows.

4. List File Systems

error: no such partition.
Entering rescue mode...
grub rescue> ls
(hd0) (hd0,msdos5) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1)

This “ls” command will list possible file systems where grub might be available. Now our next step is to find out, that which among these listed systems is the one that we can use for booting.

5. Find the File System we may use to boot

grub rescue> ls (hd0,msdos1)
(hd0,msdos1): Filesystem is unknown.
grub rescue> ls (hd0,msdos2)
(hd0,msdos2): Filesystem is unknown.
grub rescue> ls (hd0,msdos3)
(hd0,msdos3): Filesystem is unknown.
grub rescue> ls (hd0,msdos5)
(hd0,msdos5): Filesystem is ext2.

Hurray! we have found out, that which filesystem we have to choose for booting. In this case, it is (hd0, msdos5).

6. Configuration

grub rescue> set root=(hd0,msdos5)
grub rescue> set prefix=(hd0,msdos5)/boot/grub
grub rescue> insmod normal
grub rescue> normal

After this, I could see the old booting menu, where I may select between Ubuntu and Windows. At this point, it seems that the problem is solved, but that’s not the truth!

Now if you again reboot your system, you will again get into this grub rescue. If you want to permanently fix this issue. Proceed as follows (after step 3).

7. Updating System grub

Login to Ubuntu and just give these 2 commands.

$ sudo update-grub
$ sudo grub-install /dev/sda

Now try to reboot! Hopefully, you are back to your previous experience of booting. After going through this, now I don’t feel that grub rescue is a freaking issue, on the other hand, it’s a simple utility to rescue our system with faulty grub configurations.

Updated:

  • Unfortunately, sometimes this process doesn’t work. I recommend you to have a look at this post if you want to give a try to recover your files.
  • Recently, I found out here, that sometimes insmod normal doesn’t work due to the absence of a complete path of normal module. If this is the case, please try the complete path with insmod (hdX, Y)/boot/grub/normal.mod. If this doesn’t work please try the command using “semicolon” instead of “coma” after “hdX” as pointed out here.
  • Also, the location of the complete path to normal.mod is not consistent across all the systems. Therefore, you may use ls or search.file commands to find out the exact location of your system’s `normal.mod` as explained here.
  • In my case, I didn’t get into condition when insmod normal doesn’t  work. So, all these additional updates, I have not performed myself. Therefore, I request you all if any of these *updated* points doesn’t work or if you see a bug in these, then please let me know in the comments section below.

Aftermath:

When I was back with my Linux and an unallocated partition, I proceeded ahead for my goal of re-sizing. Explore the second part of this journey on How to resize your Linux partition with Gparted?

See you in the next post.

/Knowledgebase /Error: no such partition. Grub rescue Fix for Windows XP, Vista, 7

Get the fix for the error Error: no such partition. Grub rescue on Windows XP, Windows Vista and Windows 7.

About “Error: no such partition. Grub rescue

The following information on this error has been compiled by NeoSmart Technologies, based on the information gathered and reported by our global network of engineers, developers, and technicians or partner organizations.

Description and Symptoms

The error messages, alerts, warnings, and symptoms below are tied to this error.

Symptom 1: “Error: no such partition. Grub rescue” error screen on startup

This error is usually displayed on computers with the Linux distribution Ubuntu installed as it uses the GRUB installer.

Contents

  • 1 About “Error: no such partition. Grub rescue“
    • 1.1 Description and Symptoms
    • 1.2 Symptom 1: “Error: no such partition. Grub rescue” error screen on startup
  • 2 Causes of this Error
    • 2.1 Cause 1: Invalid boot loader configuration
  • 3 Fix: Use Easy Recovery Essentials
  • 4 Fix Error: no such partition. Grub rescue in Windows XP, 7
    • 4.1 Fix #1: Rebuild the BCD
    • 4.2 Fix #2: Manually configuring the active partition
    • 4.3 Fix #3: Restore boot sector code
  • 5 More Information
    • 5.1 Linked Entries
    • 5.2 Support Links
    • 5.3 Applicable Systems

Another related issue on PCs with Ubuntu on is the “Cannot find GRLDR” error. You can find more about this particular error on our Wiki at Cannot find GRLDR: Fix for Windows XP and 7 article.

There are no other known alternative error message related to this boot error.

Causes of this Error

This error has been known to occur as a result of one of the following causes:

Cause 1: Invalid boot loader configuration

The most common cause of this error is a misconfigured boot loader file that prevents the system from loading.

Fix: Use Easy Recovery Essentials

Easy Recovery Essentials can fix many errors such as this automatically using its built-in Automated Repair option. EasyRE is currently available for Windows XP, Vista, 7 and 8 and can be downloaded and created on any PC.

  1. Download Easy Recovery Essentials. Make sure to note your Windows version (XP, Vista, 7 or 8) before you download EasyRE. This guide can help you identify what version of Windows you have installed.
  2. Burn the image. Follow these instructions on how to burn the bootable ISO image very carefully, as making a bootable CD can be tricky! Alternatively, these instructions explain how to create a bootable EasyRE recovery USB stick/drive.
  3. Boot up your PC from the Easy Recovery Essentials CD or USB you created.
  4. Once EasyRE is running, choose the “Automated Repair” option and click Continue.

    EasyRE Home

    Choose “Automated Repair” in Easy Recovery Essentials

  5. After EasyRE scans your computer’s drives, identify and select the drive letter for your Windows installation from the list, and then click on the Automated Repair button to begin.

    EasyRE displays a list of found Windows operating systems

    Choose the drive associated with the Windows installation you’re trying to repair.

  6. Easy Recovery Essentials will start analyzing the selected drive for problems. EasyRE will test for and attempt to automatically correct errors with the disk, partition, bootsector, filesystem, bootloader, and registry. No intervention is required, as EasyRE’s repair is fully automated:

    EasyRE: Automated Repair

    Easy Recovery Essentials searches for errors and makes corrections to the selected Windows installation.

  7. Once the process is complete, EasyRE will report its findings. Click on the Restart button to reboot your PC and test the changes.
  8. The “Error: no such partition. Grub rescue” error should now be fixed as your PC begins to load:

    EasyRE: Automated Repair

    Windows, booting up successfully.

You can download Easy Recovery Essentials from here.

Fix Error: no such partition. Grub rescue in Windows XP, 7

Windows Setup CD/DVD Required!
Some of the solutions below require the use of the Microsoft Windows setup CD or DVD. If your PC did not come with a Windows installation disc or if you no longer have your Windows setup media, you can use Easy Recovery Essentials for Windows instead. EasyRE will automatically find and fix many problems, and can also be used to solve this problem with the directions below.

Fix #1: Rebuild the BCD

You can rebuild the master boot sector with bootrec.exe, the tool available in the Windows Recovery Environment.

If you have Windows XP:

  1. Insert the Windows XP CD in the optical drive
  2. Reboot the computer
  3. At the Microsoft Setup menu, press R
  4. Select the operating system
  5. Enter the Administrator password
  6. When Command Prompt appears, you can type the bootcfg command:
    bootcfg /rebuild
  7. Press Enter
  8. Once completed, type exit to reboot the computer
  9. Press Enter

If you have Windows 7:

  1. Insert your Windows install disc
  2. Press any key at the “Press any key to boot from CD or DVD” message to boot from the disc
  3. Choose Repair your computer after you select the language, time and keyboard method (for Windows 7 users)
  4. Select your Windows installation drive (usually C:)
  5. Click Next
  6. Select Command Prompt in the System Recovery Options window
  7. Write the following commands in the Command Prompt:
    bootrec /fixmbr
    bootrec /fixboot
    bootrec /rebuildbcd
  8. Press Enter after each command

bootrec utility results screen

bootrec utility results screen

Fix #2: Manually configuring the active partition

A very common cause for this error to show up is not having the correct partition set as active. Referring to the description of how the PC boots, the BIOS tries to start the boot loader up from the active partition and the bootloader searches for its configuration data from the active partition as well. If the active partition is corrupted or incorrectly set, many errors including this “Error: no such partition.” can happen.

Use diskpart from the command line to set the correct partition.

  1. Execute the following commands to see a list of all partitions on your disk:
    diskpart
    list part

    Press Enter after each command.

  2. Once you’ve determined which of the displayed partition needs to be active (not sure? Easy Recovery Essentials can automatically detect problems with your active partition and automatically reconfigure the correct partition for you, no command line needed), carry out the steps below to make the changes:
  3. select partition x
    active
    quit

    Press Enter after each command.

  4. Reboot for the changes to take place.

diskpart utility results screen

diskpart utility results screen

Fix #3: Restore boot sector code

These steps apply only for Windows 7 users.

  1. Boot from your Windows 7 disc
  2. Choose Repair your computer after you select the language, time and keyboard method
  3. Select your Windows installation drive (usually C:) and click Next
  4. Select Command Prompt in the System Recovery Options box
  5. Determine which drive letter is your Windows install disc by typing these commands in the Command Prompt:
    diskpart
    select disk 0
    list volume
  6. Look for the “CD-ROM” value in “Type” column in the new table and you’ll see your installation drive letter
  7. Now go to the boot folder from your disc using these commands below. Note that we’ll be using D: (second command below) as our installation drive letter; yours may be different.
    exit
    D:
    cd boot
    dir
  8. Verify that you have a bootsect.exe file listed. If so, enter the next command:
    bootsect /nt60 SYS /mbr
  9. Press Enter when the process is complete and then type exit:
    exit
  10. Restart your computer

bootsect utility results screen

bootsect utility results screen

More Information

Linked Entries

  • bootcfg
  • bootrec
  • Fix MBR

Support Links

  • Easy Recovery Essentials for Windows – our repair and recovery disk.

    It’s an easy-to-use and automated diagnostics disk. It’s available for Windows 8, Windows 7 and Windows Vista. It’s also available for Windows XP and Windows Server.

    Read more at Windows Recovery Disks.

  • The NeoSmart Support Forums, member-to-member technical support and troubleshooting.
  • Get a discounted price on replacement setup and installation discs: Windows XP, Windows Vista, Windows 7.

Applicable Systems

This Windows-related knowledgebase article applies to the following operating systems:

  • Windows XP (all editions)
  • Windows Vista (all editions)
  • Windows 7 (all editions)

Propose an edit

Related Articles

  • Fatal: INT18: Boot failure fix

  • BootGuard 2TB Data Protection

  • Setup was unable to create a new system partition: Fix for Windows

  • IRQL NOT LESS OR EQUAL – Fix for Windows 10, 11, XP, Vista, 7, 8

  • KERNEL SECURITY CHECK ERROR – Fix for Windows XP, Vista, 7, 8, 8.1, 10

  • 0x00000109 – Fix for Windows Vista, 7, 8, 10

The No Such Partition Grub Rescue error is also known as the ‘Death Screen of Linux’. And this error mainly occurs when your grub configuration is messed up for some reason. In this article, we will try to solve this problem of ours using a live CD image of the same OS and try to fix your installation.

Pre-requisites

  • You have a live CD/DVD/USB of the Operating System (must be of the same version).
  • You have a stable internet connection.
  • And you do not have a Wubi (Ubuntu inside Windows) installation on your system.

Let’s get started!

6 Easy Steps to Fix No Such Partition Grub Rescue Error

We need to re-install grub because it is either deleted or corrupt. And to re-install, we will copy the grub file from the live USB to your grub directory. Note that this will remove any custom configuration you have made to the grub file. Follow these steps to fix your grub file.

1. Locate your Root/boot partition

Boot from the Live USB stick and, in the terminal, type the following commands to gain administrative privileges :

Now, type the following commands to know your disk partitioning structure :

Output Of Fdisk Command
Output Of Fdisk Command

In the output, you will see text like /dev/sda1 or /dev/sda2 etc. If you have a separate Boot partition (EFI filesystem), note its location (usually it is 500 MB). And, if you don’t have a separate boot partition, then locate your root (/) partition. If you don’t know where your root is located, then you have to guess. Typically, it’s 30-50 GB in size.

2. Mount the Root/Boot Partition

To modify the changes in our root/boot partition, we will have to mount it first. To do that, type the following commands in your terminal :

sudo mkdir /mnt/temp
sudo mount /dev/sda2 /mnt/temp

Your sdX number can be different from mine, use the number where your root partition is located. And for separate boot partition, mount it as follows :

sudo mkdir /mnt/temp /mnt/temp/boot
sudo mount /dev/sdXY /mnt/temp  # Mount the main partition.
sudo mount /dev/sdXZ /mnt/temp/boot  # Mount the /boot partition.

3. Be CHROOT

Now that we have mounted the partition, we will have to mount several items in preparation of the chroot, run the following commands :

for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt/temp$i;  done
sudo cp /etc/resolv.conf /mnt/temp/etc/resolv.conf
sudo chroot /mnt/temp

If everything went well, you will see ‘root’ in the terminal prompt.

4. Update apt and Purge GRUB2 packages

Run the following commands as chroot to update apt :

Now, purge the old damaged grub files using these commands :

apt-get purge grub grub-pc grub-common
Select yes in the prompt
Select yes in the prompt

A prompt will appear asking for your confirmation to remove GRUB2 press and then press enter.

5. Re-install GRUB bootloader

We need to keep a few things in our mind before we we-install GRUB :

  • While installation, it will ask you to add extra kernel options, if you don’t know about it then you probably don’t need it too. Just press the Tab key to navigate to Ok and press Enter.
  • Installation notes will appear before your screen. Again, press Ok to continue.
  • It will now ask you to select the drive where it will install the GRUB bootloader. DO NOT select a partition (sda1, sda2) select a drive (sda, sdb) using the spacebar. The selected drive will be highlighted using an asterisk (*).

Now, use the following commands to install GRUB again :

apt-get install grub-common grub-pc
Select the appropriate drive
Select the appropriate drive

Now, update GRUB and exit out of chroot:

6. Unmount all the Partitions

If you have only mounted the root partition before, run the following commands :

for i in /dev/pts /dev /proc /sys; do sudo umount /mnt/temp$i ; done

And if you have also mounted the /boot partition, then run the following commands :

for i in /dev/pts /dev /proc /sys /boot; do sudo umount /mnt/temp$i ; done

Finally, reboot the system and remove the live USB stick.

Summary

The recovery process was a little exhaustive, but it works. Hopefully, you were able to access your PC after this troubleshooting process.

References

  • https://ubuntuforums.org/showthread.php?t=1581099

Понравилась статья? Поделить с друзьями:
  • Err ssl bad record mac alert windows 10
  • Err proxy connection failed как исправить windows 7
  • Err network access denied windows 10 как исправить
  • Err name not resolved как исправить на компьютере windows
  • Err internet disconnected на компьютере что делать windows