online 1
gast (50)

/ Forum / Linux

LinuxLinux

Fragevon root-ls vom 18.03.2021, 15:02 Options

Lösung

Nach Installation von Ubuntu 8.10 Grub error18

Moin Moin,


Ich habe nun Ubuntu8.10 auf meinem alten Laptop über USB installiert. Den Stick habe ich über das Tool com!USB mit dem jeweiligen vorhandenen Images erstellt.

Nun nach dem neustart zeigt er mir dann:

Grub error 18

an. Wie und was kann ich nun machen, damit es endlich läuft ?


Antwort schreiben

Antwort 1 von Zemmel vom 18.03.2021, 15:20 Options

Moin!

Zitat:
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 on others.). In more practical terms this means the BIOS is unable to start executing the kernel because the kernel is not located within the block it can access at boot up time.

This can be circumvented by creating a boot partition at the beginning of the disk that is completely within the first 1023 cylinders of the harddrive. This partition will contain the kernel.

The kernel itself does not suffer from the same limitations as the BIOS so after the BIOS has loaded the kernel the kernel will have no problem accessing the whole harddrive. Newer BIOSes will automatically translate the harddrives size in a way that it can be completely contained within the first 1023 cylinders and hence modern computers do not suffer from this problem.
The same error can happen when the BIOS detects a disk in a different way as Linux does. This can happen when changing motherboards or when moving a GRUB-bootable disk from one computer to another. If this happens, just boot with a GRUB floppy, read the C/H/S numbers from the existing partition table and manually edit the BIOS numbers to match. If using a SUSE linux and installing on VM Ware this problem is solved by creating a small partition at the very beginning of the harddisc, and mounting it as /boot.

Quelle:
http://wiki.linuxquestions.org/wiki/GRUB#Error_18

Um der Sache auf den Grund zu gehen, müsstest du mal ein paar Infos rausrücken.
- was für ein Notebook? (und wie alt?)
- Was für eine Platte ist verbaut?
- Wie hast du sie bei der Installation partitioniert?

Als Workaround wird in dem oben verlinkten Wiki empfohlen, bei der Installation eine kleine Bootpartition (mounten als /boot) anzulegen, die komplett innerhalb der ersten 1024 Cylinder liegt.

Normalerweise würde ich vorschlagen, den Rechner mal mit einer Live-CD zu booten und die /boot/grub/menu.lst mal anzusehen.
Da du aber über USB installiert hast, gehe ich mal davon aus, dass der Rechner kein CD-Laufwerk hat.
(oder hast du ein Live-System auf dem Stick?)

Wie auch immer - sieht mir irgendwie danach aus, als müsstest du die Kiste noch mal installieren.

Gruß

Klaus

Antwort 2 von root-ls vom 18.03.2021, 15:29 Options

Also das Notebook ist ein Compaq Evo N400C ziemlich alt löl.
600Mhz hat das ding, 256 mbram

Die Festplatte ist ne hitmachi oder so

Installiert hab ich das ganze über den USB Stick - Live version !

Die Partitionierung sieht so aus:

Festplatte1 16000mb
SWAP - 256mb

die menu.lst schreib ich auch noch rein, wenn die weitere installation mal aus dem knick kommen würde

Antwort 3 von root-ls vom 18.03.2021, 16:38 Options

So, hier die menu.list:



# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default		0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout		3

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title		Windows 95/98/NT/2000
# root		(hd0,0)
# makeactive
# chainloader	+1
#
# title		Linux
# root		(hd0,1)
# kernel	/vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=b5cfc925-e145-4a0e-b8ce-4caef4552228 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=b5cfc925-e145-4a0e-b8ce-4caef4552228

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title		Ubuntu 8.10, kernel 2.6.27-7-generic
uuid		b5cfc925-e145-4a0e-b8ce-4caef4552228
kernel		/boot/vmlinuz-2.6.27-7-generic root=UUID=b5cfc925-e145-4a0e-b8ce-4caef4552228 ro quiet splash 
initrd		/boot/initrd.img-2.6.27-7-generic
quiet

title		Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid		b5cfc925-e145-4a0e-b8ce-4caef4552228
kernel		/boot/vmlinuz-2.6.27-7-generic root=UUID=b5cfc925-e145-4a0e-b8ce-4caef4552228 ro  single
initrd		/boot/initrd.img-2.6.27-7-generic

title		Ubuntu 8.10, memtest86+
uuid		b5cfc925-e145-4a0e-b8ce-4caef4552228
kernel		/boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST


So ähm und die festplatten belegung sieht so aus:

20 GB hat die Platte gesamt

Verteilt in:
18,2 GB Linux
rest swap

Antwort 4 von Wolfgang.S vom 18.03.2021, 16:49 Options

sind schon wichtige Daten oben? Ich hatte mal dasselbe Problem, nach einem Update von Ubuntu 8.4 auf 8.10... Ich habe dort neuinstalliert, aber wahrscheinlich kann man den Bootloader schon wieder auf Stand bringen ;) Ich fände es aber feiner, wenn man neuinstalliert...

mfg

Antwort 5 von root-ls vom 18.03.2021, 16:52 Options

Ähm wie oft den noch? Das den schon das achte mal. Immer wieder das selbe problem

Antwort 6 von Wolfgang.S vom 18.03.2021, 16:54 Options

achso... bei mir hat es dann funktioniert...
kann man da dann nicht einen anderen Bootloader installieren? z.B. Lilo, etc...

mfg

Antwort 7 von root-ls vom 18.03.2021, 16:57 Options

hm und wie funktioniert das ?

Antwort 8 von Wolfgang.S vom 18.03.2021, 17:06 Options

Ubuntu anfangen zu installieren und dann noch den Bootloader Lilo nachinstallieren...

mfg

Antwort 9 von Zemmel vom 18.03.2021, 17:20 Options

Hmmm...

Die menu.lst sieht soweit o.k. aus.

Aber die Partitionierung würde ich überdenken.
Ich vermute nämlich, dass (genau wie oben beschrieben) das Kernelimage außerhalb der vom BIOS erreichbaren Cylinder der Platte liegt, was den Error 18 erklären würde.

Um das bei einer Neuinstallation zu vermeiden würde ich anders partitionieren:
- Primäre Partition, 512 MB "/boot"
- Primäre Partition, 8 GB "/"
- Primäre Partition, 1 GB "swap"
- Erweiterte Partition, der Rest "/home"

Damit erreichst du:
- dass das Kernelimage am Anfang der Platte steht und
- dass Benutzerdaten automatisch auf einer separaten Partition liegen

Gruß

Klaus

Antwort 10 von Zemmel vom 18.03.2021, 17:21 OptionsLösung

Lösung
Nachtrag:

Spar dir Lilo.
Grub ist besser...

Gruß

Klaus

Antwort 11 von root-ls vom 18.03.2021, 17:51 Options

lol ich habe doch da drauf. Nur wie mach ich das nun, das er den Grub ausbessert oder so

Antwort 12 von Zemmel vom 18.03.2021, 17:59 Options

Zitat:
Nur wie mach ich das nun, das er den Grub ausbessert oder so

Der Bootloader dürfte in Ordnung sein, aber die Installation wohl nicht.
(hast du Antwort 1 gelesen?)

Da Grub nicht über die Möglichkeit verfügt, die Festplatte mit einem eigenen Treiber anzusprechen, ist er darauf angewiesen, das Kernelimage aus einem Bereich der Festplatte zu laden, der vom BIOS ansprechbar ist.
Offenbar liegt das Kernelimage aber außerhalb dieses Bereichs. Daher der Grub Error 18.

So wie ich das sehe, bleibt dir nur der Versuch einer Neuinstallation mit anderer Partitionierung (siehe oben).
Wenn du es schon 8x gemacht hast, kommt es auf ein neuntes Mal auch nicht mehr an. (und die Ubuntu-Installation läuft ja netterweise, wenn alle nötigen Angaben gemacht sind, total unbeaufsichtigt durch)

Gruß

Klaus

Antwort 13 von root-ls vom 18.03.2021, 18:04 Options

ok, und das würde heißen:

1. Partition /boot anlegen
2. Partition /ext2
3. Partition /SWAP

Stellt sich mir noch die Frage wie packe ich den Grub Loader da in das verzeichnis Boot ?

Antwort 14 von root-ls vom 18.03.2021, 18:15 Options

So nun aber xD

Wie folgt bin ich vorgegangen:

1. Gepard aufgerufen
2. Partition ausgewählt
und eine Reperatur durchgeführt

Neustart, der Pc läuft mit Ubuntu

Antwort 15 von _Basti_ vom 05.04.2021, 08:34 Options

Error 18 kann auch auftreten wenn die Partition einen Fehler, zum Beispiel in der Zuordnungstabelle, hat.

Wenn es vorher schon mit der gleichen Partitionierung funktioniert hat, einfach mal mit einer Live-CD starten und die Partition überprüfen und ggf. reparieren lassen.


Anmerkung:
Das Problem betrifft offensichtlich nicht nur Linux-Partitionen, sondern auch andere, zum Beispiel (wie in meinem Fall) Windows Installationen. Meine Windows-Partition (NTFS) überschritt schon immer die 1024-Zylinder-Grenze und das funktionierte auch tadellos...
...bis zum Dist-Upgrade auf Kubuntu 4.10 (bei dem noch allerhand mehr den Bach runter ging...)



Ich hoffe damit ist einigen geholfen, der Fehler scheint ja relativ häufig zu sein.

Gruß
Basti

PS:
Danksagungen werden wegen großer Zahllosigkeit nur noch maschinell verarbeitet und nicht mehr beantwortet. Dieser Vorgang wird selbstverständlich überwacht, bei Fragen dazu steht Herr Wolfgang S. gerne Rede und Antwort.

Ähnliche Themen

Probleme bei der Installation von Cinelerra-2.1 unter ubuntu
dercastor  13.02.2008 - 40 Hits - 2 Antworten

LinuxUbuntu7.10-Installation wie Grub wiederherstellen?
Thorwiese  27.02.2008 - 78 Hits - 1 Antwort

Windows und Ubuntu 8.10 - Windows nicht in Grub
felixg3  25.11.2008 - 63 Hits - 24 Antworten

Hinweis

Diese Frage ist schon etwas älter, Sie können daher nicht mehr auf sie antworten. Sollte Ihre Frage noch nicht gelöst sein, stellen Sie einfach eine neue Frage im Forum..

Neue Einträge

Version: supportware 1.9.150 / 10.06.2022, Startzeit:Mon Jan 26 01:23:17 2026