Grub loading error 17 windows 10

Прежде, чем сесть за написание этой темы, я провел день (около шести часов) в тщетных попытках самостоятельно решить свою проблему, нашел кучу инфо по ней,

Содержание

  1. GRUB: Error 17 — тупиковая ситуация. 🙁 Перерыл кучу информации, ничего не помогает.
  2. LiveInternetLiveInternet
  3. —Подписка по e-mail
  4. —Поиск по дневнику
  5. —Интересы
  6. —Постоянные читатели
  7. —Трансляции
  8. —Статистика
  9. Как излечить ошибку №17 при загрузке ОС (восстановление загрузчика)
  10. Не загружается Linux, чиним загрузчик GRUB
  11. Что такое Grub
  12. От чего могут возникнуть проблемы
  13. Восстановление Grub с помощью LiveCD/USB
  14. Как создать LiveCD/USB
  15. С помощью Rufus:
  16. С помощью Etcher:
  17. Восстановление с помощью chroot
  18. Восстановление Grub в rescue mode
  19. Восстановление Grub с помощью утилиты Boot repair
  20. Выводы
  21. grub loading please wait error 17

GRUB: Error 17 — тупиковая ситуация. 🙁 Перерыл кучу информации, ничего не помогает.

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

Это моя вторая самостоятельная попытка установить Linux. Прежде (успешно) пробовал Slackware 12 и, наигравшись и освоившись, решил поставить что-нибудь посерьезнее в целях применения на практике и попутного изучения.

Итак. Я устанавливаю Gentoo 2007.0 (amd64) на доманшний компьютер с материнской платой ASUS K8N-E Deluxe (nForce 3 250) и процем AMD Athlon 64 3000+ S754. При установке строго следовал анлоязычному хендбуку, изредка отвлекаясь на http://ru.gentoo-wiki.com. Сам Gentoo проблем не доставил, все удачно собралось и установилось, дошел до этапа установки GRUB и перезагрузки.

После перезагрузки получил:

Grub Loading stage1.5.

Grub loading, please wait. error 17

При этом не появляется меню выбора ОС.

Вот содержимое файла /boot/grub/grub.conf, находящегося в /dev/sdf1:

default 0 timeout 16 splashimage=(hd6,0)/boot/grub/splash.xpm.gz

title=Gentoo Linux 2.6.23-gentoo-r6 root (hd6,0) kernel /boot/kernel-2.6.23-gentoo-r6 root=/dev/sdf4

title=Gentoo Linux 2.6.23-gentoo-r6 (rescue) root (hd6,0) kernel /boot/kernel-2.6.23-gentoo-r6 root=/dev/sdf4 init=/bin/bb

title=Windows 2003 rootnoverify (hd0,0) makeactive chainloader +1

(Перепечатывал с экрана, могут быть неточности). Указанные пути сто раз перепроверены. Файл /boot/boot является симлинком на «.», как это и сказано в хендбуке.

Я пробовал устанавливать GRUB в MBR как припомощи grub install, так и вручную из grub. В обоих случаях он рапортует об успешной установке без ошибок.

grub позволяет сделать команду grub> root только для раздела (hd6,0), на другие разделы он ругается по поводу неподдерживаемой ФС. Про (hd6,0) он говорит, файловая система ext2fs, тип раздела 0x83 (то есть Linux).

С виду все как надо. Но при загрузке компа получаю Error 17. Эта ошибка указывает на неподдерживаемую ФС.

В одной из бесчисленных постов, озаглавленных «grub error 17», нашел идею, что при загрузке компьютера харды определяются не в том порядке, в каком они определяются из-под загруженной ОС. Но флопа в компе нет, поэтому grub> find /boot/grub/grub.conf я могу сделать под Gentoo загруженным с DVD, а grub> root он позволяет сделать только для (hd6,0).

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

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

Источник

LiveInternetLiveInternet

Подписка по e-mail

Поиск по дневнику

Интересы

Постоянные читатели

Трансляции

Статистика

Как излечить ошибку №17 при загрузке ОС (восстановление загрузчика)

У меня на компьютере стояла Windows XP на системном диске С. Кроме системного на том же харде (мастер, 20 гигов) был еще один логический диск. Кроме того, имелся прицепленный хард-архив (400 гигов), который также был разбит на два диска. Вот на один из логических дисков хард-архива я и стал устанавливать Linux Mint 7 Gloria.
Кстати, до этого я с линуксом дел практически не имел. Разве что видел как с ним работают другие люди.

Переразбил второй логический диск второго харда еще на три штуки – пять гигов с лишним под /, еще пять – под /home. Предварительно оба отформатил под журналируемую систему ext4. Третий диск, размерами меньше гига, отдал под своп – файл подкачки.

Получилось примерно так:
sda1 – ntfs – 11,5 гигов – винда
sda5 – ntfs – 8,8 гигов – файлы
sdb1 – ntfs – 389,3 гигов – файлы
sdb2 – ext4 – 5 гигов – линух /
sdb6 – ext4 – 4,6 гигов – линух /home
sdb5 – swap – 1 гиг – подкачка

Описывать процедуру установки и некоторые мои ошибки долго. С такими талантами мне бы бета-тестером работать. Просто скажу что сперва загрузчик верно опознавал соседнюю ОСь и выводил два варианта загрузки, но потом накрылся медным тазом. Причем, как я понял, работать перестал как виндовый загрузчик mbr, так и лиунксовый grub.

Grub loading stage 1.5
Grub loading, please wait.
Error 17

UP1:
Предполагаемые причины локализованы:
1. Установка линуха и, собственного, груба не на основной винт
2. Неверная настройка груба или устаревший груб
3. Неверный выбор файловой системы под форматирование

UP2:
Решение для восстановления виндового загрузчика было найдено:
1. Взять диск с которого устанавливалась винда, вставить в дисковод, перезагрузиться (но прежде желательно установить в BIOS загрузку с CD. [First Boot])
2. Запустить РУЧНУЮ установку винды.
3. Дождаться экрана, где будет приветствие программы установки и выбор трех вариантов, среди которых «Чтобы восстановить Windows XP, с помощью консоли восстановления, нажмите ».
4. Нажать клавишу R
5. Нажать клавишу 1 и Enter, потом ввести пароль администратора (если он был). Потом Enter
6. Ввести команду fixmbr
7. Нажать клавишу Y и Enter
8. Ввести команду exit
9. Установить в BIOS обратно загрузку с харда

Решение для восстановления линуксового загрузчика ищется.

Источник

Не загружается Linux, чиним загрузчик GRUB

grub2 cli large

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

Что такое Grub

GRUB screenshot

От чего могут возникнуть проблемы

Если, например, сделать наоборот, то как раз-таки Grub будет поврежден; система будет грузиться напрямую в Windows, а дистрибутив Linux останется недоступным.

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

Восстановление Grub с помощью LiveCD/USB

Для этого способа нам понадобится флешка с дистрибутивом Linux на борту. Подойдет любой: от Ubuntu, Arch или даже Linux Mint. Здесь нужен только терминал, поэтому подойдет даже версия без графической оболочки.

Как создать LiveCD/USB

Само собой, нам понадобится носитель, на который мы временно (а может и нет) запишем систему. Сохраните все важные файлы, которые были на этом носителе, после чего (имеется ввиду на другом ПК, желательно под управлением Windows) запишите загруженный образ дистрибутива на носитель. В качестве примера мы будем использовать дистрибутив Ubuntu.

Идем на официальную страницу загрузки. Загружаем любую понравившуюся версию (лучше взять новейшую для десктопа), после чего записываем ее на USB/CD.

С помощью Rufus:

Последняя версия приложения доступна на официальном сайте. Сразу после загрузки и запуска/установки мы увидим такое окно:

rufus ru

Вставляем носитель, выбираем его в соответствующем меню. Далее выбираем нужную схему раздела и тип системного интерфейса, и после уже открываем файловый менеджер с помощью этой кнопки:

rufus ru1

Находим загруженный образ через менеджер, после чего жмем «Старт».

С помощью Etcher:

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

screenshot11

Ну а теперь, собственно, можно переходить к восстановлению Grub. Вставляем флешку в наш ПК (где сломан загрузчик), после чего перезагружаем его с этой самой флешки. Как только мы войдем в лайв-систему, сразу открываем терминал, после чего проделываем следующие действия:

Открываем таблицу разделов с помощью команды:

Примерно такая таблица будет выведена на экран:

По этой таблице мы видим, что Linux, в нашем случае, расположен на разделе /dev/sda1.

С помощью следующей команды мы смонтируем этот раздел в /mnt:

Теперь, для записи grub в MBR, нужно ввести следующую команду:

Если нужно только восстановить MBR диска (после переустановки Windows, к примеру), то этих действий будет вполне достаточно.

Если же необходимо обновить и меню grub (после установки Windows), то нужно выполнить еще и эту команду:

Вот и все, восстановление закончено!

Восстановление с помощью chroot

Помимо вышеописанного способа, при восстановлении Grub с помощью LiveCD можно использовать и этот. Тут мы будем использовать утилиту chroot.

Здесь нам, опять же, понадобится таблица разделов. Вводим уже известную команду:

В выводе снова будет эта таблица. Теперь нам надо присмотреться к ней еще внимательнее.

В этом способе нам необходимо примонтировать системный, а также нескольких других важных разделов. Для этого вводим эти команды:

Обратите внимание, что если если разделы /boot или /var находятся отдельно, то Вам нужно будет примонтировать их в /mnt/boot и /mnt/var.

Далее мы переходим в окружающую среду chroot с помощью команды:

И теперь, наконец-таки переустанавливаем Grub с помощью следующей команды:

Если вы на этом этапе получаете какие-то сообщения об ошибках, то попробуйте использовать эти команды:

Если все прошло успешно, выходим из chroot, используя команду:

Далее нужно отмонтировать все разделы. Для этого вводим в терминал:

В случае, если вы монтировали раздел /boot введите команду:

Теперь перезагружаем систему с помощью:

Можно также обновить меню Grub, используя команду:

Восстановление Grub в rescue mode

Если по каким-то причинам у вас нет доступа к LiveCD/USB-носителю, а также к компьютеру, с помощью которого этот самый носитель можно было бы сделать, то этот способ для вас.

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

Одна из этих частей (первая) записана в MBR диска. В ней присутствует базовый функционал и ничего больше (консоль в rescue mode).

Стало быть, нам нужно определить, в каком разделе находится вторая часть Grub (находится в каталоге /boot/grub), и после чего подгрузить все недостающие модули. А вот уже после этого мы сможем запустить загрузчик с нужного раздела. В rescue mode есть всего четыре команды:

Для начала вводим следующую команду:

В выводе будет что-то подобное:

В некоторых случаях Grub неправильно опеределяет файловые системы находящиеся на разделах дисков. В данном примере загрузчик показывает их как msdos. Мы должны попытаться угадать диски, которые видим. В примере доступно два диска. Диск с индексом 0 содержащий три раздела, и диск с индексом 1 содержащий два раздела. Если вы знаете структуру своих дисков, определить нужный труда не составит.

С помощью этих команд мы приказываем системе использовать какой-то конкретный диск, для выполнения всех остальных операций (в нашем случае, это диск (hd0,1)). Чтобы проверить есть ли на данном диске загрузчик, введем эту команду:

Если в выводе будет список файлов и папок, значит мы все сделали правильно. Теперь можно загрузить все необходимые модули. Для этого выполним команды:

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

Чтобы закрепить результат (и не проделывать все то же самое после перезапуска ПК), нужно зайти в терминал своего дистрибутива Linux, где с root правами выполнить следующую команду:

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

И подгрузить модули:

Ну и теперь запустить GRUB:

Восстановление Grub с помощью утилиты Boot repair

1335260967

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

Чтобы установить boot repair, вы можете воспользоваться одним из приведенных способов:

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

В утилите будет доступно два варианта на выбор:

Recommended repair исправляет большую часть известных ошибок, которые могли бы возникнуть при запуске. С его помощью вы сможете пофиксить и загрузчик Grub.

Create a BootInfo summary создает Boot-Info-Script – скрипт, который позволяет диагностировать большинство проблем при загрузке.

Здесь же есть и Advanced options. Он включает в себя варианты для восстановления и настройки загрузчика Grub2 (загрузка по-умолчанию, опции загрузки ядра, отображение или скрытие GRUB при загрузке, удаление GRUB). С помощью этих же инструментов, вы можете восстановить MBR и т.д.

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

Выводы

Возможно вас заинтересуют и другие похожие материалы про починку загрузчика Grub2. Например, в этом материале вы узнаете, как починить GRUB2 если Ubuntu не хочет загружаться. Там более подробно рассказывается, как фиксить груб с помощью утилиты Boot Repair, возможно вам стоит заглянуть туда, если вы не поняли что-то из этого материала. Что же, ну а на сегодня это все. Надеюсь, что данный материал помог вам разобраться в ошибках. Что, в свою очередь, поможет вам их решить.

Источник

grub loading please wait error 17

Я прочитал несколько подобных вопросов и ответов об ошибках grub, изученных в Google (много), но до сих пор не нашел решения моей проблемы.

Что я пробовал? Я попробовал несколько Linux LIVE CD и DVD у меня: Ubuntu 8.04, Kubuntu 10.04, Ubuntu 10.04, Ubuntu 11.10, Fedora 11 и т. Д. — ни один из них не может запускаться во всех режимах и параметрах, которые я пытался (я не редактировал вручную команды, но попробовали предоставленные опции). Я не могу использовать Live CD OS, и я не могу их установить. Это важно: можно удалить все содержимое HD! Хорошо отформатировать, переделать, потерять все данные HD — без проблем.

В большинстве разновидностей Ubuntu, включая компакт-диск 8.04, инициализационные стопки, несколько раз повторяются следующие сообщения об ошибках:

Итак, я загрузил и сжег Rescatux на компакт-диск. Он не может начаться, говоря:

Мне нравится формат HD, переустановка Windows XP, переустановка Ubuntu, переделка HD или восстановление поврежденной части и восстановление двойной загрузки. Я просто хочу снова использовать свой ноутбук.

GRUB loading, please wait.
Error 17
и на том и замирает. так и висит это все пока не поставишь установочный диск и не сделаешь перезапуск.

то есть, на сколько я понимаю, где то просто стоит настройка, что запуск возможен только если диск «пнет» систему.
в то же время, о том, что запуск системы должен производиться с dvdrom’а в bios я исправляю и толку от этого ноль!! потому как происходит тоже самое. без диска винда не включается.

Welcome to LinuxQuestions.org, a friendly and active Linux Community.

You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!

Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.

Are you new to LinuxQuestions.org? Visit the following links:
Site Howto | Site FAQ | Sitemap | Register Now

If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.

Having a problem logging in? Please visit this page to clear all LQ-related cookies.

w mach01c Introduction to Linux — A Hands on Guide

This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author’s experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.

Click Here to receive this Complete Guide absolutely free.

‘pmount puppy drive mounter’ says that I have

ATA ST94019A sda1 ext3 34.3 G 31.5G free [I set it to be bootable]

GRUB file is shown below.

What should I do to install Puppy on the laptop?

PS. Please use simple English and write command lines in your answer.

Click here to see the post LQ members have rated as the most helpful post in this thread.

sc_ijin
View Public Profile
View LQ Blog
View Review Entries
View HCL Entries
Find More Posts by sc_ijin

BTW, I tried
restarting computer after partitioning, but before installing Puppy,
using ext2 and ext3 file systems
disconnecting the charger and battery

with no effect on GRUB 17 error message.

sc_ijin
View Public Profile
View LQ Blog
View Review Entries
View HCL Entries
Find More Posts by sc_ijin
syg00
View Public Profile
View LQ Blog
View Review Entries
View HCL Entries
Find More Posts by syg00
sc_ijin
View Public Profile
View LQ Blog
View Review Entries
View HCL Entries
Find More Posts by sc_ijin

Which other operating systems, if any, do you have on the computer?
If you have, what are they?
Info in your first post shows 2.8GB used and Puppy is only about 110MB.
Also the Grub error 17:

Cannot mount selected partition
This error is returned if the partition requested exists, but the filesystem type cannot be recognized by GRUB

would indicate Grub is trying to mount a non-Linux filesystem.

Your menu.lst file indicates Grub is pointing to the first partition on the first drive?

yancek
View Public Profile
View LQ Blog
View Review Entries
View HCL Entries
Find More Posts by yancek

ATA ST94019A sda1 ext3 34.3 G 31.5G free

I am trying to make in Puppy only. There should be only two partitions: Ext3 (for Puppy Linux) and swap for puppy swap.

Your menu.lst file indicates Grub is pointing to the first partition on the first drive?

sc_ijin
View Public Profile
View LQ Blog
View Review Entries
View HCL Entries
Find More Posts by sc_ijin
sc_ijin
View Public Profile
View LQ Blog
View Review Entries
View HCL Entries
Find More Posts by sc_ijin
syg00
View Public Profile
View LQ Blog
View Review Entries
View HCL Entries
Find More Posts by syg00
Karl Godt
View Public Profile
View LQ Blog
View Review Entries
View HCL Entries
Visit Karl Godt’s homepage!
Find More Posts by Karl Godt
sc_ijin
View Public Profile
View LQ Blog
View Review Entries
View HCL Entries
Find More Posts by sc_ijin

It doesn’t appear to me that anyone has actually addressed the real problem here. It sounds like you’ve tried to install to an improper partition type, and now grub can’t load the files and boot properly.

Just my two cents worth here, but when you boot puppy up, click MENU, then SYSTEM, then GPARTED. Use this to format your drive ext2 or ext3, and then set the bootable flag on it. After you create the first partition, create a SECOND partition of, say, 512-1024mb for swap space after it, and label it as such. After you’ve completed this, you can use the Universal Installer to install your new system. Don’t waste your time installing frugally, as it’s not necessary on this machine. Install to your linux partition (/dev/sda1) with the FULL INSTALL option. Don’t worry, it will get to that option during the install process, and you can choose that option when it comes up. Now you know how to install Puppy correctly to a hard drive. Save the frugal installs for usb stix. Trust me on this, as it will make your life simpler, especially when you want to remember where a certain directory or file is. Frugal installs compress all the directories & files into one large file. I find this a nuisance, and rather confusing to start out with, regardless of what others may say. Also, a swap partition isn’t required, but Puppy will certainly use one if it’s available, so make it at least as large as your memory, preferably double your memory size.

And please, folks, don’t confuse this guy any further with «. but you can STILL do a frugalshit option on a fat partition, etc. «, as he’s obviously having a hard time as it is. I’ve been where he is, and one simple method is better than a lot of technical-sounding edits of multiple files, etc.

Finally, if you have a 2gb or larger usb stick, you might boot up puppy and install to that stick. Unlike a full hdd install, a usb stick requires a fat partition, and if you can boot from usb drives, you can still take puppy with you and play to your heart’s content.

Источник

Adblock
detector

What Is GRUB

GRUB or GNU GRUB is short for GRand Unified Bootloader. It is a boot loader used on multi-OS computers that provides users the choice to choose which operating system to boot from on the computer. Different operating systems may need varying boot loaders. For example, NTLDR is the boot loader for Windows NT operating systems, and LILO is the boot loader for Linux. As for GRUB, it is the boot loader for Windows and Linux and is generally used on computers that are with both Windows and Linux installations.

Here’s a quick view of common GRUB loading errors and corresponding solutions. Jump to the part you’re most interested:

Workable Solutions Step-by-step Troubleshooting
Fix 1. GRUB Loading Error 15 boot from the Live CD, and mount/boot depending on your partition…Full steps
Fix 2. GRUB Loading Error 17 use a distribution CD or Live CD to set up Grub as sudo grub > root (hd0,0) > setup (hd0) exit…Full steps
Fix 3. GRUB Loading Error 21 Boot the computer from the Ubuntu installation disc > Run Command Prompt as an administrator…Full steps
Fix 4. GRUB Loading Error 22 Restart the computer and press «F8» until you see the options, go back to the menu…Full steps

Common GRUB Loading Errors

However, it’s not without a problem while using GRUB. Many users have the experience of encountering the GRUB loading error during the computer startup. There are two versions of GRUB, and if you’re using Stage 1.5 or Stage 2.0, you’ll probably encounter grub loading error 15, 17, 21, or 22.

GRUB loading error 15

File not found. This error is displayed when the specified file name cannot be found.

GRUB loading error 17

Cannot mount selected partition. This error is displayed when the partition requested exists, but the file system type is not be recognized by GRUB.

GRUB loading error 21

The selected disk does not exist. This error is displayed if the disk is not recognized by the BIOS in the system.

GRUB loading error 22

No such partition. This error is displayed if a requested partition isn’t on the selected disk.

What Causes GRUB Loading Error 15, 17, 21, 22

When you install Windows and Linux on a computer, you need to configure GRUB correctly to boot from one of the operating systems successfully. Or you may encounter GRUB loading errors, like error 15, 17, 21, and 22. The common GRUB loading errors might be caused by:

  • Improper configuration of GRUB
  • The wrong installation location of GRUB
  • Accidental deletion of GRUB
  • The corruption of MBR

How to Fix GRUB Loading Error 15, 17, 21, 22

The solutions differ based on the error you are faced with. Specify the error message you encounter and carry out the corresponding solution.

Fix GRUB Loading Error 15

Make sure the kernel exists. To find out what the exact kernel name is, boot from the Live CD, and mount /boot depending on your partition and then do the following: cd /boot | ls

Fix GRUB Loading Error 17

Make sure your root(x,y) settings are right in your Grub.conf. You could use a distribution CD or Live CD to set up Grub as shown below. (h0,0) means the first hard drive and the first partition on that drive.

sudo grub

root (hd0,0)

setup (hd0) exit

Fix GRUB Loading Error 21

Step 1. Boot the computer from the Ubuntu installation disc.

Step 2. Run Command Prompt as an administrator.

Step 3. Enter the following command:

$sudo -s
#grub
grub> find /boot/grub/stage1 (then cmd will return something like «hd0,0»)
grub> root (hd0,0)
grub> setup (hd0)
grub> quit

Fix GRUB Loading Error 22

Step 1. Restart the computer and press «F8» until you see the options.

Step 2. Go back to the menu where you can choose the operating system.

Step 3. Choose «Microsoft Windows Recovery Console». (You may need your Windows installation disc to access the recovery console.)

Step 4. If you are asked to choose the system drive, enter the number in front of the system drive listed.

Step 5. Enter the account password as required. Run the command fixmbr and enter «y» to confirm the operation.

Step 6. Enter «exit» and restart the computer.

How to Recover Data Lost After Fixing GRUB Loading Error

Applies to: Restore all lost files and data after fixing GRUB loading error in Windows 10/8/7.

Applying the fix for a specific grub loading error in Windows may cause data loss. For example, some operations would format the disk partition or delete hard drive contents. So it’s necessary to learn how to recover data after getting rid of the grub loading error on your computer.

Reliable EaseUS Data Recovery Wizard — EaseUS Data Recovery Wizard specializes in file recovery on all Windows operating systems. It allows you to recover data lost due to the GRUB loading error effectively in only a few simple clicks.

See how to recover the accidentally deleted or formatted hard disk data while fixing GRUB loading error on your computer with ease:

Note: To guarantee a high data recovery chance, install EaseUS data recovery software on another disk instead of the original disk where you lost files. 

Step 1. Launch EaseUS Data Recovery Wizard on your Windows 11, Windows 10, Windows 8, or Windows 7 computer. Select the disk partition or storage location where you lost data and click «Scan».

select the disk on Windows  to scan

Step 2. This recovery software will start scanning the disk to find all lost and deleted files. When the scan process completes, click «Filter» > «Type» to specify lost file types.

choose the recovered data type

Step 3. Preview and restore lost Windows files. You can double-click to preview the scanned files. Then, select the target data and click the «Recover» button to save them to another safe spot in the PC or an external storage device.

recover windows 10 lost data

Besides, you can also apply this data recovery software to recover files and data lost on the desktop, laptop, internal hard drive, external hard drive, removable USB flash disk, pen drive, memory card, and many more storage devices.

The Bottom Line

GRUB loading errors always occur on computers with dual OS, and each error code is informative since it indicates what the possible cause is. Apply the solutions provided to cope with the issue and use EaseUS Data Recovery Wizard to retrieve the data when data loss happens.

Добрый день, форумчане.
Я новичок в Mageia и в Линуксе, в принципе.
На работе мне выдали ноутбук Lenovo G580 , на котором от старого владельца был дуалбут Windows 7 и Mageia 2. Но дестрибутив Mageia 2 не очень корректно работал с рабочим оборудованием, из-за чего я захотел обновить его до Mageia 5. Однако, обновление выдавало ошибки. К тому же я хотел расширить размер диска Linux за счёт пространства Windows. Решил установить Mageia 5, заменив Mageia 2 и забрав у Windows 7 50 ГБ. Предварительно выполнил дефрагментацию на Windows 7, запустил установку Mageia 5 с флешки. В ручном режиме выполнил изменение разделов. Установка прошла без ошибок, но после перезагрузки системы ноутбук перестал загружаться. Загрузка системы останавливается в самом начале с сообщением:
>Grub Loading stage1.5.
>
>Grub loading, please wait…
>Error 17
Я попытался починить загрузчик с помощью утилиты (https://help.ubuntu.com/community/Boot-Repair), но она выдала сообщение об ошибке.
Полный текст отчёта доступен по ссылке: http://paste.ubuntu.com/17218768/
На всякий случай продублирую его здесь:

 Boot Info Script e7fc706 + Boot-Repair extra info      [Boot-Info 23Nov2014]


============================= Boot Info Summary: ===============================

 => Grub Legacy (v0.97) is installed in the MBR of /dev/sda and looks on the 
    same drive in partition #5 for /boot/grub/stage2 and /boot/grub/menu.lst.
 => Syslinux MBR (4.04 and higher) is installed in the MBR of /dev/sdb.

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 7/2008: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /bootmgr /Boot/BCD

sda2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 7/2008: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 7
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe

sda3: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  -
    Boot sector info: 

sda5: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  According to the info in the boot sector, sda5 has 
                       606481 sectors.. But according to the info from the 
                       partition table, it has 783195 sectors.
    Operating System:  
    Boot files:        /EFI/mageia/grubx64.efi

sda6: __________________________________________________________________________

    File system:       ext2
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Mageia release 5 (Official) for x86_64
    Boot files:        /boot/grub2/grub.cfg /etc/fstab

sda7: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

sda8: __________________________________________________________________________

    File system:       ext2
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sda4: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 7/2008: NTFS
    Boot sector info:  According to the info in the boot sector, sda4 has 
                       40550399 sectors, but according to the info from 
                       fdisk, it has 40962735 sectors.
    Operating System:  
    Boot files:        /bootmgr /boot/bcd

sdb1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  SYSLINUX 4.07
    Boot sector info:  Syslinux looks at sector 8208 of /dev/sdb1 for its 
                       second stage. The integrity check of Syslinux failed. 
                       No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /boot/grub/grub.cfg /syslinux.cfg /casper/vmlinuz.efi 
                       /EFI/BOOT/grubx64.efi /ldlinux.sys

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *          2,048       411,647       409,600   7 NTFS / exFAT / HPFS
/dev/sda2             411,648   420,180,074   419,768,427   7 NTFS / exFAT / HPFS
/dev/sda3         420,184,044   584,171,594   163,987,551   5 Extended
/dev/sda5         420,184,064   420,967,259       783,196  ef EFI (FAT-12/16/32)
/dev/sda6         420,970,496   472,776,884    51,806,389  83 Linux
/dev/sda7         472,780,800   481,162,814     8,382,015  82 Linux swap / Solaris
/dev/sda8         481,165,312   584,171,594   103,006,283  83 Linux
/dev/sda4         584,179,712   625,142,447    40,962,736  12 Compaq diagnostics


Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 2001 MB, 2001731584 bytes
255 heads, 63 sectors/track, 243 cylinders, total 3909632 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdb1    *          2,048     3,909,631     3,907,584   c W95 FAT32 (LBA)


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/loop0                                              squashfs   
/dev/sda1        8E346E20346E0B91                       ntfs       
/dev/sda2        549C6D5A9C6D379E                       ntfs       Windows7_OS
/dev/sda4        682CEF582CEF1FB4                       ntfs       LENOVO_PART
/dev/sda5        348D-8D96                              vfat       
/dev/sda6        ab676cc0-1029-4df8-a3b5-5e4bc5d4a0c9   ext2       
/dev/sda7        e988e009-08de-4a61-96df-6dbe5ca0665c   swap       
/dev/sda8        b3b523f1-7679-498b-a641-b4b6c24cf6f3   ext2       
/dev/sdb1        28CA-7796                              vfat       BOOT-REPAIR
/dev/zram0       56a1fede-d18c-479d-b77d-80e3191090bd   swap       
/dev/zram1       f1a20031-7e41-4565-913b-3bf3b0d0fa1f   swap       
/dev/zram2       52077a68-5980-4814-83db-84b82229e6e6   swap       
/dev/zram3       e487631e-5fa4-421c-bb4e-63ac2ebcaea2   swap       

========================= "ls -l /dev/disk/by-id" output: ======================

total 0
lrwxrwxrwx 1 root root  9 Jun 11  2016 ata-PLDS_DVD-RW_DS8A8SH_S45N7592Z1ZKBE02NGMZ -> ../../sr0
lrwxrwxrwx 1 root root  9 Jun 11  2016 ata-ST320LT020-9YG142_W046LQJP -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 11 16:53 ata-ST320LT020-9YG142_W046LQJP-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 11 16:53 ata-ST320LT020-9YG142_W046LQJP-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 11  2016 ata-ST320LT020-9YG142_W046LQJP-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Jun 11 16:53 ata-ST320LT020-9YG142_W046LQJP-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Jun 11  2016 ata-ST320LT020-9YG142_W046LQJP-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Jun 11  2016 ata-ST320LT020-9YG142_W046LQJP-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Jun 11  2016 ata-ST320LT020-9YG142_W046LQJP-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Jun 11  2016 ata-ST320LT020-9YG142_W046LQJP-part8 -> ../../sda8
lrwxrwxrwx 1 root root  9 Jun 11  2016 usb-Generic_USB2.0-CRW_20100201396000000 -> ../../sdc
lrwxrwxrwx 1 root root  9 Jun 11  2016 usb-Kingston_DataTraveler_G2_001CC0EC3456E9C176A6000A-0:0 -> ../../sdb
lrwxrwxrwx 1 root root 10 Jun 11  2016 usb-Kingston_DataTraveler_G2_001CC0EC3456E9C176A6000A-0:0-part1 -> ../../sdb1
lrwxrwxrwx 1 root root  9 Jun 11  2016 wwn-0x5000c50052b028fa -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 11 16:53 wwn-0x5000c50052b028fa-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 11 16:53 wwn-0x5000c50052b028fa-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 11  2016 wwn-0x5000c50052b028fa-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Jun 11 16:53 wwn-0x5000c50052b028fa-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Jun 11  2016 wwn-0x5000c50052b028fa-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Jun 11  2016 wwn-0x5000c50052b028fa-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Jun 11  2016 wwn-0x5000c50052b028fa-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Jun 11  2016 wwn-0x5000c50052b028fa-part8 -> ../../sda8

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev             /mnt/boot-sav/sda6/dev   none       (rw,bind)
/dev/loop0       /rofs                    squashfs   (ro,noatime)
/dev/sda6        /mnt/boot-sav/sda6       ext2       (rw)
/dev/sdb1        /cdrom                   vfat       (ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)


========================== sda6/boot/grub2/grub.cfg: ===========================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if loadfont unicode ; then
  set gfxmode=1024x768x32
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=ru_RU
  insmod gettext
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  ab676cc0-1029-4df8-a3b5-5e4bc5d4a0c9
else
  search --no-floppy --fs-uuid --set=root ab676cc0-1029-4df8-a3b5-5e4bc5d4a0c9
fi
insmod gfxmenu
loadfont ($root)/boot/grub2/themes/maggy/MageiaLogo-Bold-16.pf2
loadfont ($root)/boot/grub2/themes/maggy/MageiaLogo-Bold-20.pf2
loadfont ($root)/boot/grub2/themes/maggy/MageiaLogo-Bold-28.pf2
loadfont ($root)/boot/grub2/themes/maggy/MageiaLogo-Regular-20.pf2
insmod png
set theme=($root)/boot/grub2/themes/maggy/theme.txt
export theme
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=10
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Mageia' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-ab676cc0-1029-4df8-a3b5-5e4bc5d4a0c9' {
    load_video
    set gfxpayload=auto
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos6'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  ab676cc0-1029-4df8-a3b5-5e4bc5d4a0c9
    else
      search --no-floppy --fs-uuid --set=root ab676cc0-1029-4df8-a3b5-5e4bc5d4a0c9
    fi
    echo    'Загружается Linux desktop …'
    linux    /boot/vmlinuz-desktop root=UUID=ab676cc0-1029-4df8-a3b5-5e4bc5d4a0c9 ro   splash quiet noiswmd resume=UUID=e988e009-08de-4a61-96df-6dbe5ca0665c
    echo    'Загружается начальный виртуальный диск …'
    initrd    /boot/initrd-desktop.img
}
submenu 'Дополнительные параметры для Mageia' $menuentry_id_option 'gnulinux-advanced-ab676cc0-1029-4df8-a3b5-5e4bc5d4a0c9' {
    menuentry 'Mageia, с Linux desktop' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-desktop-advanced-ab676cc0-1029-4df8-a3b5-5e4bc5d4a0c9' {
        load_video
        set gfxpayload=auto
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos6'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  ab676cc0-1029-4df8-a3b5-5e4bc5d4a0c9
        else
          search --no-floppy --fs-uuid --set=root ab676cc0-1029-4df8-a3b5-5e4bc5d4a0c9
        fi
        echo    'Загружается Linux desktop …'
        linux    /boot/vmlinuz-desktop root=UUID=ab676cc0-1029-4df8-a3b5-5e4bc5d4a0c9 ro   splash quiet noiswmd resume=UUID=e988e009-08de-4a61-96df-6dbe5ca0665c
        echo    'Загружается начальный виртуальный диск …'
        initrd    /boot/initrd-desktop.img
    }
    menuentry 'Mageia, с Linux desktop (режим восстановления)' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-desktop-recovery-ab676cc0-1029-4df8-a3b5-5e4bc5d4a0c9' {
        load_video
        set gfxpayload=auto
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos6'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  ab676cc0-1029-4df8-a3b5-5e4bc5d4a0c9
        else
          search --no-floppy --fs-uuid --set=root ab676cc0-1029-4df8-a3b5-5e4bc5d4a0c9
        fi
        echo    'Загружается Linux desktop …'
        linux    /boot/vmlinuz-desktop root=UUID=ab676cc0-1029-4df8-a3b5-5e4bc5d4a0c9 ro failsafe 
        echo    'Загружается начальный виртуальный диск …'
        initrd    /boot/initrd-desktop.img
    }
    menuentry 'Mageia, с Linux 3.19.8-desktop-3.mga5' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.8-desktop-3.mga5-advanced-ab676cc0-1029-4df8-a3b5-5e4bc5d4a0c9' {
        load_video
        set gfxpayload=auto
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos6'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  ab676cc0-1029-4df8-a3b5-5e4bc5d4a0c9
        else
          search --no-floppy --fs-uuid --set=root ab676cc0-1029-4df8-a3b5-5e4bc5d4a0c9
        fi
        echo    'Загружается Linux 3.19.8-desktop-3.mga5 …'
        linux    /boot/vmlinuz-3.19.8-desktop-3.mga5 root=UUID=ab676cc0-1029-4df8-a3b5-5e4bc5d4a0c9 ro   splash quiet noiswmd resume=UUID=e988e009-08de-4a61-96df-6dbe5ca0665c
        echo    'Загружается начальный виртуальный диск …'
        initrd    /boot/initrd-3.19.8-desktop-3.mga5.img
    }
    menuentry 'Mageia, с Linux 3.19.8-desktop-3.mga5 (режим восстановления)' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.8-desktop-3.mga5-recovery-ab676cc0-1029-4df8-a3b5-5e4bc5d4a0c9' {
        load_video
        set gfxpayload=auto
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos6'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  ab676cc0-1029-4df8-a3b5-5e4bc5d4a0c9
        else
          search --no-floppy --fs-uuid --set=root ab676cc0-1029-4df8-a3b5-5e4bc5d4a0c9
        fi
        echo    'Загружается Linux 3.19.8-desktop-3.mga5 …'
        linux    /boot/vmlinuz-3.19.8-desktop-3.mga5 root=UUID=ab676cc0-1029-4df8-a3b5-5e4bc5d4a0c9 ro failsafe 
        echo    'Загружается начальный виртуальный диск …'
        initrd    /boot/initrd-3.19.8-desktop-3.mga5.img
    }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_ppc_terminfo ###
### END /etc/grub.d/20_ppc_terminfo ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

### BEGIN /etc/grub.d/90_persistent ###
### END /etc/grub.d/90_persistent ###

### BEGIN /etc/grub.d/93_memtest ###
### END /etc/grub.d/93_memtest ###
--------------------------------------------------------------------------------

=============================== sda6/etc/fstab: ================================

--------------------------------------------------------------------------------
# Entry for /dev/sda6 :
UUID=ab676cc0-1029-4df8-a3b5-5e4bc5d4a0c9 / ext2 noatime,acl 1 1
# Entry for /dev/sda5 :
UUID=348D-8D96 /boot/EFI vfat umask=0,iocharset=utf8 0 0
# Entry for /dev/sda8 :
UUID=b3b523f1-7679-498b-a641-b4b6c24cf6f3 /home ext2 noatime,acl 1 2
# Entry for /dev/sda1 :
UUID=8E346E20346E0B91 /media/win_c ntfs-3g defaults,nofail 0 0
# Entry for /dev/sda2 :
UUID=549C6D5A9C6D379E /media/win_d ntfs-3g defaults,nofail 0 0
# Entry for /dev/sdb1 :
UUID=06F3-1FEF /mnt/hd vfat umask=0,users,exec,iocharset=utf8,noauto,nofail 0 0
none /proc proc defaults 0 0
# Entry for /dev/sda7 :
UUID=e988e009-08de-4a61-96df-6dbe5ca0665c swap swap defaults 0 0
UUID=348D-8D96    /boot/efi    vfat    defaults    0    1
--------------------------------------------------------------------------------

=========================== sdb1/boot/grub/grub.cfg: ===========================

--------------------------------------------------------------------------------

if loadfont /boot/grub/font.pf2 ; then
    set gfxmode=auto
    insmod efi_gop
    insmod efi_uga
    insmod gfxterm
    terminal_output gfxterm
fi

set menu_color_normal=white/black
set menu_color_highlight=black/light-gray

menuentry "Boot-Repair-Disk session" {
    set gfxpayload=keep
    linux    /casper/vmlinuz.efi  file=/cdrom/preseed/lubuntu.seed boot=casper quiet splash --
    initrd    /casper/initrd.lz
}
--------------------------------------------------------------------------------

============================== sdb1/syslinux.cfg: ==============================

--------------------------------------------------------------------------------
DEFAULT loadconfig

LABEL loadconfig
  CONFIG /isolinux/isolinux.cfg
  APPEND /isolinux/
--------------------------------------------------------------------------------

========= Devices which don't seem to have a corresponding hard drive: =========

sdc 

=============================== StdErr Messages: ===============================

File descriptor 9 (/proc/2216/mounts) leaked on lvs invocation. Parent PID 15476: bash
File descriptor 63 (pipe:[30231]) leaked on lvs invocation. Parent PID 15476: bash
  No volume groups found

ADDITIONAL INFORMATION :
=================== log of boot-repair 2016-06-11__19h45 ===================
boot-repair version : 4ppa14
boot-sav version : 4ppa14
glade2script version : 3.2.2~ppa47~saucy
boot-sav-extra version : 4ppa14
File descriptor 9 (/proc/2216/mounts) leaked on lvs invocation. Parent PID 4837: /bin/sh
No volume groups found
boot-repair is executed in live-session (Boot-Repair-Disk 64bit 29nov2014, trusty, Ubuntu, x86_64)
ls: cannot access /home/usr/.config: No such file or directory
CPU op-mode(s):        32-bit, 64-bit
BOOT_IMAGE=/casper/vmlinuz.efi file=/cdrom/preseed/lubuntu.seed boot=casper quiet splash --

=================== os-prober:
/dev/sda6:Mageia 5 (5):Mageia:linux

=================== blkid:
/dev/loop0: TYPE="squashfs"
/dev/sda1: UUID="8E346E20346E0B91" TYPE="ntfs"
/dev/sda2: LABEL="Windows7_OS" UUID="549C6D5A9C6D379E" TYPE="ntfs"
/dev/sda4: LABEL="LENOVO_PART" UUID="682CEF582CEF1FB4" TYPE="ntfs"
/dev/sda5: UUID="348D-8D96" TYPE="vfat"
/dev/sda6: UUID="ab676cc0-1029-4df8-a3b5-5e4bc5d4a0c9" TYPE="ext2"
/dev/sda7: UUID="e988e009-08de-4a61-96df-6dbe5ca0665c" TYPE="swap"
/dev/sda8: UUID="b3b523f1-7679-498b-a641-b4b6c24cf6f3" TYPE="ext2"
/dev/sdb1: LABEL="BOOT-REPAIR" UUID="28CA-7796" TYPE="vfat"
/dev/zram0: UUID="56a1fede-d18c-479d-b77d-80e3191090bd" TYPE="swap"
/dev/zram1: UUID="f1a20031-7e41-4565-913b-3bf3b0d0fa1f" TYPE="swap"
/dev/zram2: UUID="52077a68-5980-4814-83db-84b82229e6e6" TYPE="swap"
/dev/zram3: UUID="e487631e-5fa4-421c-bb4e-63ac2ebcaea2" TYPE="swap"


1 disks with OS, 1 OS : 1 Linux, 0 MacOS, 0 Windows, 0 unknown type OS.

Windows not detected by os-prober on sda2.
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.

=================== sda6/etc/grub.d/ :
drwxr-xr-x  2 root root     4096 Jun 10 16:03 grub.d
total 72
-rwxr-xr-x 1 root root  8691 Apr 14  2015 00_header
-rwxr-xr-x 1 root root  9174 Apr 14  2015 10_linux
-rwxr-xr-x 1 root root 10246 Apr 14  2015 20_linux_xen
-rwxr-xr-x 1 root root  2559 Apr 14  2015 20_ppc_terminfo
-rwxr-xr-x 1 root root 11169 Apr 14  2015 30_os-prober
-rwxr-xr-x 1 root root   214 Apr 14  2015 40_custom
-rwxr-xr-x 1 root root   216 Apr 14  2015 41_custom
-rwxr-xr-x 1 root root  1259 Apr 14  2015 90_persistent
-rwxr-xr-x 1 root root  3486 Apr 14  2015 93_memtest
-rw-r--r-- 1 root root   483 Apr 14  2015 README




=================== sda6/etc/default/grub :

GRUB_GFXPAYLOAD_LINUX=auto
#GRUB_DISABLE_OS_PROBER=false
GRUB_DISTRIBUTOR=Mageia
GRUB_THEME=/boot/grub2/themes/maggy/theme.txt
GRUB_CMDLINE_LINUX_DEFAULT=" splash quiet noiswmd resume=UUID=e988e009-08de-4a61-96df-6dbe5ca0665c"
#GRUB_DISABLE_RECOVERY=false
GRUB_TERMINAL_OUTPUT=gfxterm
GRUB_DISABLE_SUBMENU=n
GRUB_TIMEOUT=10
GRUB_GFXMODE=1024x768x32
GRUB_ENABLE_CRYPTODISK=y




efibootmgr -v
BootCurrent: 0004
BootOrder: 0004,0001,0002,0003,0000
Boot0000* Network Boot: Atheros Boot Agent    BIOS(80,0,18)........................R..............................................
Boot0001* Internal HDD: ST320LT020-9YG142                   BIOS(2,500,18)................-...........A..........................................
Boot0002* SATA ODD    : PLDS DVD-RW DS8A8SH                 BIOS(3,500,18)................-...........A......#...................................
Boot0003* USB HDD     : KingstonDataTraveler G2     BIOS(2,500,18)..................S.......Q...U........................................
Boot0004* EFI USB Device    ACPI(a0341d0,0)PCI(1d,0)USB(0,0)USB(2,0)HD(1,800,3ba000,06993e78)RC
=================== UEFI/Legacy mode:
Unusual EFI: Please report this message to boot.repair@gmail.com
BIOS is EFI-compatible, and is setup in EFI-mode for this live-session.
SecureBoot disabled. (maybe sec-boot, Please report this message to boot.repair@gmail.com)


=================== PARTITIONS & DISKS:
sda1    : sda,    not-sepboot,    no-grubenv    nogrub,    no-docgrub,    no-update-grub,    32,    no-boot,    no-os,    not--efi--part,    part-has-no-fstab,    part-has-no-fstab,    no-nt,    no-winload,    no-recov-nor-hid,    bootmgr,    is-winboot,    nopakmgr,    nogrubinstall,    no---usr,    part-has-no-fstab,    not-sep-usr,    standard,    not-far,    /mnt/boot-sav/sda1.
sda2    : sda,    not-sepboot,    no-grubenv    nogrub,    no-docgrub,    no-update-grub,    32,    no-boot,    is-os,    not--efi--part,    part-has-no-fstab,    part-has-no-fstab,    no-nt,    haswinload,    no-recov-nor-hid,    bootmgr,    is-winboot,    nopakmgr,    nogrubinstall,    no---usr,    part-has-no-fstab,    not-sep-usr,    standard,    farbios,    /mnt/boot-sav/sda2.
sda4    : sda,    not-sepboot,    no-grubenv    nogrub,    no-docgrub,    no-update-grub,    32,    no-boot,    no-os,    not--efi--part,    part-has-no-fstab,    part-has-no-fstab,    no-nt,    no-winload,    no-recov-nor-hid,    bootmgr,    is-winboot,    nopakmgr,    nogrubinstall,    no---usr,    part-has-no-fstab,    not-sep-usr,    standard,    farbios,    /mnt/boot-sav/sda4.
sda5    : sda,    not-sepboot,    no-grubenv    nogrub,    no-docgrub,    no-update-grub,    32,    no-boot,    no-os,    is-maybe-EFI,    part-has-no-fstab,    part-has-no-fstab,    no-nt,    no-winload,    no-recov-nor-hid,    no-bmgr,    notwinboot,    nopakmgr,    nogrubinstall,    no---usr,    part-has-no-fstab,    not-sep-usr,    standard,    farbios,    /mnt/boot-sav/sda5.
sda6    : sda,    not-sepboot,    no-grubenv    grub1,    grub-efi ,    update-grub,    64,    with-boot,    is-os,    not--efi--part,    fstab-without-boot,    fstab-without-efi,    no-nt,    no-winload,    no-recov-nor-hid,    no-bmgr,    notwinboot,    nopakmgr,    grub2-install,    with--usr,    fstab-without-usr,    not-sep-usr,    standard,    farbios,    /mnt/boot-sav/sda6.
sda8    : sda,    maybesepboot,    no-grubenv    nogrub,    no-docgrub,    no-update-grub,    32,    no-boot,    no-os,    not--efi--part,    part-has-no-fstab,    part-has-no-fstab,    no-nt,    no-winload,    no-recov-nor-hid,    no-bmgr,    notwinboot,    nopakmgr,    nogrubinstall,    no---usr,    part-has-no-fstab,    not-sep-usr,    standard,    farbios,    /mnt/boot-sav/sda8.

sda    : not-GPT,    BIOSboot-not-needed,    has-maybe-EFI,     not-usb,    has-os,    2048 sectors * 512 bytes


=================== parted -l:

Model: ATA ST320LT020-9YG14 (scsi)
Disk /dev/sda: 320GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos

Number  Start   End    Size    Type      File system     Flags
1      1049kB  211MB  210MB   primary   ntfs            boot
2      211MB   215GB  215GB   primary   ntfs
3      215GB   299GB  84.0GB  extended
5      215GB   216GB  401MB   logical   fat32
6      216GB   242GB  26.5GB  logical   ext2
7      242GB   246GB  4292MB  logical   linux-swap(v1)
8      246GB   299GB  52.7GB  logical   ext2
4      299GB   320GB  21.0GB  primary   ntfs            diag


Model: Kingston DataTraveler G2 (scsi)
Disk /dev/sdb: 2002MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
1      1049kB  2002MB  2001MB  primary  fat32        boot, lba



                                                                          
Error: /dev/zram0: unrecognised disk label


                                                                          
Error: /dev/zram1: unrecognised disk label


                                                                          
Error: /dev/zram2: unrecognised disk label


                                                                          
Error: /dev/zram3: unrecognised disk label

=================== parted -lm:

BYT;
/dev/sda:320GB:scsi:512:4096:msdos:ATA ST320LT020-9YG14;
1:1049kB:211MB:210MB:ntfs::boot;
2:211MB:215GB:215GB:ntfs::;
3:215GB:299GB:84.0GB:::;
5:215GB:216GB:401MB:fat32::;
6:216GB:242GB:26.5GB:ext2::;
7:242GB:246GB:4292MB:linux-swap(v1)::;
8:246GB:299GB:52.7GB:ext2::;
4:299GB:320GB:21.0GB:ntfs::diag;

BYT;
/dev/sdb:2002MB:scsi:512:512:msdos:Kingston DataTraveler G2;
1:1049kB:2002MB:2001MB:fat32::boot, lba;


                                                                          
Error: /dev/zram0: unrecognised disk label


                                                                          
Error: /dev/zram1: unrecognised disk label


                                                                          
Error: /dev/zram2: unrecognised disk label


                                                                          
Error: /dev/zram3: unrecognised disk label


=================== mount:
/cow on / type overlayfs (rw)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
/dev/sdb1 on /cdrom type vfat (ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/loop0 on /rofs type squashfs (ro,noatime)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /sys/firmware/efi/efivars type efivarfs (rw)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
gvfsd-fuse on /run/user/999/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=lubuntu)
/dev/sda1 on /mnt/boot-sav/sda1 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda2 on /mnt/boot-sav/sda2 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda4 on /mnt/boot-sav/sda4 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda5 on /mnt/boot-sav/sda5 type vfat (rw)
/dev/sda6 on /mnt/boot-sav/sda6 type ext2 (rw)
/dev/sda8 on /mnt/boot-sav/sda8 type ext2 (rw)


=================== ls:
/sys/block/sda (filtered):  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro sda1 sda2 sda3 sda4 sda5 sda6 sda7 sda8 size slaves stat subsystem trace uevent
/sys/block/sdb (filtered):  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro sdb1 size slaves stat subsystem trace uevent
/sys/block/sdc (filtered):  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/sys/block/sr0 (filtered):  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/dev (filtered):  autofs block bsg btrfs-control bus cdrom char console core cpu cpu_dma_latency cuse disk dri ecryptfs fb0 fd full fuse hpet input kmsg log mapper mcelog mei mem net network_latency network_throughput null port ppp psaux ptmx pts random rfkill rtc rtc0 rts51x0 sda sda1 sda2 sda3 sda4 sda5 sda6 sda7 sda8 sdb sdb1 sdc sg0 sg1 sg2 sg3 shm snapshot snd sr0 stderr stdin stdout uhid uinput urandom v4l vga_arbiter vhci vhost-net video0 zero
ls /dev/mapper:  control

=================== hexdump -n512 -C /dev/sda1
00000000  eb 52 90 4e 54 46 53 20  20 20 20 00 02 08 00 00  |.R.NTFS    .....|
00000010  00 00 00 00 00 f8 00 00  3f 00 ff 00 00 08 00 00  |........?.......|
00000020  00 00 00 00 80 00 80 00  ff 3f 06 00 00 00 00 00  |.........?......|
00000030  aa 42 00 00 00 00 00 00  02 00 00 00 00 00 00 00  |.B..............|
00000040  f6 00 00 00 01 00 00 00  91 0b 6e 34 20 6e 34 8e  |..........n4 n4.|
00000050  00 00 00 00 fa 33 c0 8e  d0 bc 00 7c fb 68 c0 07  |.....3.....|.h..|
00000060  1f 1e 68 66 00 cb 88 16  0e 00 66 81 3e 03 00 4e  |..hf......f.>..N|
00000070  54 46 53 75 15 b4 41 bb  aa 55 cd 13 72 0c 81 fb  |TFSu..A..U..r...|
00000080  55 aa 75 06 f7 c1 01 00  75 03 e9 dd 00 1e 83 ec  |U.u.....u.......|
00000090  18 68 1a 00 b4 48 8a 16  0e 00 8b f4 16 1f cd 13  |.h...H..........|
000000a0  9f 83 c4 18 9e 58 1f 72  e1 3b 06 0b 00 75 db a3  |.....X.r.;...u..|
000000b0  0f 00 c1 2e 0f 00 04 1e  5a 33 db b9 00 20 2b c8  |........Z3... +.|
000000c0  66 ff 06 11 00 03 16 0f  00 8e c2 ff 06 16 00 e8  |f...............|
000000d0  4b 00 2b c8 77 ef b8 00  bb cd 1a 66 23 c0 75 2d  |K.+.w......f#.u-|
000000e0  66 81 fb 54 43 50 41 75  24 81 f9 02 01 72 1e 16  |f..TCPAu$....r..|
000000f0  68 07 bb 16 68 70 0e 16  68 09 00 66 53 66 53 66  |h...hp..h..fSfSf|
00000100  55 16 16 16 68 b8 01 66  61 0e 07 cd 1a 33 c0 bf  |U...h..fa....3..|
00000110  28 10 b9 d8 0f fc f3 aa  e9 5f 01 90 90 66 60 1e  |(........_...f`.|
00000120  06 66 a1 11 00 66 03 06  1c 00 1e 66 68 00 00 00  |.f...f.....fh...|
00000130  00 66 50 06 53 68 01 00  68 10 00 b4 42 8a 16 0e  |.fP.Sh..h...B...|
00000140  00 16 1f 8b f4 cd 13 66  59 5b 5a 66 59 66 59 1f  |.......fY[ZfYfY.|
00000150  0f 82 16 00 66 ff 06 11  00 03 16 0f 00 8e c2 ff  |....f...........|
00000160  0e 16 00 75 bc 07 1f 66  61 c3 a0 f8 01 e8 09 00  |...u...fa.......|
00000170  a0 fb 01 e8 03 00 f4 eb  fd b4 01 8b f0 ac 3c 00  |..............<.|
00000180  74 09 b4 0e bb 07 00 cd  10 eb f2 c3 0d 0a 41 20  |t.............A |
00000190  64 69 73 6b 20 72 65 61  64 20 65 72 72 6f 72 20  |disk read error |
000001a0  6f 63 63 75 72 72 65 64  00 0d 0a 42 4f 4f 54 4d  |occurred...BOOTM|
000001b0  47 52 20 69 73 20 6d 69  73 73 69 6e 67 00 0d 0a  |GR is missing...|
000001c0  42 4f 4f 54 4d 47 52 20  69 73 20 63 6f 6d 70 72  |BOOTMGR is compr|
000001d0  65 73 73 65 64 00 0d 0a  50 72 65 73 73 20 43 74  |essed...Press Ct|
000001e0  72 6c 2b 41 6c 74 2b 44  65 6c 20 74 6f 20 72 65  |rl+Alt+Del to re|
000001f0  73 74 61 72 74 0d 0a 00  8c a9 be d6 00 00 55 aa  |start.........U.|
00000200

=================== hexdump -n512 -C /dev/sda2
00000000  eb 52 90 4e 54 46 53 20  20 20 20 00 02 08 00 00  |.R.NTFS    .....|
00000010  00 00 00 00 00 f8 00 00  3f 00 ff 00 00 48 06 00  |........?....H..|
00000020  00 00 00 00 80 00 80 00  68 28 05 19 00 00 00 00  |........h(......|
00000030  00 00 0c 00 00 00 00 00  02 00 00 00 00 00 00 00  |................|
00000040  f6 00 00 00 01 00 00 00  9e 37 6d 9c 5a 6d 9c 54  |.........7m.Zm.T|
00000050  00 00 00 00 fa 33 c0 8e  d0 bc 00 7c fb 68 c0 07  |.....3.....|.h..|
00000060  1f 1e 68 66 00 cb 88 16  0e 00 66 81 3e 03 00 4e  |..hf......f.>..N|
00000070  54 46 53 75 15 b4 41 bb  aa 55 cd 13 72 0c 81 fb  |TFSu..A..U..r...|
00000080  55 aa 75 06 f7 c1 01 00  75 03 e9 dd 00 1e 83 ec  |U.u.....u.......|
00000090  18 68 1a 00 b4 48 8a 16  0e 00 8b f4 16 1f cd 13  |.h...H..........|
000000a0  9f 83 c4 18 9e 58 1f 72  e1 3b 06 0b 00 75 db a3  |.....X.r.;...u..|
000000b0  0f 00 c1 2e 0f 00 04 1e  5a 33 db b9 00 20 2b c8  |........Z3... +.|
000000c0  66 ff 06 11 00 03 16 0f  00 8e c2 ff 06 16 00 e8  |f...............|
000000d0  4b 00 2b c8 77 ef b8 00  bb cd 1a 66 23 c0 75 2d  |K.+.w......f#.u-|
000000e0  66 81 fb 54 43 50 41 75  24 81 f9 02 01 72 1e 16  |f..TCPAu$....r..|
000000f0  68 07 bb 16 68 70 0e 16  68 09 00 66 53 66 53 66  |h...hp..h..fSfSf|
00000100  55 16 16 16 68 b8 01 66  61 0e 07 cd 1a 33 c0 bf  |U...h..fa....3..|
00000110  28 10 b9 d8 0f fc f3 aa  e9 5f 01 90 90 66 60 1e  |(........_...f`.|
00000120  06 66 a1 11 00 66 03 06  1c 00 1e 66 68 00 00 00  |.f...f.....fh...|
00000130  00 66 50 06 53 68 01 00  68 10 00 b4 42 8a 16 0e  |.fP.Sh..h...B...|
00000140  00 16 1f 8b f4 cd 13 66  59 5b 5a 66 59 66 59 1f  |.......fY[ZfYfY.|
00000150  0f 82 16 00 66 ff 06 11  00 03 16 0f 00 8e c2 ff  |....f...........|
00000160  0e 16 00 75 bc 07 1f 66  61 c3 a0 f8 01 e8 09 00  |...u...fa.......|
00000170  a0 fb 01 e8 03 00 f4 eb  fd b4 01 8b f0 ac 3c 00  |..............<.|
00000180  74 09 b4 0e bb 07 00 cd  10 eb f2 c3 0d 0a 41 20  |t.............A |
00000190  64 69 73 6b 20 72 65 61  64 20 65 72 72 6f 72 20  |disk read error |
000001a0  6f 63 63 75 72 72 65 64  00 0d 0a 42 4f 4f 54 4d  |occurred...BOOTM|
000001b0  47 52 20 69 73 20 6d 69  73 73 69 6e 67 00 0d 0a  |GR is missing...|
000001c0  42 4f 4f 54 4d 47 52 20  69 73 20 63 6f 6d 70 72  |BOOTMGR is compr|
000001d0  65 73 73 65 64 00 0d 0a  50 72 65 73 73 20 43 74  |essed...Press Ct|
000001e0  72 6c 2b 41 6c 74 2b 44  65 6c 20 74 6f 20 72 65  |rl+Alt+Del to re|
000001f0  73 74 61 72 74 0d 0a 00  8c a9 be d6 00 00 55 aa  |start.........U.|
00000200
ls /mnt/boot-sav/sda4/1:
ls /mnt/boot-sav/sda4: boot
bootmgr
EFI
Factory_Process
LRSBootTmp.log
NB
OKRBackup
OneKey
pagefile.sys
$RECYCLE.BIN
System Volume Information
v3712.txt  . Please report this message to boot.repair@gmail.com

=================== hexdump -n512 -C /dev/sda4
00000000  eb 52 90 4e 54 46 53 20  20 20 20 00 02 08 00 00  |.R.NTFS    .....|
00000010  00 00 00 00 00 f8 00 00  3f 00 ff 00 00 e0 d1 22  |........?......"|
00000020  00 00 00 00 80 00 80 00  ff bf 6a 02 00 00 00 00  |..........j.....|
00000030  00 00 0c 00 00 00 00 00  02 00 00 00 00 00 00 00  |................|
00000040  f6 00 00 00 01 00 00 00  b4 1f ef 2c 58 ef 2c 68  |...........,X.,h|
00000050  00 00 00 00 fa 33 c0 8e  d0 bc 00 7c fb 68 c0 07  |.....3.....|.h..|
00000060  1f 1e 68 66 00 cb 88 16  0e 00 66 81 3e 03 00 4e  |..hf......f.>..N|
00000070  54 46 53 75 15 b4 41 bb  aa 55 cd 13 72 0c 81 fb  |TFSu..A..U..r...|
00000080  55 aa 75 06 f7 c1 01 00  75 03 e9 dd 00 1e 83 ec  |U.u.....u.......|
00000090  18 68 1a 00 b4 48 8a 16  0e 00 8b f4 16 1f cd 13  |.h...H..........|
000000a0  9f 83 c4 18 9e 58 1f 72  e1 3b 06 0b 00 75 db a3  |.....X.r.;...u..|
000000b0  0f 00 c1 2e 0f 00 04 1e  5a 33 db b9 00 20 2b c8  |........Z3... +.|
000000c0  66 ff 06 11 00 03 16 0f  00 8e c2 ff 06 16 00 e8  |f...............|
000000d0  4b 00 2b c8 77 ef b8 00  bb cd 1a 66 23 c0 75 2d  |K.+.w......f#.u-|
000000e0  66 81 fb 54 43 50 41 75  24 81 f9 02 01 72 1e 16  |f..TCPAu$....r..|
000000f0  68 07 bb 16 68 70 0e 16  68 09 00 66 53 66 53 66  |h...hp..h..fSfSf|
00000100  55 16 16 16 68 b8 01 66  61 0e 07 cd 1a 33 c0 bf  |U...h..fa....3..|
00000110  28 10 b9 d8 0f fc f3 aa  e9 5f 01 90 90 66 60 1e  |(........_...f`.|
00000120  06 66 a1 11 00 66 03 06  1c 00 1e 66 68 00 00 00  |.f...f.....fh...|
00000130  00 66 50 06 53 68 01 00  68 10 00 b4 42 8a 16 0e  |.fP.Sh..h...B...|
00000140  00 16 1f 8b f4 cd 13 66  59 5b 5a 66 59 66 59 1f  |.......fY[ZfYfY.|
00000150  0f 82 16 00 66 ff 06 11  00 03 16 0f 00 8e c2 ff  |....f...........|
00000160  0e 16 00 75 bc 07 1f 66  61 c3 a0 f8 01 e8 09 00  |...u...fa.......|
00000170  a0 fb 01 e8 03 00 f4 eb  fd b4 01 8b f0 ac 3c 00  |..............<.|
00000180  74 09 b4 0e bb 07 00 cd  10 eb f2 c3 0d 0a 41 20  |t.............A |
00000190  64 69 73 6b 20 72 65 61  64 20 65 72 72 6f 72 20  |disk read error |
000001a0  6f 63 63 75 72 72 65 64  00 0d 0a 42 4f 4f 54 4d  |occurred...BOOTM|
000001b0  47 52 20 69 73 20 6d 69  73 73 69 6e 67 00 0d 0a  |GR is missing...|
000001c0  42 4f 4f 54 4d 47 52 20  69 73 20 63 6f 6d 70 72  |BOOTMGR is compr|
000001d0  65 73 73 65 64 00 0d 0a  50 72 65 73 73 20 43 74  |essed...Press Ct|
000001e0  72 6c 2b 41 6c 74 2b 44  65 6c 20 74 6f 20 72 65  |rl+Alt+Del to re|
000001f0  73 74 61 72 74 0d 0a 00  8c a9 be d6 00 00 55 aa  |start.........U.|
00000200
ls /mnt/boot-sav/sda5/1:

=================== hexdump -n512 -C /dev/sda5
00000000  eb 58 90 6d 6b 66 73 2e  66 61 74 00 02 08 20 00  |.X.mkfs.fat... .|
00000010  02 00 00 00 00 f8 00 00  3f 00 ff 00 00 80 0b 19  |........?.......|
00000020  11 41 09 00 50 02 00 00  00 00 00 00 02 00 00 00  |.A..P...........|
00000030  01 00 06 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000040  80 01 29 96 8d 8d 34 4e  4f 20 4e 41 4d 45 20 20  |..)...4NO NAME  |
00000050  20 20 46 41 54 33 32 20  20 20 0e 1f be 77 7c ac  |  FAT32   ...w|.|
00000060  22 c0 74 0b 56 b4 0e bb  07 00 cd 10 5e eb f0 32  |".t.V.......^..2|
00000070  e4 cd 16 cd 19 eb fe 54  68 69 73 20 69 73 20 6e  |.......This is n|
00000080  6f 74 20 61 20 62 6f 6f  74 61 62 6c 65 20 64 69  |ot a bootable di|
00000090  73 6b 2e 20 20 50 6c 65  61 73 65 20 69 6e 73 65  |sk.  Please inse|
000000a0  72 74 20 61 20 62 6f 6f  74 61 62 6c 65 20 66 6c  |rt a bootable fl|
000000b0  6f 70 70 79 20 61 6e 64  0d 0a 70 72 65 73 73 20  |oppy and..press |
000000c0  61 6e 79 20 6b 65 79 20  74 6f 20 74 72 79 20 61  |any key to try a|
000000d0  67 61 69 6e 20 2e 2e 2e  20 0d 0a 00 00 00 00 00  |gain ... .......|
000000e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200

=================== df -Th:

Filesystem     Type       Size  Used Avail Use% Mounted on
/cow           overlayfs  918M  6.3M  911M   1% /
udev           devtmpfs   903M   12K  903M   1% /dev
tmpfs          tmpfs      184M  1.2M  183M   1% /run
/dev/sdb1      vfat       1.9G  614M  1.3G  33% /cdrom
/dev/loop0     squashfs   549M  549M     0 100% /rofs
none           tmpfs      4.0K     0  4.0K   0% /sys/fs/cgroup
tmpfs          tmpfs      918M  8.0K  918M   1% /tmp
none           tmpfs      5.0M  4.0K  5.0M   1% /run/lock
none           tmpfs      918M     0  918M   0% /run/shm
none           tmpfs      100M   16K  100M   1% /run/user
/dev/sda1      fuseblk    200M   32M  169M  16% /mnt/boot-sav/sda1
/dev/sda2      fuseblk    201G  137G   64G  69% /mnt/boot-sav/sda2
/dev/sda4      fuseblk     20G   13G  7.3G  63% /mnt/boot-sav/sda4
/dev/sda5      vfat       296M  132K  296M   1% /mnt/boot-sav/sda5
/dev/sda6      ext2        25G  3.5G   20G  15% /mnt/boot-sav/sda6
/dev/sda8      ext2        49G   52M   49G   1% /mnt/boot-sav/sda8

=================== fdisk -l:

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x7af31474

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      411647      204800    7  HPFS/NTFS/exFAT
/dev/sda2          411648   420180074   209884213+   7  HPFS/NTFS/exFAT
/dev/sda3       420184044   584171594    81993775+   5  Extended
Partition 3 does not start on physical sector boundary.
/dev/sda4       584179712   625142447    20481368   12  Compaq diagnostics
/dev/sda5       420184064   420967259      391598   ef  EFI (FAT-12/16/32)
/dev/sda6       420970496   472776884    25903194+  83  Linux
/dev/sda7       472780800   481162814     4191007+  82  Linux swap / Solaris
/dev/sda8       481165312   584171594    51503141+  83  Linux

Disk /dev/sdb: 2001 MB, 2001731584 bytes
255 heads, 63 sectors/track, 243 cylinders, total 3909632 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x06993e78

Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        2048     3909631     1953792    c  W95 FAT32 (LBA)


Error: no package mgt for purge. Please report this message to boot.repair@gmail.com
Error: no package mgt for purge. Please report this message to boot.repair@gmail.com
Error: no package mgt for purge. Please report this message to boot.repair@gmail.com
Error: no package mgt for purge. Please report this message to boot.repair@gmail.com
Error: no package mgt for purge. Please report this message to boot.repair@gmail.com
Error: no package mgt for purge. Please report this message to boot.repair@gmail.com
Error: no package mgt for purge. Please report this message to boot.repair@gmail.com
Error: no package mgt for purge. Please report this message to boot.repair@gmail.com
Error: no package mgt for purge. Please report this message to boot.repair@gmail.com
Error: no package mgt for purge. Please report this message to boot.repair@gmail.com
Error: no package mgt for purge. Please report this message to boot.repair@gmail.com
Warning: unknown mime-type for "/mnt/boot-sav/sda6/etc/default/grub" -- using "application/octet-stream"
Error: no "view" mailcap rules found for type "application/octet-stream"

(process:10611): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed


=================== Default settings of Boot Repair
The default repair of the Boot-Repair utility would reinstall the grub2 of sda6 into the MBR of sda.
Grub-efi would not be selected by default because: no-win-efi
Additional repair would be performed: unhide-bootmenu-10s


=================== User settings
The settings chosen by the user will reinstall the grub-efi-amd64-signed of sda6, using the following options:        sda5/boot/efi,
Grub-efi will not be selected by default because: no-win-efi
Additional repair will be performed: unhide-bootmenu-10s


/boot/efi added in sda6/fstab
Created sda6/boot/efi
Mount sda5 on /mnt/boot-sav/sda6/boot/efi
ls /mnt/boot-sav/sda6/boot/efi/1:
No sda6/boot/efi/efi/ ubuntu/mint folder
lspci: Unable to load libkmod resources: error -12

*******lspci -nnk | grep -iA3 vga
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)
Subsystem: Lenovo Device [17aa:3901]
Kernel driver in use: i915
00:14.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller [8086:1e31] (rev 04)
*******

grub2-install --version
grub2-install (GRUB) 2.02~beta2,grub2-install (GRUB) 2.

chroot /mnt/boot-sav/sda6 efibootmgr -v
BootCurrent: 0004
BootOrder: 0004,0001,0002,0003,0000
Boot0000* Network Boot: Atheros Boot Agent    BIOS(80,0,18)........................R..............................................
Boot0001* Internal HDD: ST320LT020-9YG142                   BIOS(2,500,18)................-...........A..........................................
Boot0002* SATA ODD    : PLDS DVD-RW DS8A8SH                 BIOS(3,500,18)................-...........A......#...................................
Boot0003* USB HDD     : KingstonDataTraveler G2     BIOS(2,500,18)..................S.......Q...U........................................
Boot0004* EFI USB Device    ACPI(a0341d0,0)PCI(1d,0)USB(0,0)USB(2,0)HD(1,800,3ba000,06993e78)RC

chroot /mnt/boot-sav/sda6 uname -r
Kernel: 3.13.0-32-generic

Reinstall the grub-efi-amd64-signed of sda6
grub2-install: unrecognized option '--uefi-secure-boot'
Try 'grub2-install --help' or 'grub2-install --usage' for more information.
grub2-install --efi-directory=/boot/efi --target=x86_64-efi --uefi-secure-boot : exit code of grub2-install :64
ls /mnt/boot-sav/sda6/boot/efi/1:
Add /mnt/boot-sav/sda4 efi entries in /mnt/boot-sav/sda6/etc/grub.d/25_custom
Add /mnt/boot-sav/sda6/boot/efi efi entries in /mnt/boot-sav/sda6/etc/grub.d/25_custom

efibootmgr -v
BootCurrent: 0004
BootOrder: 0004,0001,0002,0003,0000
Boot0000* Network Boot: Atheros Boot Agent    BIOS(80,0,18)........................R..............................................
Boot0001* Internal HDD: ST320LT020-9YG142                   BIOS(2,500,18)................-...........A..........................................
Boot0002* SATA ODD    : PLDS DVD-RW DS8A8SH                 BIOS(3,500,18)................-...........A......#...................................
Boot0003* USB HDD     : KingstonDataTraveler G2     BIOS(2,500,18)..................S.......Q...U........................................
Boot0004* EFI USB Device    ACPI(a0341d0,0)PCI(1d,0)USB(0,0)USB(2,0)HD(1,800,3ba000,06993e78)RC

---- Grub-install verbose
/sbin/grub2-install: /sbin/grub2-install: cannot execute binary file
--------
/sbin/grub2-install --efi-directory=/boot/efi --target=x86_64-efi --uefi-secure-boot : exit code of grub2-install :126
---- End of grub-install verbose


chroot /mnt/boot-sav/sda6 efibootmgr -v
BootCurrent: 0004
BootOrder: 0004,0001,0002,0003,0000
Boot0000* Network Boot: Atheros Boot Agent    BIOS(80,0,18)........................R..............................................
Boot0001* Internal HDD: ST320LT020-9YG142                   BIOS(2,500,18)................-...........A..........................................
Boot0002* SATA ODD    : PLDS DVD-RW DS8A8SH                 BIOS(3,500,18)................-...........A......#...................................
Boot0003* USB HDD     : KingstonDataTraveler G2     BIOS(2,500,18)..................S.......Q...U........................................
Boot0004* EFI USB Device    ACPI(a0341d0,0)PCI(1d,0)USB(0,0)USB(2,0)HD(1,800,3ba000,06993e78)RC

chroot /mnt/boot-sav/sda6 update-grub
mesg: ttyname failed: Неприменимый к данному устройству ioctl
Generating grub configuration file ...
Найдена тема: /boot/grub2/themes/maggy/theme.txt
Найден образ linux: /boot/vmlinuz-desktop
Найден образ initrd: /boot/initrd-desktop.img
Найден образ linux: /boot/vmlinuz-3.19.8-desktop-3.mga5
Найден образ initrd: /boot/initrd-3.19.8-desktop-3.mga5.img
завершено
umount: /mnt/boot-sav/sda6/dev: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))

An error occurred during the repair.

You can now reboot your computer.
Please do not forget to make your BIOS boot on sda5/EFI/mageia/grubx64.efi file!

Если кто-нибудь понимает, где здесь ошибка, и в чём проблема с grub’ом, пожалуйста отзовитесь и посоветуйте, что мне делать.
Буду очень благодарен.

Добрый день.

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

Это моя вторая самостоятельная попытка установить Linux. Прежде (успешно) пробовал Slackware 12 и, наигравшись и освоившись, решил поставить что-нибудь посерьезнее в целях применения на практике и попутного изучения.

Итак… Я устанавливаю <b>Gentoo 2007.0</b> (amd64) на доманшний компьютер с материнской платой ASUS K8N-E Deluxe (nForce 3 250) и процем AMD Athlon 64 3000+ S754. При установке строго следовал анлоязычному хендбуку, изредка отвлекаясь на http://ru.gentoo-wiki.com. Сам Gentoo проблем не доставил, все удачно собралось и установилось, дошел до этапа установки <b>GRUB</b> и перезагрузки.

После перезагрузки получил:

Grub Loading stage1.5.

Grub loading, please wait…
error 17

При этом не появляется меню выбора ОС.

Сложность ситуации заключается в большом количестве хардов. В качестве Primary IDE (который указан в BIOS как загрузочный и куда я ставлю MBR-часть GRUB’а) используется PATA-хард <b>/dev/hda</b> (имеет два NTFS-раздела). Кроме того, имеется семь SATA-хардов, от /dev/sda до /dev/sdg. Все они имеют по одному NTFS-разделу, кроме <b>/dev/sdf</b>, который разбит и назначен следующим образом:
/dev/sdf1 — /boot (ext2);
/dev/sdf2 — swap;
/dev/sdf3 — /root (ext3);
/dev/sdf4 — / (ext3).

При помощи <i>grub</i> и <i>grub-install</i> я определил, что /boot-раздел соответствует GRUB’овскому указателю <i>(hd6,0)</i> (hda — hd0, sda — hd1, sdb — hd2, sdc — hd3, sdd — hd4, sde — hd5, sdf — hd6, sdg — hd7; первому разделу hdX1 всегда соответствует грабовский hdX,0).

Вот содержимое файла <b>/boot/grub/grub.conf</b>, находящегося в <b>/dev/sdf1</b>:

default 0
timeout 16
splashimage=(hd6,0)/boot/grub/splash.xpm.gz

title=Gentoo Linux 2.6.23-gentoo-r6
root (hd6,0)
kernel /boot/kernel-2.6.23-gentoo-r6 root=/dev/sdf4

title=Gentoo Linux 2.6.23-gentoo-r6 (rescue)
root (hd6,0)
kernel /boot/kernel-2.6.23-gentoo-r6 root=/dev/sdf4 init=/bin/bb

title=Windows 2003
rootnoverify (hd0,0)
makeactive
chainloader +1

#

(Перепечатывал с экрана, могут быть неточности). Указанные пути сто раз перепроверены. Файл /boot/boot является симлинком на «.», как это и сказано в хендбуке.

Я пробовал устанавливать GRUB в MBR как припомощи <i>grub install</i>, так и вручную из <i>grub</i>. В обоих случаях он рапортует об успешной установке без ошибок.

<i>grub</i> позволяет сделать команду <i>grub> root</i> только для раздела <i>(hd6,0)</i>, на другие разделы он ругается по поводу неподдерживаемой ФС. Про <i>(hd6,0)</i> он говорит, файловая система ext2fs, тип раздела 0x83 (то есть Linux).

С виду все как надо. Но при загрузке компа получаю Error 17. Эта ошибка указывает на неподдерживаемую ФС.

В одной из бесчисленных постов, озаглавленных «grub error 17», нашел идею, что при загрузке компьютера харды определяются не в том порядке, в каком они определяются из-под загруженной ОС. Но флопа в компе нет, поэтому <i>grub> find /boot/grub/grub.conf</i> я могу сделать под Gentoo загруженным с DVD, а <i>grub> root</i> он позволяет сделать только для <i>(hd6,0)</i>.

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

Как я понимаю, проблема не является дистроспецифичной и если я ее не решу, то никакой линукс мне на компе не светит. :(

This document (7010670) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 11 Service Pack 1
SUSE Linux Enterprise Server 11 Service Pack 2

Situation

After an online update grub fails with:

Error 17: Cannot mount selected partition

Resolution

Solution:

For systems running SLES11SP1 or immediate action to get the system back online please see the workaround below. On systems running SLES11SP2 update perl-Bootloader to version 0.4.89.44-0.4.2.1 or later.

Workaround:

Press enter to get back into the grub menu, press «e» on the default boot entry (usually the first in the list), select the line root (hd0) and press «e» again. Change root (hd0) to the desired value (e.g. if the root device is /dev/sda1, the location would be hd0,0) and press enter. Check the changes on the screen for correctness and press «b» to boot.

Once the system is online, please adjust /boot/grub/menu.lst and change all root (hd0) entries to their correct values.

Cause

After the update /boot/grub/menu.lst contains

root (hd0)

for the default boot entry but should contain

root (hdx,y)

instead.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented «AS IS» WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7010670
  • Creation Date:
    23-Aug-2012
  • Modified Date:28-Sep-2022
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

Понравилась статья? Поделить с друзьями:
  • Grub linux windows по умолчанию windows
  • Grub customizer не видит windows 10
  • Grub add windows 10 to boot menu
  • Grt диск для установки windows 10
  • Grow home не запускается windows 10