Grub rescue восстановить загрузчик windows

Даже стесняюсь спросить, КАК можно случайно удалить раздел?!! :O
После grub rescue> начни вводить крманды:
ls
Покажет разделы диска в таком виде: (hd0) (hd0,msdos5) (hd0,msdos2)…
Тебе надо найти раздел с загрузчиком. Так как ты удалил раздел, попробуй сначала после ls набрать:
set
Если после этого увидишь типа:
cmdpath=(hd0)
prefix=(hd0,msdos3)/boot/grub
root=hd0,msdos3
, тебе повезло…
Дальше, вместо msdos3, подставляешь в команды то, что покажет у тебя. Я буду писать , заменишь на своё.

set boot=(hd0,msdos…)
set prefix=(hd0,msdos…)/boot/grub
insmod normal
normal

И после каждой команды, не забывай нажать Enter, а то мало ли чего… :)
Теперь должен загрузится GRUB, а ты попасть в Винду.
В Винде набери cmd и потом в консоли (или как там она у вас называется):

bootrec /fixmbr
bootrec /fixboot

Если в Виндовс bootrec.exe не установлена «по умалчанию», скачай и установи. Так при перезагрузке будешь попадать сразу в Винду.
Дерзай! Удачи…

In this article, Let’s learn how to boot windows from grub rescue screen. Linux is the best platform available on the planet, it offers great customization. A highly customizable platform like Linux offers enormous benefits but has only one downside that it can potentially break your system and you can eventually land up in Linux grub rescue screen. If you are looking to boot Linux from grub rescue you can refer to this article.

boot windows from grub rescue - ittwist

Steps for how to boot windows from grub rescue.

Step 1 — Listing Partitions from Grub Rescue:

First, we need to find out our EFI partition or the partition where your boot files are stored. In order to find that we need to see the available partition, so simply execute the ls command.

ls

boot windows from grub rescue - ittwist

Step 2 — Listing EFI Partition from Grub Rescue

In the first step, we have got our directory listing. Now, we need to find the appropriate partitions where our boot files reside. Typically it resides in a partition that is very small in size (typically less than 1GB) and having an EFI/ partition in it. So, In order to find that you can simply execute the ls (hdx,gpty)/ one by one.

Note: You need to replace x with the hard disk number, and y with the partition number.

ls (hdx,gpty)/

boot windows from grub rescue - ittwist

For me, the same is found in (hd0,gpt1)

Step 3 — Select the EFI Partition

Since we have found the partition, now we need to select the partition. So simply execute the below command.

set root=(hdx,gpty)

boot windows from grub rescue - ittwist

Step 4 — Chainloading the Windows EFI File.

Now, we have selected the partition in which our boot files are present, now we need to execute the command chainloader for loading a boot file, so we can boot from that.

chainloader /efi/Microsoft/Boot/bootmgfwi.efi

boot windows from grub rescue - ittwist

Step 5 — Boot Windows from Grub rescue:

Finally, you are all set to boot windows from grub rescue. Just we need to execute the below command.

boot

Conclusion — Boot windows:

ls
ls (hdx,gpty)/
set root=(hdx,gpty)
chainloader /efi/Microsoft/Boot/bootmgfwi.efi
boot

That’s it for this article, If you have any queries or suggestion please write down in comment section below.

Check out our Latest Best Linux Picks

На чтение 3 мин Опубликовано Обновлено

****

Grub Rescue – это универсальный инструмент, который позволяет восстановить загрузчик ОС Windows в случае его поломки или потери. Этот инструмент особенно полезен для тех, кто использует две операционные системы на своем компьютере и столкнулся с проблемой, когда загрузчик Windows не работает. В этой статье мы рассмотрим, как использовать Grub Rescue для восстановления загрузчика Windows.

Когда загрузчик Windows не работает, можно столкнуться с такими проблемами, как постоянная перезагрузка компьютера или отсутствие возможности загрузить операционную систему. В таком случае Grub Rescue может оказаться очень полезным инструментом. Для начала, необходимо создать загрузочную флешку с Grub Rescue. Это можно сделать на другом компьютере, скачав соответствующий образ ISO и записав его на флешку при помощи специальной программы.

После того, как загрузочная флешка с Grub Rescue готова, нужно перезагрузить компьютер с этой флешкой. При загрузке компьютера нужно выбрать загрузку с флешки, используя соответствующую функциональную клавишу (например, F12). После этого загрузится Grub Rescue. Далее необходимо выполнить несколько команд в командной строке Grub Rescue для восстановления загрузчика Windows. После успешного выполнения всех команд, нужно перезагрузить компьютер без флешки и загрузиться в ОС Windows. В результате, загрузчик Windows должен быть восстановлен и работать без проблем.

Как исправить загрузчик Windows через Grub Rescue

Если вам пришлось использовать Grub Rescue для восстановления загрузчика Windows, вот несколько шагов, которые помогут вам исправить проблему:

Шаг Описание
1 Загрузите компьютер с помощью Ubuntu Live USB или DVD.
2 Откройте терминал и выполните команду sudo fdisk -l для определения раздела Windows.
3 Запустите Grub Rescue и введите команду set root=(hdX,Y), где X и Y — это числа раздела Windows.
4 Введите команду chainloader +1 для загрузки загрузчика Windows.
5 Введите команду boot для загрузки Windows.
6 После загрузки Windows выполните команду bootrec /fixmbr в командной строке для восстановления загрузчика Windows.
7 Перезагрузите компьютер и убедитесь, что загрузчик Windows работает корректно.

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

Почему может потребоваться восстановление загрузчика Windows с использованием Grub Rescue

Однако, иногда возникают проблемы с загрузчиком Windows и необходимо восстановить его. Это может произойти по разным причинам, например, после установки Linux вместе с Windows или после обновления операционной системы.

Grub Rescue – это инструмент, предоставляемый Grub, загрузчиком операционных систем Linux. Он может быть использован для восстановления загрузчика Windows, когда другие методы оказываются неэффективными или недоступными.

Когда Grub Rescue используется для восстановления загрузчика Windows, он позволяет восстановить корректную загрузку операционной системы без потери данных. Использование Grub Rescue может быть полезно, если загрузчик Windows поврежден или удален, и компьютер не может загрузиться в Windows.

Причины, по которым может потребоваться восстановление загрузчика Windows с помощью Grub Rescue:
1. Обновление операционной системы привело к повреждению загрузчика Windows.
2. Установка Linux на компьютер с Windows привела к нарушению работы загрузчика Windows.
3. Загрузчик Windows был случайно удален или заменен другим загрузчиком.

This is my situation:

  • installed Ubuntu without a CD (using unetbootin)
  • dual boot installation (Windows XP+Ubuntu)
  • didn’t like the installation and decided to boot into Windows and delete the Linux partitions
  • forgot to fix the mbr from within Windows

Now, when I boot, I am stuck in the GRUB rescue limbo.

Simple question:
How can I boot into Windows from GRUB rescue?

I cannot boot from CD, therefore the usual solutions (recovery CD etc) do not work.
An older question mentions the possibility to boot Windows but doesn’t specify details: Ubuntu grub rescue prompt

Any hints?

Community's user avatar

asked Oct 11, 2010 at 13:40

pruefsumme's user avatar

When GRUB is gone, so is the ability to boot into Windows. You would now need to boot from the Windows CD to restore the Master Boot Record (MBR). You can also use other boot CDs such as the Ultimate Boot CD for Windows, Bart PE or Hiren’s Boot CD in case you don’t have Windows installation media handy. Here are the steps:

  • Boot from the Windows CD and choose «Repair». Alternatively, boot from one of the other aforementioned boot CDs and run a command prompt.

  • For Windows 8 computers:

    1. Insert disc
    2. set boot order to disc at first priority
    3. reboot, wait for installer to load
    4. select language and keyboard type and click continue
    5. DO NOT CLICK INSTALL, instead click repair my computer in the bottom left corner
    6. click troubleshoot
    7. click advanced
    8. click command prompt and enter the commands below.
    

Add more tutorials for Operating Systems please.

  • Run the the following two commands in a command prompt:

    bootrec /fixmbr
    bootrec /fixboot
    

Scott - Слава Україні's user avatar

answered Apr 29, 2011 at 17:06

Ricky Ricardo's user avatar

4

As Gilles already pointed out, grub rescue only has a few commands which allow you to load modules (e.g. from a grub rescue disk).

In my case — booting from another source wasn’t possible — the only option was to remove the hdd from the computer and use a cheap external hd case to connect the disk to another computer via USB. On that computer, I used MbrFix to fix the mbr.

answered Oct 21, 2010 at 19:41

pruefsumme's user avatar

pruefsummepruefsumme

4411 gold badge4 silver badges7 bronze badges

1

Another tool to add to what Ricky and preufsumme have to say is boot-repair-disk.

answered Aug 9, 2013 at 15:55

PCoder's user avatar

PCoderPCoder

1715 bronze badges

I had this issue just today and solved it by burning boot-repair-disk-64bit.iso to a USB stick (on a Mac using balenaEtcher). Then changed BIOS boot priority to USB stick first and booted it.

In the boot menu selected failsafe mode (normal mode wouldn’t work), and it then suggested to try default recovery. I tried that, it fixed my MBR, and I was then able to boot to Windows 10 again.

answered Mar 24, 2021 at 7:02

Bemmu's user avatar

BemmuBemmu

1,0281 gold badge11 silver badges15 bronze badges

Boot from the Windows XP/Vista/7 installation CD, and select the Repair (R) option. Select the correct partition, and then enter the Administrator account password. At the command prompt run the following commands:

fixmbr (C:\WINDOWS\fixmbr.exe)

fixboot (C:\WINDOWS\fixboot.exe)

Type ‘exit’, and the computer will reboot.

Simon Sheehan's user avatar

answered Jan 20, 2012 at 20:07

Phuqer's user avatar

2

You can use grub rescue to start Windows again.

The command list would be something similar to

rootnoverify (hd0,0)
makeactive
chainloader +1            
boot

NB: this requires the availability of modules that implement all these commands!

From reading over the comments on grub rescue this seems like it’ll work then you can get into windows and reinstall the windows bootloader into the MBR. This only works however if your windows partition is the first partition on the drive AND it’s on the first drive that the computer sees. If you have several drives or SATA drives instead of PATA drives then you may need to use a different command for rootnoverify (try sd0 instead of hd0)

Update me on if it works.

Josip Rodin's user avatar

answered Oct 11, 2010 at 19:53

Kravlin's user avatar

KravlinKravlin

1,1957 silver badges15 bronze badges

4

I had a similar issue, I had to go into the bios to set the boot up sequence to the CD/DVD Drive first so that it would check for the boot stuff there. I am using a solution from somewhere else that told me to first re-install Ubuntu so that the grub loader is installed then you can get back into windows and remove the partition the right way. hope this helps someone out there

answered Dec 11, 2012 at 18:52

Malachi's user avatar

MalachiMalachi

1,0731 gold badge11 silver badges26 bronze badges

You must log in to answer this question.

Not the answer you’re looking for? Browse other questions tagged

.

Previously I had installed the Ubuntu 10.04 and Windows 7.

Now I logged on to Windows, opened the partition editor and deleted the volume containing the Ubuntu — I thought it will delete the Ubuntu and it might help me install another OS — and I restarted the system.

GRUB rescue prompt is there.

I want to log on to Windows. How can I do that?

In GRUB rescue, I tried the following:

ls
(hd0) (hd0,3) (hd0,2) (hd0,1) (hd1) (hda1,1)

Tried all combinations of ls (hdax)/, which threw out:

error: Unknown Filesystem.

I tried this:

rootnoverify (hd0,0)
chainloader +1
makeactive
boot

It threw out:

Unknown command.

EDIT:

I installed Ubuntu from the USB. Now when I restarted the system, I got the GRUB, showing old Windows and the newly installed Ubuntu. I happily logged onto Windows. Then I used standard procedure to remove Ubuntu, so as not to have grub rescue.

  • Grid autosport не запускается на windows 10
  • Groove music windows 10 что это
  • Grim dawn не запускается на windows 10
  • Grim dawn для windows 10
  • Graphics media accelerator 3150 driver for windows 7 64