How to install grub from windows

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

Шаг 1: Скачайте образ Grub

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

Шаг 2: Скачайте EasyBCD

EasyBCD — это утилита для Windows, которая позволяет управлять загрузочным меню. Скачайте ее с официального сайта и установите на свой компьютер.

Шаг 3: Создайте раздел

Создайте новый раздел на своем жестком диске. Для этого можно воспользоваться утилитами Windows, например, «Управление дисками». Обязательно запомните букву диска, на котором создан новый раздел.

Шаг 4: Запишите образ Grub на раздел

Для записи образа Grub на раздел следует воспользоваться командной строкой, которую можно открыть в режиме администратора. Перейдите в папку, где сохранен образ Grub, используя команду cd. Убедитесь, что путь в консоли отображает текущую директорию с образом Grub.

Затем используйте следующую команду для записи образа Grub на раздел:

dd if=имя_образа_grub of=диск_с_разделом bs=512 count=1

Замените имя образа Grub и диск с разделом на соответствующие значения. Например, dd if=grub.iso of=E: bs=512 count=1

Шаг 5: Добавьте запись в загрузчик Windows

Запустите EasyBCD и выберите «Добавить новую запись». Затем выберите тип записи «Linux/BSD» и введите имя для новой записи.

В разделе «Путь к файлу» укажите букву диска, на котором создан новый раздел, и путь к файлу boot\grub\stage1.

В разделе «Привод/Сектор» укажите букву диска, на котором создан новый раздел, и номер сектора, где записан Grub. Например, 0x8001 для сектора 1 в байтах.

Сохраните новую запись.

Шаг 6: Запустите Grub

Перезагрузите компьютер и выберите новую запись в загрузочном меню. Grub должен успешно загрузиться.

Заключение

В этой статье мы рассмотрели пошаговую инструкцию по установке Grub из-под Windows. Надеемся, что она поможет вам успешно настроить загрузку операционных систем на вашем компьютере.

  1. Главная
  2. Форум
  3. Загрузчики.
  4. GRUB 2



[Цитировать]

  • 20037
  • Стаж: 4 года 9 месяцев
  • Сообщений: 7
  • Репутация:2[+] [-]


Всех приветствую, небольшой гайд по установке Grub-2.02 UEFI+Grub4dos-0.4.6a из под Windows.
Данной статьей хочу описать несложный способ создания флешки с базовым функционалом загрузчиков.
Для начала что нам потребуется :
1) флешка (для примера подойдет и на 1 гб) а дальше по вашим нуждам;
2) Программа HPUSBDisk скачать можно тут;
3) Программа BOOTICE скачать можно тут;
4) Программа Grub4DosUSB (авторство zxen) ранее выкладывали на этом форуме;
5) Программа QemuBootTester для тестирования ранее выкладывали на этом форуме;
Начнем:
1.1) Для предотвращения ошибок программой HPUSBDisk форматируем флешку (метка тома и файловая структура не имеют значения)
1.2) Открываем Bootice и идем в Parts Manage;
1.3) Открываем Re-Partitioning;
1.4) Выбераем USB-HDD mode (Multi-Partitions);
1.5) Выставляем нужные значения размера разделов (по умолчанию 2, лично я создал Legacy и UEFI (Важно раздел под uefi Grub обязательно должен быть в формате FAT32!, второй рекомендую выставить в NTFS для возможности работы и загрузки образов выше 4gb);
1.6) Возвращаемся в Bootice и идем в Parts Manage, там переназначаем букву следующему разделу (выделив его и нажав на Assign Drive Letter или пользуемся менеджером жестких дисков windows)
1.7) По факту получаем два раздела на флеш накопителе (можно использовать и внешние hdd\ssd)
Установка Grub-2.02 UEFI
2) Скачиваем Grub-2.02 UEFI скачать разные версии и обновления можно по первой ссылке,нас интересует файл grub-2.02-for-windows.zip
Скачиваем его и распаковываем его содержимое в коневой каталог диска C:/ (диск С рекомендация, можно использовать и любое другое место, но не желательно)
Далее открываем командную строку От имени Администратора и вводим
cd /d C:\grub-2.02-for-windows
grub-install.exe —boot-directory=F:\ —target=i386-pc //./PHYSICALDRIVE4 (Где F- имя диска в FAT32 который вы создали ранее ,именно это имя вы и впишете в других командах (где я пометил), PHYSICALDRIVE4 номер этого диска (флешки) можно посмотреть в менеджере жестких дисков)
grub-install.exe —boot-directory=F:\ —efi-directory=F: —removable —target=x86_64-efi
grub-install.exe —boot-directory=F:\ —efi-directory=F: —removable —target=i386-efi
по итогу имеем
C:\grub-2.02-for-windows>grub-install.exe —boot-directory=F:\ —target=i386-pc //./PHYSICALDRIVE4
Installing for i386-pc platform.
Installation finished. No error reported.
C:\grub-2.02-for-windows>grub-install.exe —boot-directory=F:\ —efi-directory=F: —removable —target=x86_64-efi
Installing for x86_64-efi platform.
Installation finished. No error reported.
C:\grub-2.02-for-windows>grub-install.exe —boot-directory=F:\ —efi-directory=F: —removable —target=i386-efi
Installing for i386-efi platform.
Installation finished. No error reported.
Проверяем содержимое флешки, если данные файлы появились в папке grub кидаем файл grub;
2.1) Проверяем результат с помощью QemuBootTester выбирая загрузку EFI-64
Если все загрузилось, приступаем к части установки Grub4dos-0.4.6a.
Установка Grub4dos-0.4.6a.
3) Запускаем скачанную ранее программу Grub4DosUSB
Не трогая пункт ФОРМАТИРОВАТЬ выбираем второй раздел созданный ранее на флешке (в моем варианте это Legacy) и нажимаем установить.
3.1) Проверяем появление файлов на этом разделе и если они появились двигаемся дальше
3.2) Далее качаем новую версию Grub4dos-0.4.6a от сюда
3.3) И все содержимое данного архива помешаем в наш раздел (с заменой файлов).
Все, грузимся в программе QemuBootTester в режиме Legacy BIOS и проверяем работу.
Итоги:
На этом все.По итогу имеем базовый вариант с загрузчиками под uefi и legacy, дальнейшее наполнение и доработка полностью зависит от вас и ваших требований.
Заранее скажу — Я новичок — вспомните себя, а критикуя предлагайте aa

Последний раз редактировалось: Ttron27 (2019-01-09 16:40), всего редактировалось 2 раз(а)


[Цитировать]

Отправлено: 08-Янв-2019 09:18
(спустя 37 минут)

    vovan1982

  • 214
  • Стаж: 8 лет 8 месяцев
  • Сообщений: 1059
  • Репутация:73[+] [-]
  • Откуда: Ростов-на-Дону


Ttron27, непонятно зачем весь это Копенгаген, все это уже давно есть на форуме, Conty9 уже года 2 назад выкладывал готовый вариант, 3-й спойлер сверху Два раздела на флешке — зачем это нужно и реализация такой возможности с помощью UTmake.
PS: делать на флэшке (не на USB-HDD) раздел с NTFS нерационально и не правильно, потому как она (файловая система) протоколируемая, а это значит, что запись идет даже при чтении из файла (пишется дата и время обращения к файлу). Это просто быстрее «уложит» Вашу флэшку.


[Цитировать]

Отправлено: 08-Янв-2019 09:32
(спустя 13 минут)

    Ttron27

  • 20037
  • Стаж: 4 года 9 месяцев
  • Сообщений: 7
  • Репутация:2[+] [-]


60768

Ttron27, непонятно зачем весь это Копенгаген, все это уже давно есть на форуме, Conty9 уже года 2 назад выкладывал готовый вариант, 3-й спойлер сверху Два раздела на флешке — зачем это нужно и реализация такой возможности с помощью UTmake

Приму к сведению, про китайскую доработку не знал. Про разделы не совсем понял , пока не наблюдаю ухода от разделения дисков. Но тему по ссылке покурю aa


[Цитировать]

Отправлено: 08-Янв-2019 10:38
(спустя 1 час 6 минут)

    Ander_73

  • 15549
  • Стаж: 6 лет 8 месяцев
  • Сообщений: 3361
  • Репутация:127[+] [-]


Ttron27,
лично я рекомендую версии G4D брать из первого абзаца этого мануала
а версии GRUB2 брать «родные» отсюда (а не виндовс-сборку)


[Цитировать]

Отправлено: 08-Янв-2019 11:17
(спустя 38 минут)

    stea.61

  • 2490
  • Стаж: 7 лет 8 месяцев
  • Сообщений: 656
  • Репутация:66[+] [-]
  • Откуда: 61 RUS


60768

это уже давно есть на форуме

vovan1982, Ander_73, Ttron27, aa
И даже название темы от puhpol созвучно: GRUB 2 установка под Windows.
vovan1982, мож есть смысл как-то слить темы воедино?

Последний раз редактировалось: stea.61 (2019-01-08 11:25), всего редактировалось 1 раз


[Цитировать]

Отправлено: 08-Янв-2019 11:25
(спустя 8 минут)

    Joker-2013

  • 1039
  • Стаж: 8 лет 3 месяца
  • Сообщений: 2053
  • Репутация:120[+] [-]
  • Откуда: из прошлого


stea.61, aa
Нет такой возможности на форуме…
Тема пусть будет. Человек не успел зарегистрироваться и уже создал полезную тему. Похвально.


[Цитировать]

Отправлено: 08-Янв-2019 11:33
(спустя 8 минут)

    Ttron27

  • 20037
  • Стаж: 4 года 9 месяцев
  • Сообщений: 7
  • Репутация:2[+] [-]


60774

stea.61, aa
Нет такой возможности на форуме…
Тема пусть будет. Человек не успел зарегистрироваться и уже создал полезную тему. Похвально.

ah Спасибо, действительно еще зеленый и судя по тому что скинули выше есть куда расти еще ого го.
Но нашел очень много действительно полезного ,а главное понимающих людей az, но согласен с stea.61 не хватает общей проработанной инструкции, все делают очень по разному. Интересна была бы тема обобщенная с какими то фишками и пояснениями.


[Цитировать]

Отправлено: 08-Янв-2019 15:03
(спустя 3 часа)

    BalAngel

  • 647
  • Стаж: 8 лет 5 месяцев
  • Сообщений: 250
  • Репутация:14[+] [-]


нас интересует файл grub-2.02-for-windows.zip …. на флешке … Приму к сведению, про китайскую доработку не знал… И даже название темы от puhpol созвучно: GRUB 2 установка под Windows. …

IMHO
grub-2.02-for-windows.zip — это подходит для Legacy, тут можно использовать и grub-mkimage.exe, но автор загрузочным делает второй раздел NTFS используя Grub4DOS. Я бы загрузочный делал на первом разделе — EFI. Пишут, что grub-2.02-for-windows не поддерживает UEFI enabled Secure Boot, чего я не знал 2 года назад. Но я до сих про не знаю, что это означает: signature at http://ftp.gnu.org/gnu/grub/grub-2.02-for-windows.zip.sig. Касательно Debian, было бы интересно узнать, как его установить в среде Windows, просто извлекаю из дистрибутива Ubuntu.
Флешка. Тут уже ответили. Все сборки разместить на FAT32, на раздел NTFS — только сборки с VHD и большие файлы.
Лично я флешки использую только для экспериментов. Теперь внешние диски негромоздкие (футлярчик в портмоне) и не требуют «питания»
UTmake — не китайская доработка (или у китайцев другое название?). Не отнимайте авторства у conty9
GRUB 2 установка под Windows — Там (2. стр.) stea.61 пахожее изложил. Шапка по прежнему — практически пуста
Есть еще тема MultiBoot USB grub4dos+GRUB2_UEFI, но там тоже нет обобщения.
Пусть Ttron27 тренируется, если долго мучиться, что-нибудь получится. Дальше будет видно.
Ttron27, правильно сделали, колышки вбили, можете дерзать. Вам повезло

Последний раз редактировалось: BalAngel (2019-01-09 09:45), всего редактировалось 1 раз


[Цитировать]

Отправлено: 08-Янв-2019 15:35
(спустя 31 минута)

    Ttron27

  • 20037
  • Стаж: 4 года 9 месяцев
  • Сообщений: 7
  • Репутация:2[+] [-]


Касательно Debian, было бы интересно узнать, как его установить в среде Windows

Если я не ошибся, в windows 10 с этим может помочь PowerShell(по крайней мере эмуляция linx у меня отрабатывала отлично, а эмуляцией ubuntu ставлю прошивки Padavan ) ну или виртуалка с пробросом порта с usb устройства.

Пишут, что grub-2.02-for-windows не поддерживает UEFI enabled Secure Boot

Если я не ошибся тут на форуме был такой метод

UTmake — не китайская доработка (или у китайцев другое название?)

Нет, я не знал про 0 сектора, про программу пока ничего не скажу .

Флешка. Тут уже ответили. Все сборки разместить на FAT32, на раздел NTFS — только сборки с VHD и большие файлы.
Лично я флешки использую только для экспериментов. Теперь внешние диски негромоздкие (футлярчик в портмоне) и «не требуют питания»

aa Полностью согласен, но моя специфика работы не дает носить такой( а по факту их надо штуки 3 мне, да и с питанием у некоторых проблемы еше на usb2 не говоря про то где я юзаю ag да и не у всех есть деньги\потребности. А флешки сейчас то же разные . Но я вас понял. буду ковырять дальше


[Цитировать]

Отправлено: 09-Янв-2019 10:14
(спустя 18 часов)

    BalAngel

  • 647
  • Стаж: 8 лет 5 месяцев
  • Сообщений: 250
  • Репутация:14[+] [-]


эмуляция linx у меня отрабатывала отлично …. Если я не ошибся тут на форуме был такой метод … моя специфика работы не дает носить такой( а по факту их надо штуки 3 мне, да и с питанием у некоторых проблемы еше на usb2 не говоря про то где я юзаю ag да и не у всех есть деньги\потребности …

linx — посмотрю когда-нибудь
Grub2 & Secure Boot — там про Grub2 for Windowsдаже не заикается
их надо штуки 3 — поправил свое сообщение выше «питанием» (кирпич с 2 штепселями). Не знаю зачем столько, вам виднее
Интересует ответ на то, что значит — сигнатура на http://ftp.gnu.org/gnu/grub/grub-2.02-for-windows.zip.sig — что архив безопсный, цифровой подписью?
Другие вопросы по размещению файлов согласно вашей инструкции, когда прочту все нормально, а не бегло. Это не главный вопрос


[Цитировать]

Отправлено: 09-Янв-2019 16:56
(спустя 6 часов)

    BalAngel

  • 647
  • Стаж: 8 лет 5 месяцев
  • Сообщений: 250
  • Репутация:14[+] [-]


Установка Grub-2.02 UEFI+Grub4dos-0.4.6a из под Windows
Пропустим пока
Для начала что нам потребуется :
Начнем:
1.6) … нажав на Assign Drive Letter (у меняSetAccessible) …. У меня в итоге получился видимый раздел NTFS, а это нехорошо. Надо написать, что нужно проверить, что видимым был раздел FAT32 и, если надо нажать …

Установка Grub-2.02 UEFIа здесь надо остановиться. Никто не возразил против того, что EFI Grub2forWindows не поддержмивает возможность Secure Boot. Надо брать подписанные линуксовые, самый распространенный был Ubuntu (IMHO), сейчас стал использоваться Kaspersky Reskue Disk (krd). Который из них надежнее, даже примерной статистики не видел. Если пишут krd, пусть будет krd. Последние 2 команды grub-install.exe … EFI не подходят. Надо описать откуда брать папки EFI и boot (krd), файл krd_version.txt, поместить их в корневой каталог раздела FAT32. И только сейчас перейти к скачать можно по первой ссылке, нас интересует файл grub-2.02-for-windows.zip разархивировать и выполнить команду grub-install.exe—boot-directory=F:\ —target=i386-pc (насчет папки загрузки надо подумать, теперь голова не работает), посмотрите, что пишет stea.61 в стр. №2 его ссылки. IMHO, grub.cfg надо дополнить кое-чем более, как перезагрузка и выключение, было бы нагляднее, да он и не нужен, есть в комплекте krd, но придется перед выкладыванием его обработать.
На сегодня всё. Может не прав, примите как моё мнение
+++++
Установка Grub4dos-0.4.6a.
Почему на раздел NTFS, почему не установить на FAT32 и не установить на один раздел все загрузчики сразу? Возможно делаете из-за своих соображений и ваших потребностей, поэтому и такие вопросы
В итоге я вижу описание ваших действий по созданию загрузочной флешки — скачать это и то, запустить то и это. Моим мнением, следовало собрать все, добавить варианты *.cfg, *.lst и описание подробное, и запаковать. Да и хорошо бы батник состряпать. Обнародовать. А ещё лучше усвоить UTmake от conty9 и далее как писалось в прошлом предложении …. Всё идет к простому очередному шаблону, которых есть предостаточно.
У меня тоже есть, по мотивам китайского, хорошо, что не опибликовал, мне сообщили, что loopback с включенным secure boot поддерживается, что значит — можно убрать примечание «(disabled Secure Boot)» в загрузочной записи про запуск линуксовых исо.
А если тему изменить, например «Шаблоны мультизагрузки Grub2 UEFI/Legacy + Grub4DOS + syslinux + etc.» и собрать в шапку проверенные из разных ветвей, конечно, с указанием источника, автора?
Не знаю, кто читает, что я написал — впечатление, сам себе пишу


[Цитировать]

Отправлено: 10-Янв-2019 15:13
(спустя 22 часа)

    Ttron27

  • 20037
  • Стаж: 4 года 9 месяцев
  • Сообщений: 7
  • Репутация:2[+] [-]


60825

Установка Grub-2.02 UEFI+Grub4dos-0.4.6a из под Windows
Пропустим пока
Для начала что нам потребуется :
Начнем:
1.6) … нажав на Assign Drive Letter (у меняSetAccessible) …. У меня в итоге получился видимый раздел NTFS, а это нехорошо. Надо написать, что нужно проверить, что видимым был раздел FAT32 и, если надо нажать …
Установка Grub-2.02 UEFIа здесь надо остановиться. Никто не возразил против того, что EFI Grub2forWindows не поддержмивает возможность Secure Boot. Надо брать подписанные линуксовые, самый распространенный был Ubuntu (IMHO), сейчас стал использоваться Kaspersky Reskue Disk (krd). Который из них надежнее, даже примерной статистики не видел. Если пишут krd, пусть будет krd. Последние 2 команды grub-install.exe … EFI не подходят. Надо описать откуда брать папки EFI и boot (krd), файл krd_version.txt, поместить их в корневой каталог раздела FAT32. И только сейчас перейти к скачать можно по первой ссылке, нас интересует файл grub-2.02-for-windows.zip разархивировать и выполнить команду grub-install.exe—boot-directory=F:\ —target=i386-pc (насчет папки загрузки надо подумать, теперь голова не работает), посмотрите, что пишет stea.61 в стр. №2 его ссылки. IMHO, grub.cfg надо дополнить кое-чем более, как перезагрузка и выключение, было бы нагляднее, да он и не нужен, есть в комплекте krd, но придется перед выкладыванием его обработать.
На сегодня всё. Может не прав, примите как моё мнение
+++++
Установка Grub4dos-0.4.6a.
Почему на раздел NTFS, почему не установить на FAT32 и не установить на один раздел все загрузчики сразу? Возможно делаете из-за своих соображений и ваших потребностей, поэтому и такие вопросы
В итоге я вижу описание ваших действий по созданию загрузочной флешки — скачать это и то, запустить то и это. Моим мнением, следовало собрать все, добавить варианты *.cfg, *.lst и описание подробное, и запаковать. Да и хорошо бы батник состряпать. Обнародовать. А ещё лучше усвоить UTmake от conty9 и далее как писалось в прошлом предложении …. Всё идет к простому очередному шаблону, которых есть предостаточно.
У меня тоже есть, по мотивам китайского, хорошо, что не опибликовал, мне сообщили, что loopback с включенным secure boot поддерживается, что значит — можно убрать примечание «(disabled Secure Boot)» в загрузочной записи про запуск линуксовых исо.
А если тему изменить, например «Шаблоны мультизагрузки Grub2 UEFI/Legacy + Grub4DOS + syslinux + etc.» и собрать в шапку проверенные из разных ветвей, конечно, с указанием источника, автора?
Не знаю, кто читает, что я написал — впечатление, сам себе пишу

Читаю все и внимательно read, сейчас вы озадачили вопросом Secure Boot, насколько знаю , не отключаемый Secure Boot есть только на планшетах на ARM с предустановленной Windows, а в остальном его можно отключить и это вроде как не беда. Возможно данное инфо окажется полезным , в любом случае поковыряю в свободное время unix системы и если что то есть интересное попробую реализовать.


[Цитировать]

Отправлено: 10-Янв-2019 16:40
(спустя 1 час 26 минут)

    vovan1982

  • 214
  • Стаж: 8 лет 8 месяцев
  • Сообщений: 1059
  • Репутация:73[+] [-]
  • Откуда: Ростов-на-Дону


Ttron27, ну да конечно. Вы видать с ноутбучными биосами мало знакомы.


[Цитировать]

Отправлено: 10-Янв-2019 17:27
(спустя 47 минут)

    KottoSOFT

  • 206
  • Стаж: 8 лет 8 месяцев
  • Сообщений: 562
  • Репутация:65[+] [-]


Приветствую, друзья я наверно задам самый глупый вопрос в этой теме, но тем не менее меня это интересует.
Вот если взять GRUB4DOS можно его открыть в BOOTICE или в утилитке от JOKER2013
Не принципиально удалить всё, что написано внутри и прописать, что то своё пример

configfile /KSFT/BOOT/GRLDR/menu.lst

Сделать основным загрузчиком bootmgr а уже в BCD прописать путь для запуска GRUB4DOS
Так вот можно ли проделать то же самое с GRUB2?
Чтобы в корне флешки не было кучи папок, и стартовала по старинке с bootmgr


[Цитировать]

Отправлено: 10-Янв-2019 17:50
(спустя 23 минуты)

    Ander_73

  • 15549
  • Стаж: 6 лет 8 месяцев
  • Сообщений: 3361
  • Репутация:127[+] [-]


KottoSOFT,
— GRUB2 для BIOS-а (Legacy) можно пересобрать самостоятельно с нужными опциями
— GRUB2 для EFI без ЦП можно пересобрать самостоятельно с нужными опциями
— GRUB2 для EFI с валидной ЦП пересобрать, разумеется, нельзя

Страница 1 из 5

Текущее время: 09-Окт 08:07

Часовой пояс: UTC + 3

Вы не можете начинать темы
Вы не можете отвечать на сообщения
Вы не можете редактировать свои сообщения
Вы не можете удалять свои сообщения
Вы не можете голосовать в опросах
Вы не можете прикреплять файлы к сообщениям
Вы можете скачивать файлы

The three interfaces of Grub functions at various levels. The menu interface consists of the list of kernels or the operating systems.

You have the option to select a particular operating system with the help of the arrow keys and you can boot it with the Enter key.

All the Commands in Grub are displayed in the menu entry editor interface. You can change the commands before you load the Operating System.

The Command-Line interface is the basic interface that provides the user with the utmost control. You can execute any command with the help of it.

You may sometimes encounter how to install a grub bootloader in windows 10 issues raised by the corrupted boot directory or the partition.

Restore Grub After Windows Install

The Grub Bootloader is particularly important as you cannot start the Operating System without it.

While you switch on the program, this is the first program that gets started. Then the Bootloader transfers the control it has to the Operating System Kernel.

When you are stuck with how to install a grub bootloader in Windows 10, you can go for a clean installation of Windows 10 or reset your BIOS settings. These may help you to resolve the problem.

You also have other options to fix it like rebuilding the BCD or simply replacing your damaged hard drive.

Through this article let us address the possibilities to fix the Grub related problem effectively.

Solution 1: Setting The Correct Partition 

If the correct partition gets deactivated somehow, you face this grub related problem and need to go for restoring grub after windows install.

This happens as the boot loader gets initiated by the BIOS from the active partition.

We suggest you verify whether the active partition is incorrect. Then you will have to get the proper partition activated.

This process works wonder to fix the grub related issues swiftly. Follow the steps mentioned below to execute the process:

Step 1: First of all you need to connect a DVD or USB Flash Player bootable media to your PC.

Step 2: Then give your system a fresh restart to execute the Automatic Repairing Process.

Step 3: Select to Troubleshoot and go to the Advanced options. Now, launch Command Prompt and enter diskpart and hit the Enter button.

Step 4: Input the commands mentioned below one after another:

  • list disk: This will give you the list of all your hard drives
  • select disk n: n denotes the disk where you have installed the operating system.
  • list volume: All the Volumes on Disk 0 will be enlisted here.
  • select volume n: he will give you the number of system partitions
  • active: this will show you the active system partition. Identify the specific partition from the displayed list that ought to be active.

Step 5: Now, enter the commands given below and after inputting each one, press the Enter Key.

  • select partition d
  • active
  • quit

Step 6: After you have finished the above step give your Computer a fresh restart.

Check whether your Grub related problem is solved this way.

Solution 2: Resetting the BIOS Settings

Resetting BIOS is another effective way to fix grub after windows 10 upgrade.

Here I am providing you a complete guideline to execute the task. Follow the steps:

Step 1: Turn off your computer and wait for a couple of minutes, then give it a fresh restart.

Step 2: Now, press F2 and repeat the process till you see the System Screen Window.

The function key may vary from system to system. Give it a check while you start your system.

Step 3: Now with the help of the Right Arrow Key go to the Exit menu bar.  Then move on to the Load Optimized Defaults.

Step 4: After you pressed the Load Optimized Device option, hit the Enter button.

After you accomplished the entire procedure check whether this has helped. You also have the option to flash the BIOS of your computer to fix the issue.

Solution 3: Using the Automatic Repair and restoring the Boot Sector Code

You may use your automatics repair system provided by Windows 10 and run are repairing process for restoring grub after windows install.

The boot sector code may be damaged and this may create the problem. So, you need to restore the boot sector code so that the grub rescue error is not prompted.

For this, I am describing the process that you are required to follow meticulously.

Step 1: Give your PC a fresh restart for repeated times and then select to Troubleshoot. From the displayed panel, choose Advanced and from there move on to Start-up Repair.

Step 2: Now, the repairing process will commence. Wait till the procedure gets completed.

We recommend you not to proceed for any operation in between. After that check, if that was good enough to address your problem.

Step 3: You have another option to use DVD or USB Flash Drive for resting the boot Sector Code.

For this, connect the bootable USB or DVD to your PC give your computer a fresh restart to go to the Automatic Repair Mode.

Step 4: Now proceed to Troubleshoot and then go to the Advanced Tab.

Step 5: Now Enter cmd to launch Command Prompt. Input the given commands in the Command Prompt. Do not forget to hit the Enter button after you type them.

diskpart

select disk 0

list volume

This way you will get all the volumes displayed. In the Type section, you will get to see DVD-ROM.

Make sure to remember the letter for the drive of the DVD or USB Flash Drive that you have connected to your Device. Like D or E.

Step 6: Now, enter the commands that I am providing below and click Enter.

Exit

D: or E:

CD Boot

Dir

Step 7: Scrutinize whether there is bootsect.exe file in the provided list. On finding it input the given command and then hit the enter button.

bootsect /nt60 SYS /mbr

Exit

Step 8: Now reboot your Computer and hope this will solve the problem you are muddling with.

Solution 4: Clean Installation Of Windows 10

To repair grub from windows, install Windows 10 afresh so that the installations done previously completely get removed.

For this, you will have to download the ISO file of Windows 10 on another device and get it burned on a DVD. You may also proceed with creating a USB drive that you can boot.

You may take the help of a third-party utility or you may also fix the boot related error if you create a bootable media.

That will automatically help you launching the program, selecting the proper partition, etc.

Solution 5: Rebuilding BCD With The Help Of Windows 10 Automatic Repair

If you cannot find bootsect.exe file, then you may need to rebuild BCD to combat your Grub issue.

Many users have reported that by using this rebuilding BCD technique they could easily fix the Grub related issue.

Follow the given process described below to rebuild the BCD:

Step 1: First of all you will have to connect bootable USB Flash Drive DVD to your system.

Step 2: Then reboot your PC and go to the Automatic Repair Mode.

Then from the advanced window choose Command Prompt for initiating BCD Files.

Step 3: Enter the below-given commands in the Command Prompt and when you have finished press Enter:

  • Bootrec /Fixmbr
  • Bootrec /Fixboot
  • Bootrec /Rebuildbcd

Step 4: When you complete the process, exit from Command Prompt and then give your device a fresh restart.

Solution 6: Replace The Hard Drive

Sometimes you may face several issues with your hard drive. Your hard drive may get damaged somehow and this may lead to the Grub rescue issue along with other burning issues for your system.

In case you discover that your hard drive is damaged, we suggest you replace it immediately.

Hard Drives are available on your manufacturer’s website or from the retail sites then replace your drive and clean install Windows 10 to get rid of the Grub related problem.

Winding Up

Hope the resolutions provided could give you the answer to how to install grub bootloader in Windows 10.

If you still have queries or issues with the related files, feel free to intimate us in the comments section or may shoot us a mail.

We always look forward to hearing back from you.

How do I chainload GRUB from Windows boot.ini

Contents

  • 1 Other titles for this same problem.
  • 2 Advice
  • 3 Neogrub lazy solution
  • 4 Classical solution
  • 5 Advanced solution
  • 6 Problematic solution
  • 7 GRUB solution (on its own)
  • 8 GRUB solution (Linux shell)
  • 9 GRUB2 solution (on its own)
  • 10 GRUB2 solution (Linux shell)
  • 11 Common Final Solution
    • 11.1 Windows Vista (with easybcd help)
    • 11.2 Classical Final Solution
      • 11.2.1 Windows XP/Windows 2000/NT/Windows
      • 11.2.2 Windows Vista (manually)
  • 12 Rescatux
  • 13 Tecnical explanation
  • 14 One thing you should know
  • 15 TIP
  • 16 Similar problems
  • 17 External resources

Other titles for this same problem.

  • GRUB is a great but I prefer not to install it on my mbr.
  • How do I chainload GRUB from Windows Vista
  • I have Linux in my second hard disk and I follow other howto instructions but I cannot get it to be chainloaded from Windows.
  • Is there a safe way to access Linux on the external drive and have xp on the internal drive while being able to disconnect the external drive from pc at any time? ([b]You should run Fix Boot of Windows[/b] for your internal hard disk before these steps.)

Advice

adrian15 advice for this kind of task is #Classical solution

Neogrub lazy solution

TODO: Talk about Neogrub that it is included with EasyBCD I think.

Classical solution

  • Super Grub Disk (WITH HELP) :-)))
  • English Super Grub Disk
  • Windows
  • Windows (Advanced)
  • Windows chainloads Grub!
  • Select the partition where GRUB it is found (i.e. stage1 is found).

Please continue reading at: Common Final Solution

Advanced solution

SITUATION WHEN GRUB FILES AND BOOT SECTOR ARE NOT THE SAME PARTITION

Problematic solution

TODO EXPLAIN THE USE OF LIVESWAP WHEN DETECTED HARD DISK ORDER IS NOT OK.

GRUB solution (on its own)

This method is only valid when you want to boot a Linux partition that it is found in the same hard disk as the windows one (i.e. the first hard disk).

This installs Stage1 of Grub to the first sector of partition containing the Grub folder.
To get started we need to identify the partition containing the Grub folder. (Usually the same as the Linux partition) Say it is (hd0,3) (Usually, but not always, identified in Linux as: /dev/sda4).

Boot with your grub disk or with your already installed grub.

Press ‘c’

At the grub> prompt type:

  • root (hd0,3)
  • setup (hd0,3)
  • quit #(With Linux working)
  • reboot #(From grub disk)

Please continue reading at: Common Final Solution

GRUB solution (Linux shell)

This installs Stage1 of Grub to the first sector of partition containing the Grub folder. We will use the «device» function of the grub-shell to ensure that Grub uses the correct map between the bios drives and linux devices, and also to ensure that Grub uses the hard drive numbers.

To get started we need to identify the partition containing the Grub folder. (Usually the same as the Linux partition) Say it is (hd2,3) and /dev/sdb4.
(The (hd2,3) must be how grub sees the partition during boot-up)

Open a terminal in Linux and type

  • su #(use sudo -i in Ubuntu)
  • grub

and at the «grub>»prompt

  • device (hd2) /dev/sdb
  • device (hd0) /dev/sdb
  • root (hd2,3)
  • setup (hd0,3)
  • quit

Please continue reading at: Common Final Solution

GRUB2 solution (on its own)

As long as I know GRUB2 cannot install itself on its own.

GRUB2 solution (Linux shell)

This installs first part of Grub2 to the first sector of partition containing the Grub folder.

Let’s suppose that you know that your Linux partition is /dev/sda3

What you need to to is run:

Open a terminal in Linux and type

  • su #(use sudo -i in Ubuntu)
  • grub-install —force /dev/sda3

Please continue reading at: Common Final Solution

Common Final Solution

As a final solution we need somehow Windows to chainload our Linux partition. If we use easybcd we can avoid having to copy a file from a live cd to our Windows partition and setting up the boot. If we are geeks and classical we will have to edit boot.ini or the new Vista file manually in order to make
things work.

Windows Vista (with easybcd help)

  1. Download and run EasyBCD 1.7.2(or any version i think)
  2. If program ask for boot drive just select your windows partion
  3. Choose Add/remove Entries
  4. At «Add an Entry» select «Linux»
  5. Change Type to «Linux»
  6. Enter Name box with any name u want
  7. At Drive Select Your Ubuntu Partion
  8. Click «Add Entry»
  9. Click «Save»
  10. Restart, you have done ^ ^

Classical Final Solution

Once grub has been installed to a partition we need to get its boot sector to a file in order to boot it from Windows.

Let’s boot with a live cd and open a terminal.

Identify the partition containing the grub folder. (Usually the same one as the Linux partition)

In this example the identified grub partition is sda3.

Plugin your pendrive and open it.
Identify your plugged pendrive associated folder.

In this example:
Pendrive mount point is: /media/disk

From a terminal (Aplications -> System -> Terminal) please run:

  • sudo -i | su

(When prompted enter your current user password or your root password in non-sudo systems such as Debian. If you do not know how to type | symbol please only type sudo -i)

  • dd if=/dev/sda3 of=/media/disk/linux.bin count=1 bs=512
  • sync
  • Right Click on your pendrive icon in your desktop and click on umount or extract.

Now let’s boot into Windows.

Plug in your pendrive and copy the linux.bin file into c:\ folder.

Windows XP/Windows 2000/NT/Windows

Now let’s edit boot.ini and add this line at its bottom:

c:\linux.bin="Linux"

Windows Vista (manually)

TODO

Now when rebooting if you boot windows you will get a Windows menu with two options: Windows and the new Linux option which will chainload GRUB.

Finally there is an optional step that it is removing grub so that it chainloads Windows menu in the first place automatically at boot.

Rescatux

This feature is not yet available at the Rescapp program. It is available at the Super Grub Disk included with Rescatux. If you want to have this feature at the Rescapp program please complain at the super grub disk mailing list.

Tecnical explanation

One thing you should know

  • These methods only restore GRUB successfully if a stage1,stage2 (and optionally a stage1_5 file) is found. If you have deleted these files the GRUB solution (Linux shell) might help although it might be better to reinstall GRUB from a chroot environment got from a live cd.

If your Linux filesystem has errors GRUB might not be able to find its files even if they are there. So sometimes is advised to try to run the:

fsck -yc /dev/DEV

command as root where DEV is your linux partition device.

fsck -yc /dev/sda3 

will fix the third partition from an scsi or sata first disk (Although it might not actually be the first one).

  • OpenSolaris GRUB cannot be restored to a partition which this method. You need to boot Linux and then use the install-grub command. See man install-grub for more info.

TIP

If you cannot get to restore grub this way you can always try to boot Linux and then use the Grub Solution (on its own) method or the Grub Solution (Linux shell) method.

Similar problems

External resources

TODO

Grub2 is a very powerful boot loader, developed by GNU. You can easily install Grub2 from Windows with just a few commands. Grub2 supports both UEFI and Legacy BIOS modes. It is capable of booting most Windows, Linux, BSD and macOS operating systems.

How do I manually install GRUB bootloader?

Installing GRUB2 on a BIOS system

  1. Create a configuration file for GRUB2. # grub2-mkconfig -o /boot/grub2/grub.cfg.
  2. List block devices available on the system. $ lsblk.
  3. Identify the primary hard disk.
  4. Install GRUB2 in the MBR of the primary hard disk.
  5. Reboot your computer to boot with the newly installed bootloader.

Can you install GRUB without Linux?

Yes it is. G As GRUB is a stand-alone boot loader and can be installed onto a computer that doesn’t have Linux installed, to boot those operating systems that are installed.

How do I restore a GRUB file after installing Windows 7?

To recover grub: Open the live version. Open the terminal and run sudo fdisk -l to see where Linux is installed….6 Answers

  1. Boot from LiveCD ⋯ please try to use a LiveCD that has the same version of Grub2 as the installed version.
  2. Mount the root of the installed Ubuntu at /mnt.
  3. Change root.
  4. Update grub.
  5. Install grub.
  6. Reboot.

How do I fix Windows bootloader?

Method 1: Startup Repair tool

  1. Start the system to the installation media for the installed version of Windows.
  2. On the Install Windows screen, select Next > Repair your computer.
  3. On the Choose an option screen, select Troubleshoot.
  4. On the Advanced options screen, select Startup Repair.

How do I install grub menu?

via Partition Files Copy

  1. Boot to the LiveCD Desktop.
  2. Mount the partition with your Ubuntu installation.
  3. Open a terminal by selecting Applications, Accessories, Terminal from the menu bar.
  4. Run the grub-setup -d command as described below.
  5. Reboot.
  6. Refresh the GRUB 2 menu with sudo update-grub.

Where is GRUB Disk installed?

The GRUB 2 files will normally be located in the /boot/grub and /etc/grub. d folders and the /etc/default/grub file in the partition containing the Ubuntu installation. If another Ubuntu/Linux distribution controlled the boot process, it will be replaced by the GRUB 2 settings in the new installation.

Should I install GRUB bootloader?

You don’t actually need GRUB (Grand Unified Boot Loader) boot loader as it is by default boot loader and manager for Ubuntu since version 9.10. If you look into the booting process, after BIOS and MBR, GRUB gives you the option of choosing your kernel.

Can Windows 7 boot from grub?

Boot your system to the GRUB menu. Select (highlight) the GRUB boot menu entry Windows 7 (loader) (on /dev/sda1) . Press e to edit the GRUB boot commands for Windows 7.

Can I continue without a bootloader?

Since version 3.3. x, and ONLY on EFI machines, it is possible to boot the Linux kernel without using a bootloader. Have a look at Booting the Linux Kernel without a bootloader.

How do I get Ubuntu back after installing Windows?

The graphical way

  1. Insert your Ubuntu CD, reboot your computer and set it to boot from CD in the BIOS and boot into a live session. You can also use a LiveUSB if you have created one in the past.
  2. Install and run Boot-Repair.
  3. Click “Recommended Repair”.
  4. Now reboot your system. The usual GRUB boot menu should appear.

How do I reinstall grub from USB?

How to Repair Grub

  1. Boot to the live cd or USB that you have and open a terminal window( Ctrl + T ) and type the following: sudo fdisk -l.
  2. Now you are sure about where to install grub.
  3. sudo mount /dev/sda3 /mnt , where /mnt is any directory you need.

How do I boot Windows 7 using GRUB?

Currently, your grub.cfg uses the GRUB boot commands below to boot Windows 7. I am suggesting you try changing this and use these commands instead. Here are the steps to do this. Boot your system to the GRUB menu. Select (highlight) the GRUB boot menu entry Windows 7 (loader) (on /dev/sda1).

How do I install a grub-based bootloader?

EasyBCD can automatically install a GRUB-based bootloader called NeoGrub. It’ll be chainloaded from the Windows bootloader, and you can edit its configuration file from within Windows; it also supports NTFS so you can save the kernel to the NTFS partition and load it from there.

How do I add a custom entry to the Grub config file?

Run the command sudo update-grub to update /boot/grub/grub.cfg to include your customized entry. (It will be on the bottom of the GRUB menu when you boot.) I would view the suggestion above as only a partly-baked solution.

How do I start Ubuntu on GRUB2?

The above steps are from near the bottom of the Ubuntu Community Documentation of Grub2 After booting from the liveCD ( select “Try Ubuntu” on the opening screen) Then start up a terminal (dash, type-in terminal, … )… It may be easier to open this web page while running LiveCD.

  • How to install mysql to windows
  • How to install windows for android
  • How to install grub for windows
  • How to install npm on windows
  • How to install google test windows