Сайт | Скачать | Видео | Wiki

Автор Тема: GRUB error codes  (Прочитано 19043 раз)

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

Оффлайн Zloy_T

  • Почетный участник
  • Старожил
  • *
  • Сообщений: 326
  • Репутация: +74/-2
  • Автор темы
GRUB error codes
« : 23 Июнь 2009, 19:54:56 »
пока сюда положу, надо как-нибудь перевести

GRUB error codes


Загрузка Grub, пожалуйста, подождите...

Код
Ситуация
GRUB loading stage 1.5
GRUB loading, please wait...


Система останавливается после вывода этого сообщения. При попытке загрузки с дискеты grub проблема исчезает.
Решение

Согласно The_Bell, вы могли бы изменить порядок загрузки в вашем BIOS.

Уберите в BIOS первоочередную загрузку с дискеты.

penetrode написал, что такое поведение также может быть вызвано неправильной установкой CFLAGS. Несмотря на то, что текущий ebuild grub фильтрует -fstack-protector, хуже не будет, если перекомпилировать grub с чистыми CFLAGS, когда ничего другое не помогает.
Код
# CFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe" emerge grub


ERRORS REPORTED BY THE STAGE 1[/b]
The general way that the Stage 1 handles errors is to print an error string and then halt. Pressing CTRL-ALT-DEL will reboot.




The following is a comprehensive list of error messages for the Stage 1:
"Hard Disk Error"
This error message will occur if the Stage 2 or Stage 1.5 is being read from a hard disk, and the attempt to determine the size and geometry of the hard disk fails.
"Floppy Error"
This error message will occur if the Stage 2 or Stage 1.5 is being read from a floppy disk, and the attempt to determine the size and geometry of the floppy disk fails. It's listed as a different error since the probe sequence is different than for hard disks.
"Read Error"
This error message will occur if a disk read error happens while trying to read the Stage 2 or Stage 1.5.
"Geom Error"
This error message will occur if the location of the Stage 2 or Stage 1.5 is not in the area supported by reading the disk with the BIOS directly. This could occur because the BIOS translated geometry has been changed by the user or the disk is moved to another machine or controller after installation, or GRUB was not installed using itself (if it was, the Stage 2 version of this error would have been seen during that process and it would not have completed the install).

ERRORS REPORTED BY THE STAGE 1.5

The general way that the Stage 1.5 handles errors is to print an error number in the form "Error: " and then halt. Pressing Ctrl-Alt-Del will reboot.

The error numbers correspond to the Errors Reported by the Stage 2 in the listed sequence.

ERRORS REPORTED BY THE STAGE 2

The general way that the Stage 2 handles errors is to abort the operation in question, print an error string, then (if possible) either continue based on the fact that an error occurred or wait for the user to deal with the error.

The following is a comprehensive list of error messages for the Stage 2 (error numbers for the Stage 1.5 are listed before the colon in each description):
Error 1 : Filename must be either an absolute filename or blocklist
This error is returned if a file name is requested which doesn't fit the syntax/rules listed in the Filesystem.
Error 2 : Bad file or directory type
This error is returned if a file requested is not a regular file, but something like a symbolic link, directory, or FIFO.
Error 3 : Bad or corrupt data while decompressing file
This error is returned if the run-length decompression code gets an internal error. This is usually from a corrupt file.
Error 4 : Bad or incompatible header in compressed file
This error is returned if the file header for a supposedly compressed file is bad.
Error 5 : Partition table invalid or corrupt
This error is returned if the sanity checks on the integrity of the partition table fail. This is a bad sign.
Error 6 : Mismatched or corrupt version of stage1/stage2
This error is returned if the install command points to incompatible or corrupt versions of the stage1 or stage2. It can't detect corruption in general, but this is a sanity check on the version numbers, which should be correct.
Error 7 : Loading below 1MB is not supported
This error is returned if the lowest address in a kernel is below the 1MB boundary. The Linux zImage format is a special case and can be handled since it has a fixed loading address and maximum size.
Error 8 : Kernel must be loaded before booting
This error is returned if GRUB is told to execute the boot sequence without having a kernel to start.
Error 9 : Unknown boot failure
This error is returned if the boot attempt did not succeed for reasons which are unknown.
Error 10 : Unsupported Multiboot features requested
This error is returned when the Multiboot features word in the Multiboot header requires a feature that is not recognized. The point of this is that the kernel requires special handling which GRUB is probably unable to provide.
Error 11 : Unrecognized device string
This error is returned if a device string was expected, and the string encountered didn't fit the syntax/rules listed in the Filesystem.

---------

Error 12 : Invalid device requested
This error is returned if a device string is recognizable but does not fall under the other device errors.


Ошибка Grub 12

Ситуация
12 : Invalid device requested.


Эта ошибка выдается, если синтаксис команд верен, и несмотря на это происходит ситуация, не описанная в других ошибках.

Решение

Запускали ли вы две приведенные ниже строки, когда установливали grub в свою загрузочную запись интерактивными командами?
Код
grub> root (hd0,0)
grub> setup (hd0)

Вместо (hd0,0) должен быть указан ваш загрузочный раздел, а вместо (hd0) — выбранный жесткий диск. Помните, что (hd0) устанавливает начальный загрузчик в главную загрузочную запись (MBR) первого жесткого диска (первичный ведущий — primary master).

-----------

Error 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).
Error 14 : Filesystem compatibility error, cannot read whole file
Some of the filesystem reading code in GRUB has limits on the length of the files it can read. This error is returned when the user runs into such a limit.

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

Error 15 : File not found
This error is returned if the specified file name cannot be found, but everything else (like the disk/partition info) is OK.

Ошибка Grub 15

Cитуация

Эта ошибка может возникать на двух различных этапах настройки GRUB: во время начальной настройки (при установке в главную загрузочную запись), и после загрузки системы при попытке запустить Linux (или любой другой раздел).
Код
grub> root (hd0,0)
 Filesystem type is xfs, partition type 0x83

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... no

Error 15: File not found

Код
Booting 'gentoo Linux'

root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel (hd0,0)/boot/kernel-2.4.20 root=/dev/hda3 vga=792

Error 15: File not found
Press any key to continue...


Решение: проблема при начальной настройке

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

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

Чтобы выяснить точное имя вашего ядра, загрузитесь с установочного компакт-диска и смонтируйте свой корневой раздел (root), а при необходимости и загрузочный раздел (boot). Потом переключитесь (chroot) в свою систему Gentoo и выведите на экран список имеющихся файлов, чтобы увидеть доступные образы ядер:
Код
# cd /boot
# ls
# make


Это перечислит все ядра на вашем загрузочном разделе. Если ваше ядро отсутствует, обеспечьте, чтобы оно было скомпилировано (с помощью genkernel или вручную):
Код
# cd /usr/src/linux/
# make menuconfig


А так его скопировать в загрузочный раздел:
Код
# cp /usr/src/linux/arch/i386/boot/bzImage /boot


Проверьте, что имя ядра точно совпадает с указанным в файле grub.conf. Также, убедитесь, что строчка kernel в вашем файле grub.conf (menu.lst) явно или неявно указывает на нужный раздел.

Еще замечена ошибка, когда BIOS игнорирует диск, на котором находится ядро или стадии grub. Кроме того, на разделе, на котором grub хранит свои стадии, не должна использоваться настройка программного RAID-5 (или другой технологии деления на полосы).

Решение: проблема загрузки раздела

Прежде всего, убедитесь в правильности используемых строк root и setup.

Если вы уверены, что они правильные, тогда возможно, вы используете дефектную версию GRUB (0.93.20031222). Обновите свое дерево портежей или замаскируйте эту версию grub:
(Выполните это из изолированной среды)
Код
# echo "=sys-boot/grub-0.93.20031222" >> /etc/portage/package.mask
# emerge grub -p


Также можно попробовать сценарий grub-install, как рекомендовано авторами GRUB:
(Параметр --root-directory необходим, если вы используете отдельный
загрузочный раздел. В других случаях его следует опустить)
Код
# grub-install --root-directory=/boot /dev/hda


Если ничего из этого не помогает, возможно, ваш раздел поврежден. Проверьте раздел на наличие ошибок:
(Убедитесь, что загрузочный раздел, здесь /dev/hda1, не смонтирован)
Код
# fsck -y /dev/hda1

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



Error 16 : Inconsistent filesystem structure
This error is returned by the filesystem code to denote an internal error caused by the sanity checks of the filesystem structure on disk not matching what it expects. This is usually caused by a corrupt filesystem or bugs in the code handling it in 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.

Ошибка Grub 17

Ситуация
Код
root (hd0,0)
filesystem type unknown partition type 0x7

Error 17 : Cannot mount selected partition


Решение

Эта ошибка выдается, если требуемый раздел существует, но тип файловой системы не опознается GRUB.

Убедитесь в правильности настройки root(x,y) в своем grub.conf.

Кроме того, если вы пытаетесь загрузить Windows, обеспечьте, чтобы в вашем файле grub.conf были строки root (hdX,Y) (или rootnoverify (hdX,Y)) и chainloader (hdX,Y)+1.

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

Error 18 : Selected cylinder exceeds maximum supported by BIOS
This error is returned when a read is attempted at a linear block address beyond the end of the BIOS translated area. This generally happens if your disk is larger than the BIOS can handle (512MB for (E)IDE disks on older machines or larger than 8GB in general).


Ошибка Grub 18

Ситуация
Код
kernel (hd1,4)/bzImage root=/dev/hdb7

Error 18: Selected cylinder exceeds max supported by BIOS


Решение

Эта ошибка возникает при попытке чтения по линейному адресу блока за пределами транслируемой BIOS области. Обычно это случается, если размер вашего диска больше, чем BIOS может обработать (512МБ для дисков IDE на старых компьютерах, или больше 8ГБ вообще).

Попробуйте обновить свой BIOS и/или перенести загрузочный раздел в начало (или хотя бы в пределы соответствующей области).

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

Error 19 : Linux kernel must be loaded before initrd
This error is returned if the initrd command is used before loading a Linux kernel.
Error 20 : Multiboot kernel must be loaded before modules
This error is returned if the module load command is used before loading a Multiboot kernel. It only makes sense in this case anyway, as GRUB has no idea how to communicate the presence of such modules to a non-Multiboot-aware kernel.
Error 21 : Selected disk does not exist
This error is returned if the device part of a device- or full file name refers to a disk or BIOS device that is not present or not recognized by the BIOS in the system.
Error 22 : No such partition
This error is returned if a partition is requested in the device part of a device- or full file name which isn't on the selected disk.
Error 23 : Error while parsing number
This error is returned if GRUB was expecting to read a number and encountered bad data.
Error 24 : Attempt to access block outside partition
This error is returned if a linear block address is outside of the disk partition. This generally happens because of a corrupt filesystem on the disk or a bug in the code handling it in GRUB (it's a great debugging tool).
Error 25 : Disk read error
This error is returned if there is a disk read error when trying to probe or read data from a particular disk.
Error 26 : Too many symbolic links
This error is returned if the link count is beyond the maximum (currently 5), possibly the symbolic links are looped.
Error 27 : Unrecognized command
This error is returned if an unrecognized command is entered on the command-line or in a boot sequence section of a configuration file and that entry is selected.
Error 28 : Selected item cannot fit into memory
This error is returned if a kernel, module, or raw file load command is either trying to load its data such that it won't fit into memory or it is simply too big.
Error 29 : Disk write error
This error is returned if there is a disk write error when trying to write to a particular disk. This would generally only occur during an install of set active partition command.
Error 30 : Invalid argument
This error is returned if an argument specified to a command is invalid.
Error 31 : File is not sector aligned
This error may occur only when you access a ReiserFS partition by block-lists (e.g. the command install). In this case, you should mount the partition with the `-o notail' option.
Error 32 : Must be authenticated
This error is returned if you try to run a locked entry. You should enter a correct password before running such an entry.
Error 33 : Serial device not configured
This error is returned if you try to change your terminal to a serial one before initializing any serial device.
Error 34 : No spare sectors on the disk
This error is returned if a disk doesn't have enough spare space. This happens when you try to embed Stage 1.5 into the unused sectors after the MBR, but the first partition starts right after the MBR or they are used by EZ-BIOS.

-------

7.  GRUB GRUB GRUB GRUB GRUB ...

Ситуация
Код
GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB
  GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB
...


Решение

Согласно этой теме, это может быть вызвано автоматическим определением дисков вашим BIOS. Попробуйте установить в BIOS тип диска User Type HDD.

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


8.  Опрос устройств для поиска дисков, обслуживаемых BIOS. Может занять длительное время.

Ситуация

При попытке установки grub зависает, выдав следующую строку:
Код
# grub
Probing devices to guess BIOS drives. This may take a long time.


Решение

Одной названной причиной была экзотическая конфигурация дисков, типа установки на одном шлейфе дисков ультра/не-ультра DMA.

9.  При установке Grub он просто зависает

Ситуация

При установке grub зависает:
Код
# grub
(на этом установка останавливается)

Решение

Если у вас нет привода для дискет, указали ли вы параметр --no-floppy?
Код
# grub --no-floppy


10.  Распаковка Linux...выполнено, загрузка ядра.

Ситуация

Систем зависает после вывода следующей строки:
Код
Uncompressing Linux... Ok, booting the kernel.


Решение

Строго говоря, это не ошибка Grub. Одна из возможных причин — неверная работа ACPI, при включенной поддержке в ядре. Попробуйте отключить его в своем BIOS или ядре.

11.  Grub просто выдает свою командную строку

Ситуация

При загрузке системы выводится командная строка grub вместо списка вариантов загрузки, определенного в вашем файле grub.conf.

Решение

Смонтируйте свой загрузочный раздел и убедитесь в существовании файла grub/grub.conf.
Код
# mount /dev/hda1 /mnt/gentoo/boot
# cat /mnt/gentoo/boot/grub/grub.conf

Так же удостоверьтесь, что символьная ссылка menu.lst существует:
Код
# ls -l /mnt/gentoo/boot/grub/menu.lst
lrwxrwxrwx  1 root root 9 Mar  7 14:00 /mnt/gentoo/boot/grub/menu.lst -> grub.conf

Если нет, заново создайте ее:
Код
# cd /mnt/gentoo/boot/grub
# ln -snf grub.conf menu.lst


Если необходимо, переустановите grub:
(запускайте изнутри изолированной среды (chroot) )
Код
# grub-install --root-directory=/boot /dev/hda


12.  Невозможно обнаружить устройство для /boot/boot: отсутствует или не блочное устройство

Ситуация

При запуске grub-install в процессе установки GRUB выдается следующая ошибка:
Код
# grub-install --root-directory=/boot /dev/hda
Could not find device for /boot/boot: not found or not a block device


Решение

Убедитесь, что вы не забыли следующее:
Код
# cp /proc/mounts /etc/mtab


13.  После нажатия на ENTER в меню Grub система перезагружается

Ситуация

При загрузке после нажатия на ENTER в меню Grub система перезагружается.

Решение

Попробуйте отключить поддержку кадрового буфера в своем ядре. Если это не поможет, отключите APM и ACPI.

14.  После нажатия на ENTER в меню Grub экран становится чистым

Ситуация

Во время загрузки, после нажатия клавиши ENTER в меню Grub экран очищается, но система отзывается (например, можно помигать светодиодом клавиши numlock).

Решение

Отключите кадровый буфер (обычно требуется удалить запись vga=XYZ из файла grub.conf) и проверьте выбранную архитектуру процессора в конфигурации ядра.

15.  Исчезновение картинки Grub

Ситуация

При загрузке системы вы лишены нарядной заставки Gentoo.

Решение

Прежде всего, проверьте, существует ли файл заставки, указанный в вашем grub.conf. Если причина в этом — проверьте сценарий ebuild grub. Возможно, заставочная картинка в используемой версии закомментирована.

16.  Отказ при загрузке Windows со второго жесткого диска

Ситуация

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

Решение

cyrillic сообщает нам, что можно «отобразить» (map) ваши диски в другом порядке, изменив запись для Windows в файле grub.conf таким образом:
Код
title Windows XP
  map (hd0) (hd1)
  map (hd1) (hd0)
  chainloader (hd1,0)+1


17.  При попытке установить Grub появляется ошибка сегментации

Ситуация

Ситуация, описанная ниже, касается только grub-0.95.x в момент установки Grub в загрузочный сектор.
Код
grub> root (hd0,0)
grub> setup (hd0)
Segmentation fault

Решение

Ошибка, вызывающая данную проблему, известна и исправлена в grub версии 0.96. Также известно, что grub 0.94 r1 и grub 0.94 r2 должны работать правильно. Если и они дают сбой, можно попытаться установить grub-static, который на текущий момент стабилен на amd64 и нестабилен на x86 (~x86). Для получения дополнительно информации обратитесь к ошибке #79378.
« Последнее редактирование: 15 Июнь 2010, 21:28:47 от RulllJazzz »