6.4k Aufrufe
Gefragt in Linux von root-ls Einsteiger_in (79 Punkte)
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 ?

15 Antworten

0 Punkte
Beantwortet von zemmel Experte (3.2k Punkte)
Moin!

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:
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
0 Punkte
Beantwortet von root-ls Einsteiger_in (79 Punkte)
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
0 Punkte
Beantwortet von root-ls Einsteiger_in (79 Punkte)
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
0 Punkte
Beantwortet von Experte (1.5k Punkte)
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
0 Punkte
Beantwortet von root-ls Einsteiger_in (79 Punkte)
Ähm wie oft den noch? Das den schon das achte mal. Immer wieder das selbe problem
0 Punkte
Beantwortet von Experte (1.5k Punkte)
achso... bei mir hat es dann funktioniert...
kann man da dann nicht einen anderen Bootloader installieren? z.B. Lilo, etc...

mfg
0 Punkte
Beantwortet von root-ls Einsteiger_in (79 Punkte)
hm und wie funktioniert das ?
0 Punkte
Beantwortet von Experte (1.5k Punkte)
Ubuntu anfangen zu installieren und dann noch den Bootloader Lilo nachinstallieren...

mfg
0 Punkte
Beantwortet von zemmel Experte (3.2k Punkte)
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
0 Punkte
Beantwortet von zemmel Experte (3.2k Punkte)
Nachtrag:

Spar dir Lilo.
Grub ist besser...

Gruß

Klaus
...