Linux error 13 invalid or unsupported executable format

1. Собрал новое ядро с незначительными изменениями конфига. Скопировал его в /boot, прописал в /boot/grub/menu.lst. Перезагружаюсь — получаю: Error 13: Invalid or unsupported executable format Это происходит с ядром 4.9.16. Старое ядро 4.4.6 грузится...


0

2

1. Собрал новое ядро с незначительными изменениями конфига. Скопировал его в /boot, прописал в /boot/grub/menu.lst. Перезагружаюсь — получаю:

Error 13: Invalid or unsupported executable format

Это происходит с ядром 4.9.16. Старое ядро 4.4.6 грузится нормально.

file ядра опознаёт как:

/boot/kernel-4.4.6:                               Linux kernel x86 boot executable bzImage, version 4.4.6-gentoo (root@jet) #1 SMP PREEMPT Mon Jul 4 22:52:11 MSK 2016, RO-rootFS, swap_dev 0x4, Normal VGA
/boot/kernel-4.9.16:                              Linux kernel x86 boot executable bzImage, version 4.9.16-gentoo (root@jet) #2 SMP PREEMPT Tue Jun 6 23:40:29 MSK 2017, RO-rootFS, swap_dev 0x5, Normal VGA

Версия GRUB 0.97 (sys-boot/grub-static-0.97-r12). Gentoo. Своп не используется.

Дополнение: С GRUB 2 загрузиться удалось. С использованием BIOS.

2. Предположив, что дело в каких-то фичах нового ядра, попробовал поставить более новый GRUB, sys-boot/grub-2.02_beta3-r1. Сгенерировал /boot/grub/grub.cfg. Создал FAT-раздел, прописал в /etc/fstab, смонтировал как /boot/efi, запустил

# LC_ALL="C" grub2-install --target=x86_64-efi /dev/sda
Installing for x86_64-efi platform.
EFI variables are not supported on this system.
EFI variables are not supported on this system.
Installation finished. No error reported.

Перезагружаюсь — получаю меню старого GRUB.

Дополнение: как выяснилось, материнская плата ASUS M5A78L LE не поддерживает UEFI.

На всякий случай — разметка диска:

# LC_ALL="C" parted /dev/sda print
Model: ATA WDC WD40EFRX-68W (scsi)
Disk /dev/sda: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system     Name  Flags
 1      1049kB  3947GB  3947GB  ext4            root  boot, esp
 2      3947GB  4001GB  53.7GB  linux-swap(v1)  swap
 3      4001GB  4001GB  2956kB                        boot, esp

Главный вопрос: как загрузиться с новым ядром?

Остался вопрос: почему Grub1 не работает с новым ядром.

Contents

  • 1 GRUB Error 13: Invalid or unsupported executable format:
  • 2 Example Source
  • 3 See Also
    • 3.1 Articles
    • 3.2 Forum Threads
    • 3.3 External Links

GRUB Error 13: Invalid or unsupported executable format:

GRUB is a reference implementation of the GNU Multiboot specification, commonly used by most 32 bits OS developers. It has the advantages of being a(n) (obviously) pre-written bootloader with more code to handle quirks of various BIOSs than it is worthwhile for any individual to do by himself or herself.

See the following thread for a bit more info: http://forum.osdev.org/viewtopic.php?f=1&t=21158&start=0.

However, many people have problems getting the GRUB to recognize their kernel’s executable image.

The following is a solution for GRUB’s infamous Error 13 pertaining to ELF files.

Example Source

The GNU Multiboot Specification requires the Multiboot Header to be aligned on a 4 byte boundary within the first 8 KB of the kernel executable file. should your kernel’s image not fit this description, GrUB will promptly issue an Error 13.

The Linker Script gives the linker details on how to position the executable sections of your kernel within the kernel executable file. You are not restricted (using ELF; there are Executable formats which restrict you to certain format-specific sections) to just the ELF recommended sections. You may define as many sections as you please within your kernel executable image, and position them as you see fit, using your linker script. We assume the use of the GNU ld linker for this article.

Within the asm source file where you have defined your Multiboot Header options, edit the Multiboot Header to look like this: (This article is not going into detail about the GNU Multiboot spec. I’m just telling you minor changes to make around the header)

;; Remove the section .text you copy/pasted from the Bare Bones tutorial ;)
section .__mbHeader
 
align 0x4
;; Copy/Paste your current Multiboot Header here
 
;; Reposition the section .text here.

What does this do? We have placed the Multiboot header into a separate ELF section in the relocatable file generated by NASM. When the linker is going through the Object files, it places the section symbols in each object file in their corresponding output sections in the eventual kernel image.

How do we tell the linker to place the .__mbHeader ELF section in the 1st 8 KB of the kernel image? Technically, there is no way to guarantee that it will be there if the kernel file grows exorbitantly large. At that point, you may have to invent a special technique of editing your output object file manually, and placing the Multiboot header in the first 8 K. However you do that is …however you manage to do it. The simple solution is to ensure that your kernel image doesn’t grow too large. Again, technically, even a monolithic kernel’s image shouldn’t grow that large, even if you try.

The linker is told to use the .__mbHeader section as the first section in the output file like this:

yourLinkerScript.ld

/*This is the SECTIONS command in your ld script. Locate it.*/
SECTIONS {
   /* There is a command with the following general form in your linker script:
    * . = 0xXXXXXXXX;
    * You are to leave this in place, and put the section for .__mbHeader beneath that line.
    **/
   .__mbHeader : {
      *(.__mbHeader)
   }
 
   /* The other sections are here. After you edit the script. If you copy/pasted the Bare Bones ld script, then your .text sections follows here.*/
   /*...*/
}

In other words, we simply insert the lines for the .__mbHeader section at the top of the SECTIONS command, telling ld to place the .__mbHeader section first.

One or two notes, since the copy/paste horde wouldn’t actually notice these points: We assume that your kernel is not virtually linked to a higher address. If it is, then you should edit the first line of the .__mbHeader linker command to look like this:

.__mbHeader : AT( ADDR(.__mbHeader) - YOUR_KERNEL'S_VIRTUAL_OFFSET_HERE ) {

Should you do this right, (and it shouldn’t be that difficult), your kernel shouldn’t emit that Error 13 message anymore, and provided you linked you kernel in the right format, and whatnot, GRUB should be able to load your kernel nicely.

See Also

Articles

  • GRUB

Forum Threads

  • http://forum.osdev.org/viewtopic.php?f=1&t=21158&start=0

External Links

  • GNU Multiboot Specification.
  • Index
  • » Newbie Corner
  • » Error 13, invalid or unsupported executable format[SOLVED]

Pages: 1

#1 2012-07-09 03:33:58

jmak
Member
Registered: 2008-12-21
Posts: 453

Error 13, invalid or unsupported executable format[SOLVED]

Hello,

I’ve just finished fixing the partition issue in the morning with much help from this forum community and now I have another one.

I’ve installed arch-enlightenment desktop on a separate partition and grub can’t start the distro. I get
 “Error 13, invalid or unsupported executable format” message.
This is all the more surprising because chainloader +1 never failed me before.
I have also Ubuntu installed and arch execute perfectly chainloader +1 with ubuntu – no problem, only arch can’t start arch. Interesting.

Here is the menulist to make clearer what I mean.

# (0) Arch Linux
title  Arch Linux
root   (hd0,0)
kernel /boot/vmlinuz-linux root=/dev/sda1 ro
initrd /boot/initramfs-linux.img

# (1) Arch Linux
title  Arch Linux Fallback
root   (hd0,0)
kernel /boot/vmlinuz-linux root=/dev/sda1 ro
initrd /boot/initramfs-linux-fallback.img

title Ubuntu
root (hd0,1)
chainloader +1

title Arch Enlightenment
root (hd0,2)
chainloader +1

Lots of people having this problem but my search found no usable solution to this problem. Now I have arch-enlightenment installed by I can’t start it.

Last edited by jmak (2012-07-09 23:50:08)

#2 2012-07-09 06:56:24

Zancarius
Member
From: NM, USA
Registered: 2012-05-06
Posts: 207

Re: Error 13, invalid or unsupported executable format[SOLVED]

Hmm, how did you build/install your kernel? The only times I can recall seeing this is if there was something wrong with the kernel or I had done something by mistake.

What you might want to do to eliminate most possibilities is to chroot from an Arch live CD and run mkinitcpio:

Be sure your /etc/mkinitcpio.conf has the appropriate hooks for your system, otherwise you might have a working kernel but it won’t boot (especially if you’re using LVM and forget the LVM hook).

This may not be of much help, but it’ll be a start to figure out what went wrong.


He who has no .plan has small finger.
~Confucius on UNIX.

#3 2012-07-09 12:22:33

jmak
Member
Registered: 2008-12-21
Posts: 453

Re: Error 13, invalid or unsupported executable format[SOLVED]

This was a regular install following the installation guide.

#4 2012-07-09 13:02:08

windscape
Member
Registered: 2010-04-30
Posts: 69

Re: Error 13, invalid or unsupported executable format[SOLVED]

Hi,

As a workaround, why not boot the Arch Enlightenment kernel directly, just like you do with Arch itself? Why is a chainloader necessary?

#5 2012-07-09 13:11:36

chamber
Member
From: ~/
Registered: 2012-03-29
Posts: 279

Re: Error 13, invalid or unsupported executable format[SOLVED]

from grub’s web site:

13 : Invalid or unsupported executable format
    This error is returned if the kernel image being loaded is not recognized as Multiboot or one of the supported native formats (Linux zImage or bzImage, FreeBSD, or NetBSD).

So you have an Arch install on hd0,0 and you created a new partition in order to install Arch with Enlightenment?

#6 2012-07-09 14:56:08

jmak
Member
Registered: 2008-12-21
Posts: 453

Re: Error 13, invalid or unsupported executable format[SOLVED]

chamber wrote:

from grub’s web site:

13 : Invalid or unsupported executable format
    This error is returned if the kernel image being loaded is not recognized as Multiboot or one of the supported native formats (Linux zImage or bzImage, FreeBSD, or NetBSD).

So you have an Arch install on hd0,0 and you created a new partition in order to install Arch with Enlightenment?

That is the case. My main distro is Arch_gnome, and I created an Arch_enlightenment on a separate partition, because enlightenment is my second favorite desktop. Arch_gnome grub installed in MBR end supposed to handle all the other installs. Chainloader +1 never failed me before. And it still boots ubuntu without problem.

#7 2012-07-09 15:06:04

jmak
Member
Registered: 2008-12-21
Posts: 453

Re: Error 13, invalid or unsupported executable format[SOLVED]

windscape wrote:

Hi,

As a workaround, why not boot the Arch Enlightenment kernel directly, just like you do with Arch itself? Why is a chainloader necessary?

These are two separate installs, on to separate partitions, not like one install with two desktop environments.

#8 2012-07-09 20:55:48

Lennie
Member
From: Sweden
Registered: 2011-10-12
Posts: 146

Re: Error 13, invalid or unsupported executable format[SOLVED]

First of all, you can boot Arch Enlightenment directly with Arch’s grub, instead of chainloading. (You can boot Ubuntu directly too.)

Google told me Error 13 comes after you choose from grub menu, which means something’s wrong with the kernel line in Arch Enlightenments menu.lst.

#9 2012-07-09 23:49:44

jmak
Member
Registered: 2008-12-21
Posts: 453

Re: Error 13, invalid or unsupported executable format[SOLVED]

Done.
Direct booting worked.

#10 2012-07-10 03:32:38

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,010

Re: Error 13, invalid or unsupported executable format[SOLVED]

jmak wrote:

…My main distro is Arch_gnome, and I created an Arch_enlightenment on a separate partition, because enlightenment is my second favorite desktop….

Just curious, why did you do it that way?  There is no reason one cannot install several ‘desktops’ and choose the one you want at run time.  You can even log in multiple times and use different environments with each log in.


Nothing is too wonderful to be true, if it be consistent with the laws of nature — Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. — Alan Turing

How to Ask Questions the Smart Way

Error 13 на новом ядре и непонятки с UEFI

1. Собрал новое ядро с незначительными изменениями конфига. Скопировал его в /boot, прописал в /boot/grub/menu.lst. Перезагружаюсь — получаю:

Error 13: Invalid or unsupported executable format

Это происходит с ядром 4.9.16. Старое ядро 4.4.6 грузится нормально.

file ядра опознаёт как:

Версия GRUB 0.97 (sys-boot/grub-static-0.97-r12). Gentoo. Своп не используется.

Дополнение: С GRUB 2 загрузиться удалось. С использованием BIOS.

2. Предположив, что дело в каких-то фичах нового ядра, попробовал поставить более новый GRUB, sys-boot/grub-2.02_beta3-r1. Сгенерировал /boot/grub/grub.cfg. Создал FAT-раздел, прописал в /etc/fstab, смонтировал как /boot/efi, запустил

Дополнение: как выяснилось, материнская плата ASUS M5A78L LE не поддерживает UEFI.

На всякий случай — разметка диска:

Флаг bootable присвоен новому uefi разделу?

Да. Но и на старом остался. Снять?

Сними, у тебя первый видит, значит второй не нужен, ибо ESP один (во всяком случае, так на всех побываших у меня в руках, железках).

Да, конечно. Оно тыкается в старый из-за этого, собственно. r3lgar дело говорит.)

ноут умеет легаси загрузку?

есть пункт в биосе?

Вроде, был. Возможно даже он включён. При беглом просмотре не заметил.

Как понять, поддерживается ли UEFI? В описании материнской платы сказано, что да.

проще выключить uefi режим и юзать легаси

Чаще всего оно называется CSM.

Как понять, поддерживается ли UEFI? В описании материнской платы сказано, что да.

Может быть такое, что там завязка на Шindoшs (но так как у тебя раньше всё работало, то этот вариант отпадает). Гарантированных способов понять нет, так как почти никто не придерживается стандартов в полной мере.

проще выключить uefi режим и юзать легаси

Не знал, спасибо.

но так как у тебя раньше всё работало, то этот вариант отпадает

Раньше я пользовался GRUB-legacy, который эту функциональность не использовал.

Раньше я пользовался GRUB-legacy, который эту функциональность не использовал.

Понятно. Есть почти универсальный способ: если у тебя есть под рукой образ диска Шindoшs 10, разпакуй iso на отформатированную в FAT32 (естественно MBR, не выбирай GPT для флэшек никогда), и попробуй с неё загрузиться при выключенном CSM. В большинстве случаев оно грузится на UEFI. Также можно попробовать и с любым дистром линуксов, но тут даже со 100% рабочим UEFI гарантий нет, что оно запустится (и куда меньше шансов, что можно будет установиться).

Назови свою плату, может проходила у меня такая.

ASUS M5A78L. На офсайте поддержка в списке фич есть, но в мануале — ни слова. И efibootmgr ничего не находит.

А, это была немного другая модель. ASUS M5A78L/USB3.

Эту плату я не щупал, на сайте действительно описано, что поддержка есть, но никто не напишет о вендролоке.

Для того, чтобы efibootmgr работал, нужно загрузиться в EFI-режиме. Всякие убунты и прочие умеют, если записать диск/флэшку нормально. Иногда можно просто распаковать iso-образ на размеченную в MBR+FAT32 флэшку, но работает это далеко не всегда и не везде.

Если я непонятно выразился, у меня оказалась плата без EFI, а я по ошибке смотрел описание платы с EFI.

GRUB 2 с BIOS-разделом всё загрузил. Теперь понять бы, что за проблемы с GRUB 1.

Источник

Error 13 invalid or unsupported executable format grub4dos

GreenFlash

[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]

  • Страница 1 из 9
  • 1
  • 2
  • 3
  • 8
  • 9
  • »
Модератор форума: Sh1td0wn, asdqqww

Форум » Мультизагрузочная флешка » Общий » Usb Flash — вопросы новичка (. не пинайте :))

DmitryOlenin Дата: Вторник, 24.11.2009, 02:22 | Сообщение # 1

Сломал уже голову
Есть образ, который отлично работает как загрузочный DVD.
Там и LiveCD и тихая установка XP, и HirenBootCD и многое другое.

Сначала я столкнулся с тем, что BCDW (загрузчик) не работает при установке на usb-flash.

Попробовал syslinux-3.83 и grub-0.4.4.
И то и другое удалось установить и даже удалось меню сделать из 1го пункта.
Мне нужно просто, чтобы эти загрузчики отдавали управление BCDW. Но не выходит.
Например Grub при попытке загрузить loader.bin ругается, что неверный тип.

Как быть, подскажите? В меню BCDW у меня 16 пунктов, хотелось бы все же их увидеть.

Да, пока суть да дело, попробовал EZBOOT. Там более красивое меню, однако тоже загрузка не получается. Ну и аналогичным образом управление от Grub или syslinux не передаётся

—————-
SysLinux файл таки подгружает по такой строчке:
KERNEL /boot/syslinux/chain.c32 hd0 1 ntldr=/loader.bin
Однако дальше дело не идёт. Ибо файла bcdwbcdw.bin (или EZBOOTproject.EZB) загрузчик не находит

——————
Ради интереса попробовал прикрутить Plop к Grub-у.

Было бы здорово, если бы всевозможные пункты меню (которые работали на DVD через BCDW) грузились сразу из Grub-a или SysLinux-а.

kDn Дата: Вторник, 24.11.2009, 03:50 | Сообщение # 2
DmitryOlenin, ну и зачем вам BCDW на флешке, используйте grub4dos, он гораздо мощнее и функциональнее. Запустить вам скорее всего не удастся, только из iso-образа у меня вышло.
DmitryOlenin Дата: Вторник, 24.11.2009, 05:41 | Сообщение # 3

kDn,
Благодарю за ответ.
Подскажите пожалуйста, как запустить образ .bin при помощи grub4dos, чтобы он, собственно, запустился?

Я описал свои попытки это сделать. Запустился только plop.
Остальные же образы, которые BCDW прекрасно грузит, не поддаются.
Error 13: Invalid or unsupported executable format и всё тут

Sh1td0wn Дата: Вторник, 24.11.2009, 07:41 | Сообщение # 4

Список в студию.
НАЖМИ МЕНЯ, прежде чем что-либо написать

DmitryOlenin Дата: Вторник, 24.11.2009, 08:03 | Сообщение # 5

Не знаю как это может помочь (проверял не все пункты списка, но как минимум
3-4 не запустились), но вот список:

i386setupldr.bin
i386setupld1.bin (и так до 7 — варианты установки Win XP)
EZBOOTW2KSECTXPE.BIN — Live CD
HBCDhiren.ima — Hiren Boot CD
HBCDXP.BIN — Mini Win Xp
form.ima — загрузочная дискета DOS
kolibri.ima — KolibriOS 0.7.5.0
puppy.ima — PuppyRus Linux

:reboot
:PowerOff
:Boot from drive C

kDn Дата: Вторник, 24.11.2009, 10:21 | Сообщение # 6
DmitryOlenin, все загрузчики для Windows запускаются через chainloader, например:
chainloader i386setupldr.bin
Образа дискет нужно монтировать в виртуальный флоппик и запускать с него. Т.е. что-то типа:
Sh1td0wn Дата: Вторник, 24.11.2009, 15:48 | Сообщение # 7

grub4dos использует прямой слеш «/», а не обратный «».
НАЖМИ МЕНЯ, прежде чем что-либо написать

DmitryOlenin Дата: Вторник, 24.11.2009, 17:11 | Сообщение # 8

kDn
Помогло, но ооочень отчасти.
Загрузились KolibriOS 0.7.5.0 и загрузочная дискета DOS.

Вот проблемы:
1. Установка Windows Xp рушится и перезагружает компьютер.
Начинается (windows is inspecting. ) и потом сразу ребут.
2. Программы из HirenBootCD (сам он и MiniXp) не запускаются.
Сначала выдают пресловутую Error 13: Invalid or unsupported executable format, а при повторном запуске говорят: Error 17: Cannot mount selected partition.
Аналогичная проблема и с запуском LiveCD на основе WinPE и PuppyRus Linux.

Приложил свой файл menu.lst.
Очень жду ваших мыслей.

———————-
Попробовал дословно скопировать строки из соседней темы (там люди свои конфиги работающие приводили):

У меня, правда, 10й Hiren. Однако загрузиться и не подумал.
Disk I/O Error Replace the disk, and then press any key

Я уже ничего не понимаю. У всех всё работает — у меня нет.

Может дело в том, что я скачал последнюю версию Grub4Dos (0.4.4) с сайта разработчика?
На этом сайте просто лежит более старая.

Если вас не затруднит, можете пошагово описать последовательность действий, чтобы запустить, скажем, HirenBootCd или какой-нибудь LiveCD.
У меня просто ощущение, что я что-то упустил.

Что делал я:
1. Скачал grub4dos-0.4.4-2009-06-20.zip и grubinst-1.1-bin-w32-2008-01-01.zip.
2. Распаковал в один каталог. Запустил grubinst_gui.exe.
3. Выбрал нужный hd(1), нажал Install.
4. Скопировал(автоматом не появился) grldr (220 049 байт).
5. Создал приложенный menu.lst.

kDn Дата: Вторник, 24.11.2009, 18:02 | Сообщение # 9
Sh1td0wn,
Ну с головы писать пункты не всегда без ошибок удается)))

DmitryOlenin,
По хирену есть соседняя тема, поглядите, есть готовые примеры запуска.
По Windows XP — не зная как и что у вас организовано, никаких рекомендаций, кроме чтения соответствующих тем дать невозможно.

Sh1td0wn Дата: Вторник, 24.11.2009, 18:36 | Сообщение # 10

В принципе, Вы всё правильно делаете, но.

Далее, откуда взялся puppy.ima? Попробуйте взять оригинальный образ, оттуда — корневую ФС (один или 2 файлика в несколько сотен МБ с одинаковым расширением или просто похожими именами), ядро и initrd и переведите в синтаксис grub4dos: label на title, всё из append в kernel, initrd=. заменить на initrd (что-то) и вынести отдельной строкой.

(Возможно, я выложу сюда список необходимых файлов и lst для grub4dos)

Добавлено (24.11.2009, 18:36)
———————————————
Нужен файл pup-(номер).sfs из корневого каталога (класть в корень), файлы vmlinuz и initrd.gz (оттуда же, класть куда угодно)

НАЖМИ МЕНЯ, прежде чем что-либо написать

DmitryOlenin Дата: Вторник, 24.11.2009, 21:06 | Сообщение # 11

kDn
Я в сообщении чуть выше привёл рабочий пример запуска Hiren Boot Cd из соседней темы.
А также написал, что у меня выдаётся ошибка.

Как и при попытке загрузки любых других bin файлов за очень редким исключением.

Установка WinXp у меня совершенно стандартная. За исключением того, что у меня много вариантов установки. Организовано через несколько setupld!.bin файлов + Sif-файлы.

Sh1td0wn
Я скачал puppy.ima с их форума. Какая-то модифицированная сборка.
Я полагал, что если у BCDW нет проблем с запуском образов, то этой проблемы не должно быть и у Grub4Dos. Ошибался, видимо.

Впрочем, не столь важно. Мне бы пока с основами разобраться.

Мне главное, чтобы загружались setupldr.bin из каталога I386 (Windows XP Sp3 — варианты установки через SIF-файлы).
А также хотелось бы, чтобы загружалсь LiveCD на основе BartPe (например Alkid, который в соседней теме опять же люди преспокойно грузят) и 2 составляющие хирена (которые тоже загружают люди).

Напомню, что при ченлоаде bin-файлов я получаю
Error 13: Invalid or unsupported executable format

Очень прошу подсказать, что же я делаю не так

kDn Дата: Среда, 25.11.2009, 01:09 | Сообщение # 12
DmitryOlenin, то что написано чуть выше для меня совершенно не ясно, ошибка о том что chainloader (fd0)+1 не срабатывает, а строки о запуске Хирена через memdisk от syslinux.

Вот вам строки один в один, которые используются для запуска Хирена у меня:

В любом случае, попробуйте хотя бы поглядеть, все ли нормально с вашим образом, который смонтирован в (fd0) той же командой ls (fd0)/

По установке Windows и подгрузке WinPE не все так просто, во первых для запуска WinPE с USB-HDD обычно требуется периименование папки I386 в minint, для запуска из образов (кроме рам-сборок) почти всегда нужен Firadisk, ну и на последок setupldr должны быть патченные, bcdw, насколько я понял делает это «налету». Короче говоря, вот вам еще тема для прочтения: http://www.boot-land.net/forums/index.php?showtopic=9718

Добавлено (25.11.2009, 01:09)
———————————————
map —read-only /boot/_ima/hiren.ima (fd0)
можно попробовать заменить на:
map —mem /boot/_ima/hiren.ima (fd0)
или убедиться, что образ дефрагментирован и непрерывен.

DmitryOlenin Дата: Среда, 25.11.2009, 11:11 | Сообщение # 13

kDn
Спасибо за ответ.
Попробовал ваши строки, единственное, что поменял, так это ваш путь (/boot/_ima/) на свой (/HBCD).

1. Hiren Boot Cd с приведёнными выше строками
Не загружается ни напрямую, ни в рам.
Начинается загрузка, после чего рушится. Очень похоже на поведение при начале установки WinXp из setupldr.bin.
Тоже мигает какая-то строка, потом чёрный экран и ребут.

Попробовал пошагово выполнить команды. Всё выполняется.
После chainloader (fd0)+1 выполнил ls (fd0)/ — показал состав загрузочной области с кучей файлов типа io.sys

Потом, правда, были сбои, не может это и нормально.
default /default выдаёт Error 15: File not found
savedefault —wait=2 выдаёт Error occured while savedefault.

2. Статью посмотрел. Речь там о том, что надо файлы «патчить» (в hex-редакторе прописывать нужный sif). Это я конечно уже ооочень давно сделал, ещё когда только начинал со сборкой WinXp развлекаться.

3. Насчёт LiveCd. Аналогичная проблема. Начало запуска (Windows проверяет . ) и ребут.

——————
Проверял как на QEMU, так и на реальном нетбуке Samsung Nc10.
Подумал, что может быть криво записал MBR.

Попробовал утилиту Bootice, которую рекомендовали на дружественном ресурсе.
Бесполезно.

Сейчас буду пробовать по вашему мануалу поставить fbinst.
С наскоку даже отформатировать не удалось (выдаёт ошибки):

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

——————
Нет, дело было не в дополнительном разделе.

Теперь про чек-фейл не говорит, но not enough space повторяет дважды и форматировать отказывается

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

Впрочем, попробую запустить то же самое с нетбука.
Там чистая XP стоит.

Вероятно дальше придётся разбираться, почему Grub4Dos обычный отказывается грузить образы. Точнее, почему образы умирают после начала загрузки.

Пока что мыслей нет никаких

SHELLes Дата: Среда, 25.11.2009, 16:20 | Сообщение # 14

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

Как я все исправил: нужно обязательно отформатировать флешку прогой HP USB Disk Storage Format tool, а уже после ставить граб

Получилось загрузить Hiren.Ima. При помощи вот такой конструкции:

Заодно попробовал упоминаемый тут FiraDisk. Чтобы загрузить Alkid Live CD.

Очень жду ваших советов

SHELLes
Спасибо.
Форматировал флешку уже чуть ли не 4мя разными программами.
В том числе, конечно, HP USB Disk Storage Format tool.

Источник

Adblock
detector

DmitryOlenin Дата: Среда, 25.11.2009, 18:33 | Сообщение # 15

Quote Originally Posted by oldfred
View Post

I would use Boot-Repair’s advanced mode to install grub2 to MBR. Choose Ubuntu and sda as location to install grub into.

You probably will have to install in Ubuntu the lvm2 driver for grub2’s os-prober to find Centos which is using LVM. Many with multiple installs do not use the LVM as that only really has advantages as a full drive install.

In Ubuntu:
sudo apt-get install lvm2
sudo update-grub

Code:

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

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  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 recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; 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 [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  cb271cf1-81d0-4994-9de3-aa6c934b3a93
else
  search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=10
else
  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
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 60,59,55; then
  clear
fi

color_normal=light-gray/black

if [ -e ${prefix}/themes/ubuntu-mate/theme.txt ]; then
  insmod png
  theme=${prefix}/themes/ubuntu-mate/theme.txt
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
    set gfxpayload="${1}"
    if [ "${1}" = "keep" ]; then
        set vt_handoff=vt.handoff=7
    else
        set vt_handoff=
    fi
}
if [ "${recordfail}" != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-cb271cf1-81d0-4994-9de3-aa6c934b3a93' {
    recordfail
    load_video
    gfxmode $linux_gfx_mode
    insmod gzio
    if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  cb271cf1-81d0-4994-9de3-aa6c934b3a93
    else
      search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
    fi
    linux    /boot/vmlinuz-3.19.0-26-generic root=UUID=cb271cf1-81d0-4994-9de3-aa6c934b3a93 ro  quiet splash $vt_handoff
    initrd    /boot/initrd.img-3.19.0-26-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-cb271cf1-81d0-4994-9de3-aa6c934b3a93' {
    menuentry 'Ubuntu, with Linux 3.19.0-26-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-26-generic-advanced-cb271cf1-81d0-4994-9de3-aa6c934b3a93' {
        recordfail
        load_video
        gfxmode $linux_gfx_mode
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  cb271cf1-81d0-4994-9de3-aa6c934b3a93
        else
          search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
        fi
        echo    'Loading Linux 3.19.0-26-generic ...'
        linux    /boot/vmlinuz-3.19.0-26-generic root=UUID=cb271cf1-81d0-4994-9de3-aa6c934b3a93 ro  quiet splash $vt_handoff
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-3.19.0-26-generic
    }
    menuentry 'Ubuntu, with Linux 3.19.0-26-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-26-generic-recovery-cb271cf1-81d0-4994-9de3-aa6c934b3a93' {
        recordfail
        load_video
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  cb271cf1-81d0-4994-9de3-aa6c934b3a93
        else
          search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
        fi
        echo    'Loading Linux 3.19.0-26-generic ...'
        linux    /boot/vmlinuz-3.19.0-26-generic root=UUID=cb271cf1-81d0-4994-9de3-aa6c934b3a93 ro recovery nomodeset 
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-3.19.0-26-generic
    }
    menuentry 'Ubuntu, with Linux 3.19.0-15-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-15-generic-advanced-cb271cf1-81d0-4994-9de3-aa6c934b3a93' {
        recordfail
        load_video
        gfxmode $linux_gfx_mode
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  cb271cf1-81d0-4994-9de3-aa6c934b3a93
        else
          search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
        fi
        echo    'Loading Linux 3.19.0-15-generic ...'
        linux    /boot/vmlinuz-3.19.0-15-generic root=UUID=cb271cf1-81d0-4994-9de3-aa6c934b3a93 ro  quiet splash $vt_handoff
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-3.19.0-15-generic
    }
    menuentry 'Ubuntu, with Linux 3.19.0-15-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-15-generic-recovery-cb271cf1-81d0-4994-9de3-aa6c934b3a93' {
        recordfail
        load_video
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  cb271cf1-81d0-4994-9de3-aa6c934b3a93
        else
          search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
        fi
        echo    'Loading Linux 3.19.0-15-generic ...'
        linux    /boot/vmlinuz-3.19.0-15-generic root=UUID=cb271cf1-81d0-4994-9de3-aa6c934b3a93 ro recovery nomodeset 
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-3.19.0-15-generic
    }
}

### 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_memtest86+ ###
menuentry 'Memory test (memtest86+)' {
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  cb271cf1-81d0-4994-9de3-aa6c934b3a93
    else
      search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
    fi
    knetbsd    /boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  cb271cf1-81d0-4994-9de3-aa6c934b3a93
    else
      search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
    fi
    linux16    /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

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

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### 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 ###

Code:

 Boot Info Script e7fc706 + Boot-Repair extra info      [Boot-Info 9Feb2015]


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

 => Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    for (,msdos1)/boot/grub.
 => Grub2 (v2.00) is installed in the MBR of /dev/sdb.

sda1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 15.04 
    Boot files:        /boot/grub/grub.cfg /etc/fstab 
                       /boot/grub/i386-pc/core.img

sda2: __________________________________________________________________________

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

sda3: __________________________________________________________________________

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

sda4: __________________________________________________________________________

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

sda5: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        /grub/menu.lst /grub/grub.conf

sda6: __________________________________________________________________________

    File system:       crypto_LUKS
    Boot sector type:  Unknown
    Boot sector info: 

sdb1: __________________________________________________________________________

    File system:       iso9660
    Boot sector type:  Unknown
    Boot sector info: 
    Mounting failed:   mount: /dev/sdb1 is already mounted or /mnt/BootInfo/sdb1 busy

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

Drive: sda _____________________________________________________________________

Disk /dev/sda: 149.1 GiB, 160041885696 bytes, 312581808 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

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *          2,048    87,889,919    87,887,872  83 Linux
/dev/sda2          87,889,920   234,375,167   146,485,248  83 Linux
/dev/sda3         234,375,168   238,280,703     3,905,536  82 Linux swap / Solaris
/dev/sda4         238,280,704   312,580,095    74,299,392   5 Extended
/dev/sda5         238,282,752   239,306,751     1,024,000  83 Linux
/dev/sda6         239,308,800   312,580,095    73,271,296  83 Linux


Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 7.3 GiB, 7803174912 bytes, 15240576 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

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdb1    *             64     2,264,639     2,264,576  17 Hidden NTFS / HPFS


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/loop0                                              squashfs   
/dev/sda1        cb271cf1-81d0-4994-9de3-aa6c934b3a93   ext4       
/dev/sda2        fb7245d7-650e-4543-9bc3-cbd6bf770031   ext4       
/dev/sda3        00b7090c-6a6d-4b4a-80fa-d642e5cf3b91   swap       
/dev/sda5        137b63d7-30ed-4898-9168-9868f02c52fc   ext4       
/dev/sda6        b4d0c300-e6d7-478d-87d8-b859f4204483   crypto_LUKS 
/dev/sdb1        2015-04-22-13-12-39-00                 iso9660    Ubuntu-MATE 15.04 i386

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

total 0
lrwxrwxrwx 1 root root  9 Aug 30 20:13 ata-DVD_CDRW_UJDA775 -> ../../sr0
lrwxrwxrwx 1 root root  9 Aug 30 20:23 ata-ST9160823AS_5NK0VLJR -> ../../sda
lrwxrwxrwx 1 root root 10 Aug 30 20:23 ata-ST9160823AS_5NK0VLJR-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Aug 30 20:23 ata-ST9160823AS_5NK0VLJR-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Aug 30 20:23 ata-ST9160823AS_5NK0VLJR-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Aug 30 20:23 ata-ST9160823AS_5NK0VLJR-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Aug 30 20:23 ata-ST9160823AS_5NK0VLJR-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Aug 30 20:23 ata-ST9160823AS_5NK0VLJR-part6 -> ../../sda6
lrwxrwxrwx 1 root root  9 Aug 30 20:23 usb-Kingston_DataTraveler_2.0_6CF049E3311BED31C9360205-0:0 -> ../../sdb
lrwxrwxrwx 1 root root 10 Aug 30 20:23 usb-Kingston_DataTraveler_2.0_6CF049E3311BED31C9360205-0:0-part1 -> ../../sdb1

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

Device           Mount_Point              Type       Options

/dev/loop0       /rofs                    squashfs   (ro,noatime)
/dev/sdb         /cdrom                   iso9660    (ro,noatime)


=========================== sda1/boot/grub/grub.cfg: ===========================

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

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  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 recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; 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 [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  cb271cf1-81d0-4994-9de3-aa6c934b3a93
else
  search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=10
else
  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
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 60,59,55; then
  clear
fi

color_normal=light-gray/black

if [ -e ${prefix}/themes/ubuntu-mate/theme.txt ]; then
  insmod png
  theme=${prefix}/themes/ubuntu-mate/theme.txt
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
    set gfxpayload="${1}"
    if [ "${1}" = "keep" ]; then
        set vt_handoff=vt.handoff=7
    else
        set vt_handoff=
    fi
}
if [ "${recordfail}" != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-cb271cf1-81d0-4994-9de3-aa6c934b3a93' {
    recordfail
    load_video
    gfxmode $linux_gfx_mode
    insmod gzio
    if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  cb271cf1-81d0-4994-9de3-aa6c934b3a93
    else
      search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
    fi
    linux    /boot/vmlinuz-3.19.0-26-generic root=UUID=cb271cf1-81d0-4994-9de3-aa6c934b3a93 ro  quiet splash $vt_handoff
    initrd    /boot/initrd.img-3.19.0-26-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-cb271cf1-81d0-4994-9de3-aa6c934b3a93' {
    menuentry 'Ubuntu, with Linux 3.19.0-26-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-26-generic-advanced-cb271cf1-81d0-4994-9de3-aa6c934b3a93' {
        recordfail
        load_video
        gfxmode $linux_gfx_mode
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  cb271cf1-81d0-4994-9de3-aa6c934b3a93
        else
          search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
        fi
        echo    'Loading Linux 3.19.0-26-generic ...'
        linux    /boot/vmlinuz-3.19.0-26-generic root=UUID=cb271cf1-81d0-4994-9de3-aa6c934b3a93 ro  quiet splash $vt_handoff
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-3.19.0-26-generic
    }
    menuentry 'Ubuntu, with Linux 3.19.0-26-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-26-generic-recovery-cb271cf1-81d0-4994-9de3-aa6c934b3a93' {
        recordfail
        load_video
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  cb271cf1-81d0-4994-9de3-aa6c934b3a93
        else
          search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
        fi
        echo    'Loading Linux 3.19.0-26-generic ...'
        linux    /boot/vmlinuz-3.19.0-26-generic root=UUID=cb271cf1-81d0-4994-9de3-aa6c934b3a93 ro recovery nomodeset 
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-3.19.0-26-generic
    }
    menuentry 'Ubuntu, with Linux 3.19.0-15-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-15-generic-advanced-cb271cf1-81d0-4994-9de3-aa6c934b3a93' {
        recordfail
        load_video
        gfxmode $linux_gfx_mode
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  cb271cf1-81d0-4994-9de3-aa6c934b3a93
        else
          search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
        fi
        echo    'Loading Linux 3.19.0-15-generic ...'
        linux    /boot/vmlinuz-3.19.0-15-generic root=UUID=cb271cf1-81d0-4994-9de3-aa6c934b3a93 ro  quiet splash $vt_handoff
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-3.19.0-15-generic
    }
    menuentry 'Ubuntu, with Linux 3.19.0-15-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-15-generic-recovery-cb271cf1-81d0-4994-9de3-aa6c934b3a93' {
        recordfail
        load_video
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  cb271cf1-81d0-4994-9de3-aa6c934b3a93
        else
          search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
        fi
        echo    'Loading Linux 3.19.0-15-generic ...'
        linux    /boot/vmlinuz-3.19.0-15-generic root=UUID=cb271cf1-81d0-4994-9de3-aa6c934b3a93 ro recovery nomodeset 
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-3.19.0-15-generic
    }
}

### 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_memtest86+ ###
menuentry 'Memory test (memtest86+)' {
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  cb271cf1-81d0-4994-9de3-aa6c934b3a93
    else
      search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
    fi
    knetbsd    /boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  cb271cf1-81d0-4994-9de3-aa6c934b3a93
    else
      search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
    fi
    linux16    /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

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

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### 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 ###
--------------------------------------------------------------------------------

=============================== sda1/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=cb271cf1-81d0-4994-9de3-aa6c934b3a93 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda2 during installation
UUID=fb7245d7-650e-4543-9bc3-cbd6bf770031 /home           ext4    defaults        0       2
# swap was on /dev/sda3 during installation
#UUID=00b7090c-6a6d-4b4a-80fa-d642e5cf3b91 none            swap    sw              0       0
/dev/mapper/cryptswap1 none swap sw 0 0
--------------------------------------------------------------------------------

============================= sda5/grub/grub.conf: =============================

--------------------------------------------------------------------------------
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,4)
#          kernel /vmlinuz-version ro root=/dev/mapper/vg_t61-lv_root
#          initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=2
timeout=5
splashimage=(hd0,4)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-573.3.1.el6.i686)
    root (hd0,4)
    kernel /vmlinuz-2.6.32-573.3.1.el6.i686 ro root=/dev/mapper/vg_t61-lv_root rd_LVM_LV=vg_t61/lv_root rd_LUKS_UUID=luks-b4d0c300-e6d7-478d-87d8-b859f4204483 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto  KEYBOARDTYPE=pc KEYTABLE=us rd_LVM_LV=vg_t61/lv_swap rd_NO_DM LANG=en_US.UTF-8 rhgb quiet
    initrd /initramfs-2.6.32-573.3.1.el6.i686.img
title CentOS Linux 6 (2.6.32-573.el6.i686)
    root (hd0,4)
    kernel /vmlinuz-2.6.32-573.el6.i686 ro root=/dev/mapper/vg_t61-lv_root rd_LVM_LV=vg_t61/lv_root rd_LUKS_UUID=luks-b4d0c300-e6d7-478d-87d8-b859f4204483 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M  KEYBOARDTYPE=pc KEYTABLE=us rd_LVM_LV=vg_t61/lv_swap rd_NO_DM LANG=en_US.UTF-8 rhgb quiet
    initrd /initramfs-2.6.32-573.el6.i686.img
title Ubuntu MATE
    rootnoverify (hd0,0)
    chainloader +1
--------------------------------------------------------------------------------

======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sda4

00000000  da 5b 85 27 c9 db 3b 01  db 2f 1a 7b 3c c8 e0 8f  |.[.'..;../.{<...|
00000010  73 58 2d 6f 65 4e 32 45  1d 15 d6 12 57 d2 ff 5b  |sX-oeN2E....W..[|
00000020  fc 54 18 ef 90 d9 96 20  6d d1 48 0e df ac 73 4f  |.T..... m.H...sO|
00000030  d2 74 cb 9f 52 ef 42 3d  e9 49 6e 08 c5 69 f5 cf  |.t..R.B=.In..i..|
00000040  d7 52 ea 8d d3 ff 0a c6  4d bd 2b 4b 02 66 ee 73  |.R......M.+K.f.s|
00000050  fa b3 15 48 63 4a 2b 34  fb fd 53 1e 3c ca 48 36  |...HcJ+4..S.<.H6|
00000060  d7 21 c7 24 b5 75 13 e0  2e ff 98 ed 29 fc 08 c0  |.!.$.u......)...|
00000070  77 f7 66 13 39 4c 4a 6a  e8 8b aa fa ea 3a 39 bb  |w.f.9LJj.....:9.|
00000080  c7 57 54 9a e2 ed 5f 98  d2 9c 08 d6 38 cc d2 bc  |.WT..._.....8...|
00000090  e4 a1 45 d5 d8 27 55 b3  ee 42 35 20 7c b1 87 57  |..E..'U..B5 |..W|
000000a0  9e 74 54 3d bc 98 de 86  07 ac 34 7b 4c 54 b2 a9  |.tT=......4{LT..|
000000b0  9a a0 03 78 fd 09 51 f8  58 5b a3 1d 9c 5d b2 56  |...x..Q.X[...].V|
000000c0  e6 f8 f8 52 7d 5c 16 98  5e d7 b8 68 3f 7f 9e ce  |...R}..^..h?...|
000000d0  74 ec fe d5 ae 7d ce 69  1e 23 4d 79 de f2 db 6a  |t....}.i.#My...j|
000000e0  7f c2 c6 14 6e c4 cd c2  0d 4e 54 dd 3a b4 50 61  |....n....NT.:.Pa|
000000f0  e1 cf 8f 5e 89 45 d1 cf  80 13 a0 89 13 e0 76 96  |...^.E........v.|
00000100  1c a1 56 ff f2 04 f3 bb  85 4a e1 ed fb 8a 38 05  |..V......J....8.|
00000110  02 1b 63 06 68 80 77 56  5a 07 7a fc c8 60 a3 a7  |..c.h.wVZ.z..`..|
00000120  5f 06 44 08 f4 bf 80 bb  0d f4 2b a2 c6 10 74 01  |_.D.......+...t.|
00000130  e9 06 86 ae 84 c1 7c 3c  68 fe 3e 69 c3 91 31 bd  |......|<h.>i..1.|
00000140  35 aa 82 55 3d e3 f5 32  2d 5e 48 c1 44 f8 ad cb  |5..U=..2-^H.D...|
00000150  d9 83 02 16 67 f9 ef 95  60 34 ea 2d da 6c a7 14  |....g...`4.-.l..|
00000160  fc 44 7e f3 0d 06 d5 68  9d b7 84 00 52 02 ed 28  |.D~....h....R..(|
00000170  a3 e7 6a eb 33 86 e6 62  52 7f b9 98 88 94 49 62  |..j.3..bR.....Ib|
00000180  e0 9d 5b f5 bc e5 59 b8  32 b9 02 cc 29 78 7f 5f  |..[...Y.2...)x._|
00000190  90 f2 64 4c 18 45 b5 c5  08 f6 c7 70 99 d9 a2 89  |..dL.E.....p....|
000001a0  0a 2f 04 a4 58 d3 4a 83  8f 61 4f 7c 38 fd b9 d3  |./..X.J..aO|8...|
000001b0  2b 39 f1 3d 40 13 f9 a6  35 22 b3 1f 26 27 00 fe  |+9.=@...5"..&'..|
000001c0  ff ff 83 fe ff ff 00 08  00 00 00 a0 0f 00 00 fe  |................|
000001d0  ff ff 05 fe ff ff 00 a8  0f 00 00 10 5e 04 00 00  |............^...|
000001e0  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

Unknown BootLoader on sda6

00000000  4c 55 4b 53 ba be 00 01  61 65 73 00 00 00 00 00  |LUKS....aes.....|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000020  00 00 00 00 00 00 00 00  78 74 73 2d 70 6c 61 69  |........xts-plai|
00000030  6e 36 34 00 00 00 00 00  00 00 00 00 00 00 00 00  |n64.............|
00000040  00 00 00 00 00 00 00 00  73 68 61 31 00 00 00 00  |........sha1....|
00000050  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000060  00 00 00 00 00 00 00 00  00 00 10 00 00 00 00 40  |...............@|
00000070  48 46 0c f5 00 2d 1c bd  61 3d a0 e1 e1 1d 9c 6d  |HF...-..a=.....m|
00000080  a0 c3 2c e8 89 0e 8e ad  aa 94 c4 bd ec 2b 72 84  |..,..........+r.|
00000090  7e e6 31 d6 9f 9a c8 fa  8b 78 30 c2 c8 1c 51 f2  |~.1......x0...Q.|
000000a0  c4 ff 48 a9 00 00 8f 11  62 34 64 30 63 33 30 30  |..H.....b4d0c300|
000000b0  2d 65 36 64 37 2d 34 37  38 64 2d 38 37 64 38 2d  |-e6d7-478d-87d8-|
000000c0  62 38 35 39 66 34 32 30  34 34 38 33 00 00 00 00  |b859f4204483....|
000000d0  00 ac 71 f3 00 02 3c 6a  d4 94 68 24 6e e6 5d 42  |..q...<j..h$n.]B|
000000e0  44 52 f8 b9 66 0e a9 ba  ef 95 8f 64 0e 17 66 28  |DR..f......d..f(|
000000f0  10 9d 71 9a 5e 82 72 e9  00 00 00 08 00 00 0f a0  |..q.^.r.........|
00000100  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000110  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000120  00 00 00 00 00 00 00 00  00 00 02 00 00 00 0f a0  |................|
00000130  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000140  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000150  00 00 00 00 00 00 00 00  00 00 03 f8 00 00 0f a0  |................|
00000160  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000170  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000180  00 00 00 00 00 00 00 00  00 00 05 f0 00 00 0f a0  |................|
00000190  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001b0  00 00 00 00 00 00 00 00  00 00 07 e8 00 00 0f a0  |................|
000001c0  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001e0  00 00 00 00 00 00 00 00  00 00 09 e0 00 00 0f a0  |................|
000001f0  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000200

Unknown BootLoader on sdb1

00000000  01 43 44 30 30 31 01 00  20 20 20 20 20 20 20 20  |.CD001..        |
00000010  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000020  20 20 20 20 20 20 20 20  55 62 75 6e 74 75 2d 4d  |        Ubuntu-M|
00000030  41 54 45 20 31 35 2e 30  34 20 69 33 38 36 20 20  |ATE 15.04 i386  |
00000040  20 20 20 20 20 20 20 20  00 00 00 00 00 00 00 00  |        ........|
00000050  90 a3 08 00 00 08 a3 90  00 00 00 00 00 00 00 00  |................|
00000060  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000070  00 00 00 00 00 00 00 00  01 00 00 01 01 00 00 01  |................|
00000080  00 08 08 00 4e 03 00 00  00 00 03 4e 66 00 00 00  |....N......Nf...|
00000090  00 00 00 00 00 00 00 67  00 00 00 00 22 00 23 00  |.......g....".#.|
000000a0  00 00 00 00 00 23 00 08  00 00 00 00 08 00 73 04  |.....#........s.|
000000b0  16 0d 0c 27 00 02 00 00  01 00 00 01 01 00 20 20  |...'..........  |
000000c0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
000001b0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 58 4f  |              XO|
000001c0  52 52 49 53 4f 2d 31 2e  31 2e 38 20 32 30 31 31  |RRISO-1.1.8 2011|
000001d0  2e 31 31 2e 32 30 2e 31  37 33 30 30 31 2c 20 4c  |.11.20.173001, L|
000001e0  49 42 49 53 4f 42 55 52  4e 2d 31 2e 31 2e 38 2c  |IBISOBURN-1.1.8,|
000001f0  20 4c 49 42 49 53 4f 46  53 2d 31 2e 31 2e 36 2c  | LIBISOFS-1.1.6,|
00000200


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

cat: write error: Broken pipe
File descriptor 9 (/proc/13944/mounts) leaked on lvs invocation. Parent PID 20941: bash
File descriptor 63 (pipe:[162711]) leaked on lvs invocation. Parent PID 20941: bash
  No volume groups found

ADDITIONAL INFORMATION :
=================== log of boot-info 2015-08-30__20h23 ===================
boot-info version : 4ppa33
boot-sav version : 4ppa33
glade2script version : 3.2.2~ppa47~saucy
boot-sav-extra version : 4ppa33
boot-info is executed in live-session (Ubuntu 15.04, vivid, Ubuntu, i686)
CPU op-mode(s):        32-bit, 64-bit
file=/cdrom/preseed/ubuntu-mate.seed boot=casper initrd=/casper/initrd.lz quiet splash --- maybe-ubiquity
ls: cannot access /home/usr/.config: No such file or directory
mount: unknown filesystem type 'crypto_LUKS'
mount /dev/sda6 : Error code 32
mount -r /dev/sda6 /mnt/boot-sav/sda6
mount: unknown filesystem type 'crypto_LUKS'
mount -r /dev/sda6 : Error code 32

=================== os-prober:
/dev/sda1:Ubuntu 15.04 (15.04):Ubuntu:linux

=================== blkid:
/dev/sda1: UUID="cb271cf1-81d0-4994-9de3-aa6c934b3a93" TYPE="ext4" PARTUUID="503e107d-01"
/dev/sda2: UUID="fb7245d7-650e-4543-9bc3-cbd6bf770031" TYPE="ext4" PARTUUID="503e107d-02"
/dev/sda5: UUID="137b63d7-30ed-4898-9168-9868f02c52fc" TYPE="ext4" PARTUUID="503e107d-05"
/dev/loop0: TYPE="squashfs"
/dev/sda3: UUID="00b7090c-6a6d-4b4a-80fa-d642e5cf3b91" TYPE="swap" PARTUUID="503e107d-03"
/dev/sda6: UUID="b4d0c300-e6d7-478d-87d8-b859f4204483" TYPE="crypto_LUKS" PARTUUID="503e107d-06"
/dev/sdb1: UUID="2015-04-22-13-12-39-00" LABEL="Ubuntu-MATE 15.04 i386" TYPE="iso9660" PARTUUID="04ecbde7-01"


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

mount: unknown filesystem type 'crypto_LUKS'
mount /dev/sda6 : Error code 32
mount -r /dev/sda6 /mnt/boot-sav/sda6
mount: unknown filesystem type 'crypto_LUKS'
mount -r /dev/sda6 : Error code 32
sfdisk: Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.

=================== sda1/etc/grub.d/ :
drwxr-xr-x  2 root root    4096 Aug 23 21:08 grub.d
total 76
-rwxr-xr-x 1 root root  9424 Jun 26 11:16 00_header
-rwxr-xr-x 1 root root  6058 Feb 11  2015 05_debian_theme
-rwxr-xr-x 1 root root 12261 Apr  6 20:44 10_linux
-rwxr-xr-x 1 root root 11082 Apr  6 20:44 20_linux_xen
-rwxr-xr-x 1 root root  1992 Mar  6 16:19 20_memtest86+
-rwxr-xr-x 1 root root 11692 Apr  6 20:44 30_os-prober
-rwxr-xr-x 1 root root  1416 Apr  6 20:44 30_uefi-firmware
-rwxr-xr-x 1 root root   214 Apr  6 20:44 40_custom
-rwxr-xr-x 1 root root   216 Apr  6 20:44 41_custom
-rw-r--r-- 1 root root   483 Apr  6 20:44 README




=================== sda1/etc/default/grub :

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"



/mnt/boot-sav/sda5/grub/menu.lst detected

=================== UEFI/Legacy mode:
This live-session is not EFI-compatible.
SecureBoot maybe enabled.


=================== PARTITIONS & DISKS:
sda1    : sda,    not-sepboot,    grubenv-ok    grub2,    grub-pc ,    update-grub,    32,    with-boot,    is-os,    not--efi--part,    fstab-without-boot,    fstab-without-efi,    no-nt,    no-winload,    no-recov-nor-hid,    no-bmgr,    notwinboot,    apt-get,    grub-install,    with--usr,    fstab-without-usr,    not-sep-usr,    standard,    not-far,    /mnt/boot-sav/sda1.
sda2    : 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/sda2.
sda5    : sda,    is-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,    no-bmgr,    notwinboot,    nopakmgr,    nogrubinstall,    no---usr,    part-has-no-fstab,    not-sep-usr,    standard,    farbios,    /mnt/boot-sav/sda5.
sda6    : 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/sda6.

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


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

Model: ATA ST9160823AS (scsi)
Disk /dev/sda: 160GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type      File system     Flags
1      1049kB  45.0GB  45.0GB  primary   ext4            boot
2      45.0GB  120GB   75.0GB  primary   ext4
3      120GB   122GB   2000MB  primary   linux-swap(v1)
4      122GB   160GB   38.0GB  extended
5      122GB   123GB   524MB   logical   ext4
6      123GB   160GB   37.5GB  logical


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

Number  Start   End     Size    Type     File system  Flags
1      32.8kB  1159MB  1159MB  primary               boot, hidden

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

BYT;
/dev/sda:160GB:scsi:512:512:msdos:ATA ST9160823AS:;
1:1049kB:45.0GB:45.0GB:ext4::boot;
2:45.0GB:120GB:75.0GB:ext4::;
3:120GB:122GB:2000MB:linux-swap(v1)::;
4:122GB:160GB:38.0GB:::;
5:122GB:123GB:524MB:ext4::;
6:123GB:160GB:37.5GB:::;

BYT;
/dev/sdb:7803MB:scsi:512:512:msdos:Kingston DataTraveler 2.0:;
1:32.8kB:1159MB:1159MB:::boot, hidden;

=================== lsblk:
KNAME TYPE FSTYPE        SIZE LABEL                  MODEL            UUID
sda   disk             149.1G                        ST9160823AS
sda1  part ext4         41.9G                                         cb271cf1-81d0-4994-9de3-aa6c934b3a93
sda2  part ext4         69.9G                                         fb7245d7-650e-4543-9bc3-cbd6bf770031
sda3  part swap          1.9G                                         00b7090c-6a6d-4b4a-80fa-d642e5cf3b91
sda4  part                 1K
sda5  part ext4          500M                                         137b63d7-30ed-4898-9168-9868f02c52fc
sda6  part crypto_LUKS    35G                                         b4d0c300-e6d7-478d-87d8-b859f4204483
sdb   disk iso9660       7.3G Ubuntu-MATE 15.04 i386 DataTraveler 2.0 2015-04-22-13-12-39-00
sdb1  part iso9660       1.1G Ubuntu-MATE 15.04 i386                  2015-04-22-13-12-39-00
sr0   rom               1024M                        DVD/CDRW UJDA775
loop0 loop squashfs        1G

KNAME ROTA RO RM STATE   MOUNTPOINT
sda      1  0  0 running
sda1     1  0  0         /mnt/boot-sav/sda1
sda2     1  0  0         /mnt/boot-sav/sda2
sda3     1  0  0         [SWAP]
sda4     1  0  0
sda5     1  0  0         /mnt/boot-sav/sda5
sda6     1  0  0
sdb      1  0  1 running
sdb1     1  0  1
sr0      1  0  1 running
loop0    1  1  0         /rofs


=================== mount:
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=1011260k,nr_inodes=214124,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=204568k,mode=755)
/dev/sdb on /cdrom type iso9660 (ro,noatime)
/dev/loop0 on /rofs type squashfs (ro,noatime)
/cow on / type overlay (rw,relatime,lowerdir=//filesystem.squashfs,upperdir=/cow/upper,workdir=/cow/work)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset,clone_children)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=23,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
tmpfs on /run/user/999 type tmpfs (rw,nosuid,nodev,relatime,size=204568k,mode=700,uid=999,gid=999)
/dev/sda1 on /mnt/boot-sav/sda1 type ext4 (rw,relatime,data=ordered)
/dev/sda2 on /mnt/boot-sav/sda2 type ext4 (rw,relatime,data=ordered)
/dev/sda5 on /mnt/boot-sav/sda5 type ext4 (rw,relatime,data=ordered)


=================== 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 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/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 cdrw char console core cpu cpu_dma_latency cuse disk dri dvd ecryptfs fb0 fd full fuse fw0 hpet hugepages i2c-0 i2c-1 i2c-2 initctl input kmsg kvm log mapper mcelog mem memory_bandwidth mqueue net network_latency network_throughput null port ppp psaux ptmx pts random rfkill rtc rtc0 sda sda1 sda2 sda3 sda4 sda5 sda6 sdb sdb1 sg0 sg1 sg2 shm snapshot snd sr0 stderr stdin stdout tpm0 uhid uinput urandom vfio vga_arbiter vhci vhost-net xconsole zero
ls /dev/mapper:  control
ls: cannot access /usr/lib/syslinux: No such file or directory

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

Filesystem     Type      Size  Used Avail Use% Mounted on
udev           devtmpfs  988M     0  988M   0% /dev
tmpfs          tmpfs     200M  9.3M  191M   5% /run
/dev/sdb       iso9660   1.1G  1.1G     0 100% /cdrom
/dev/loop0     squashfs  1.1G  1.1G     0 100% /rofs
/cow           overlay   999M  207M  792M  21% /
tmpfs          tmpfs     999M  264K  999M   1% /dev/shm
tmpfs          tmpfs     5.0M  8.0K  5.0M   1% /run/lock
tmpfs          tmpfs     999M     0  999M   0% /sys/fs/cgroup
tmpfs          tmpfs     999M  756K  999M   1% /tmp
tmpfs          tmpfs     200M   36K  200M   1% /run/user/999
/dev/sda1      ext4       42G  4.1G   35G  11% /mnt/boot-sav/sda1
/dev/sda2      ext4       69G   20G   47G  30% /mnt/boot-sav/sda2
/dev/sda5      ext4      477M   66M  382M  15% /mnt/boot-sav/sda5

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

Disk /dev/loop0: 1 GiB, 1105805312 bytes, 2159776 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 /dev/sda: 149.1 GiB, 160041885696 bytes, 312581808 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
Disklabel type: dos
Disk identifier: 0x503e107d

Device     Boot     Start       End   Sectors  Size Id Type
/dev/sda1  *         2048  87889919  87887872 41.9G 83 Linux
/dev/sda2        87889920 234375167 146485248 69.9G 83 Linux
/dev/sda3       234375168 238280703   3905536  1.9G 82 Linux swap / Solaris
/dev/sda4       238280704 312580095  74299392 35.4G  5 Extended
/dev/sda5       238282752 239306751   1024000  500M 83 Linux
/dev/sda6       239308800 312580095  73271296   35G 83 Linux

Disk /dev/sdb: 7.3 GiB, 7803174912 bytes, 15240576 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
Disklabel type: dos
Disk identifier: 0x04ecbde7

Device     Boot Start     End Sectors  Size Id Type
/dev/sdb1  *       64 2264639 2264576  1.1G 17 Hidden HPFS/NTFS


gui-tab-other.sh: line 94: _checkbutton_repairfilesystems: command not found


=================== Suggested repair
The default repair of the Boot-Repair utility would reinstall the grub2 of sda1 into the MBR of sda.
Additional repair would be performed: unhide-bootmenu-10s repair-filesystems


=================== Advice in case of suggested repair
You may want to retry after decrypting your partitions. (https://help.ubuntu.com/community/EncryptedPrivateDirectory)
Do you want to continue?


=================== User settings
The settings chosen by the user will not act on the boot.

0 / 0 / 0

Регистрация: 17.12.2009

Сообщений: 10

1

30.11.2014, 20:53. Показов 5935. Ответов 11


Добрый вечер! Делал я доопреационный запуск программ вот по этой статье http://habrahabr.ru/company/neobit/blog/173263/. Установлена была Ubuntu 14.10 32-х битная. Все работало все грузилось, в общем я был рад.

Понадобилось мне сделать тоже самое на 64-х битной версии. Соответственно поменял :
cp /usr/lib/grub/i386-pc/stage1 ./grub/
cp /usr/lib/grub/i386-pc/stage2 ./grub/
cp /usr/lib/grub/i386-pc/fat_stage1_5 ./grub/

на

cp /usr/lib/grub/x86_64-pc/stage1 ./grub/
cp /usr/lib/grub/x86_64-pc/stage2 ./grub/
cp /usr/lib/grub/x86_64-pc/fat_stage1_5 ./grub/

И при тестировании на qemu, да и при загрузке с флешки получаю ту самую ошибку 13, после выбора в меню grub моей mini_os. Линукс был переустановлен на место предыдущего, разделы не менялись. Версия grub 0.97.
Буду признателен за любую помощь. От мануала ни в чем, кроме как в пути до файлов grub, изменений не делал.

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



0



Dr_Quake

Заблокирован

01.12.2014, 15:50

2

А нафига тебе 64битный grub то вообще???



0



0 / 0 / 0

Регистрация: 17.12.2009

Сообщений: 10

01.12.2014, 16:00

 [ТС]

3

кхм. 64 битная версия OS. Grub Legacy все тот же. проблема была, насколько я понял, что собирался бинарник в ELF64. Я вроде его попытался конвертировать в ELF32
$ objcopy kernel.bin -O elf32-i386 kernel.bin.
Но получил 28 ошибку Grub



0



Dr_Quake

Заблокирован

01.12.2014, 16:53

4

Битность grub как бы фиолетова — он лоадер. 64битный нужен только что для UEFI.



0



0 / 0 / 0

Регистрация: 17.12.2009

Сообщений: 10

01.12.2014, 17:01

 [ТС]

5

Но grub legacy то может только в ELF32, нет?

Добавлено через 2 минуты
объясни, пожалуйста, откуда мне плясать, где исправлять? Я использую 64 битную ОС, потому, что в ней работает режим NUMA, + демонстрировать результаты надо на ноуте, на котором установлен UEFI, который соответственно позволяет установить только 64=х битную Ubuntu.

Добавлено через 1 минуту
И есть ли способ все таки не устанавливать grub2, для того, чтобы запустить kernel.bin до ОС



0



Dr_Quake

Заблокирован

01.12.2014, 17:43

6

Нет.

Ты чем упоролся с «до ОС»?



0



0 / 0 / 0

Регистрация: 17.12.2009

Сообщений: 10

01.12.2014, 18:19

 [ТС]

7

задание такое, что делать. запустить программу до ОС, измерить время ее выполнения



0



Dr_Quake

Заблокирован

01.12.2014, 19:23

8

И где проблема? Любой бинарник он загрузит, даже в ELF особо смысла нет. Мерить сам должен как бы. К.О.



0



0 / 0 / 0

Регистрация: 17.12.2009

Сообщений: 10

01.12.2014, 19:26

 [ТС]

9

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



0



Dr_Quake

Заблокирован

01.12.2014, 19:31

10

…но никто не гарантирует что тот же grub не почистит регистры или таймеры при старте.



0



0 / 0 / 0

Регистрация: 17.12.2009

Сообщений: 10

01.12.2014, 19:35

 [ТС]

11

Не попробую — не узнаю)))) Можно сравнить с результатами измерени из ОС



0



24 / 13 / 3

Регистрация: 02.08.2012

Сообщений: 160

09.10.2016, 18:47

12

Такая же проблема с ошибкой 13. Как решилась то?

Добавлено через 39 минут
Я тоже читаю статью с хабра «Как запустить программу без операционной системы».
Я так понимаю «error 13 invalid or unsupported executable format» возникает из за того что kernel.bin имеет формат elf64.
Добавил в Makefile ключи для компиляции и линковки в elf32.
-m32 для GCC
—32 для as
-m elf_i386 для ld

Итого изменились следующие строки.

CFLAGS = -Wall -fno-builtin -nostdinc -nostdlib

-m32

.s.o:

as —32 -o $@ $<

kernel.bin: $(OBJFILES)
$(LD)

-m elf_i386 -T linker.ld -o $@ $^



0



  • Печать

Страницы: [1]   Вниз

Тема: не работает мультизагрузка grub4dos  (Прочитано 4496 раз)

0 Пользователей и 1 Гость просматривают эту тему.

разделы на диске:
sda1 500Мб
sda2 400 с лишним Гб — Windows + puppy roll
sda3 30 Гб — данные
sda4 10 Гб — linux ext4 (установлен antiX)

В menu.list добавил пункт
title antiX
root (hd0,3)
kernel (hd0, 3)/boot/vmlinuz-4.9.126-anti.1-amd64-smp root=(hd0,3)
initrd (hd01,3)/boot/initrd.img-4.9.126-anti.1-amd64-smp

При загрузке после выбора этого пункта появляется ошибка:
Error13: Invalid or unsupported executable format


Записан


Error13: Invalid or unsupported executable format

Слишком много ошибок:
(hd01,3) — лишняя цифра
(hd0, 3) — лишний пробел
kernel ….. root=(hd0,3) — нет такого параметра

Правильно:

title antiX
root (hd0,3)
kernel (hd0,3)/boot/vmlinuz-4.9.126-anti.1-amd64-smp root=/dev/sda4
initrd (hd0,3)/boot/initrd.img-4.9.126-anti.1-amd64-smp

Еще, нет ли ошибок в названии файла —> initrd.img-4.9.126-anti.1-amd64-smp


Записан


kernel ….. root=(hd0,3) — нет такого параметра

Для full есть, только без скобок: root=sda4


Записан

Моноблок Lenovo IdeaCentre c200 (Intel Atom D525, Intel GMA 3150, 2 Gb RAM) Richy64
Nettop Acer Aspire Revo R3610 (Atom N330, nVidia GeForce 9400, 3 Gb RAM) Richy64


Дело не в указанных ошибках.

файл menu.lst
title antiX
root (hd0,3)
kernel (hd0,3)/boot/vmlinuz-4.9.126-anti.1-amd64-smp root=/dev/sda4
initrd (hd0,3)/boot/initrd.img-4.9.126-anti.1-amd64-smp

Текст сообщения после выбора пункта меню grub4dos:
Booting AntiX linux
Filesistem tipe is ext2fs, partition type 0x83
kernel (hd0,3)/boot/vmlinuz-4.9.126-anti.1-amd64-smp root=/dev/sda4
Error 13: Invalid or unsupported executable format
Press any key to continue…

Может надо снести grub4dos и поставить grub2?


Записан


попробуйте

itle antiX
find --set-root --ignore-floppies --ignore-cd /boot/vmlinuz-4.9.126-anti.1-amd64-smp
kernel /boot/vmlinuz-4.9.126-anti.1-amd64-smp root=/dev/sda4
initrd /boot/initrd.img-4.9.126-anti.1-amd64-smp


Записан


Спасибо.
Доступ к данной машине один раз в неделю.
Напишу что получилось 13 января во второй половине дня.


Записан


Error 13: Invalid or unsupported executable format

Файлы точно не битые? Контрольные суммы проверяли? Загрузочный носитель аппаратно без проблемный?


Записан


1

Файлы точно не битые? Контрольные суммы проверяли? Загрузочный носитель аппаратно без проблемный?

Проверял md5sum iso-файла образа antiX (после его скачивания).
На жестком диске при создании раздела и форматировании в ext4 ошибок не было.

2
команда:
$ sudo fdisk -l

вывод:
Диск /dev/sda: 465.8 GiB
тип метки диска: dos
устройство   загрузочн.   размер     тип
/dev/sda1      *                   500M        7 HPFS/ NTFS/ exFAT
/dev/sda2                           424.6 G    7 HPFS/ NTFS/ exFAT
/dev/sda3                           30 G         7 HPFS/ NTFS/ exFAT
/dev/sda4                           10.8 G      83 Linux
Элементы таблицы разделов упорядочены не так, как на диске.

Не понимаю в чём смысл этого сообщения.

3
файл menu.lst
title antiX
find —set-root —ignore-floppies —ignore-cd /boot/vmlinuz-4.9.126-anti.1-amd64-smp
kernel /boot/vmlinuz-4.9.126-anti.1-amd64-smp root=/dev/sda4
initrd /boot/initrd.img-4.9.126-anti.1-amd64-smp

вывод:
Booting AntiX linux

(hd0,3)
kernel /boot/vmlinuz-4.9.126-antix.1-amd64-smp root=/dev/sda4
Error 13: Invalid or unsupported executable format
Press any key to continue…

4
На англоязычном форуме прочитал, что grub4dos работает не со всеми дисками. И об этом оказывается народ давно знает. Поэтому я вместо него поставлю grub2.
Всем спасибо. Тему можно закрывать.


Записан


Не понимаю в чём смысл этого сообщения.

Ничего страшного. Просто уведомление о том, что физически на винте разделы расположены в одном порядке, а в таблице разделов в другом. Это ни на что не влияет.

Error 13: Invalid or unsupported executable format

Только с antiX так?


Записан


Ничего страшного. Просто уведомление о том, что физически на винте разделы расположены в одном порядке, а в таблице разделов в другом. Это ни на что не влияет.

Скопировал файлы vmlinuz-4.9.126-anti.1-amd64-smp, initrd.img-4.9.126-anti.1-amd64-smp в корень раздела Windows (sda2).
Изменил файл menu.lst:

title antiX
find —set-root —ignore-floppies —ignore-cd /vmlinuz-4.9.126-anti.1-amd64-smp
kernel /vmlinuz-4.9.126-anti.1-amd64-smp root=/dev/sda4
initrd /initrd.img-4.9.126-anti.1-amd64-smp

И всё заработало. AntiX успешно загрузился.
Поэтому grub2 не стал ставить.


Записан


ставил  «для порядка — в каталог»:
сначала устанавливал на флэшку, потом копировал «результат» в каталог + соответственная правка в 3-х местах в путях загрузчика.(вроде можно проще, но пока не до того)

p.s.
для МагОс можно ли что-то «вроде того» ? :)


Записан

Gr4D, Grub2; HP Mini 210 VT — Intel Atom N470  @ 1.83GHz, Intel GMA3150, RAM=2 ГБ ;
Sams-n110: N270 — 1,6 ГГц, Intel GMA 950, RAM=2 ГБ.


Скопировал файлы vmlinuz-4.9.126-anti.1-amd64-smp, initrd.img-4.9.126-anti.1-amd64-smp в корень раздела Windows (sda2).

И всё заработало. AntiX успешно загрузился.

Была у нас похожая тема, вроде с ArchBang. Там тоже все заработало после переноса vmlinuz и initrd на fat32.
В той теме железо было с UEFI, здесь похоже тоже.


Записан


Error 13: Invalid or unsupported executable format

Тут копировал содержимое ddr01-1908-i686.iso/ddr01/ в пустую папку ddr01 и никак не мог запуститься, постоянно Error 13. Все перепроверил, никак.
В итоге полностью все удалил, и копировал уже всю папку ddr01 из iso. Запустилось.

Это я вспомнил ситуации, когда при поддержке и помощи всего форума так и не смогли решить проблемы с Error 13 в нескольких темах.

upd. Т.к. проверял в qemu, то скорее всего это ‘шутки’ cache.

« Последнее редактирование: 08 Август 2019, 13:30:18 от krasnyh »


Записан


  • Печать

Страницы: [1]   Вверх

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Linux collect2 error ld returned 1 exit status
  • Linux bus error core dumped
  • Linux boot disk error
  • Linux apache2 error log
  • Linux acpi error ae not found

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии