Grub Error 15, komische Menueintraege

Greenleon

Greenleon

Tripel-As
Morgen,

ich hab vorgestern ueber nacht mal wieder das OnlineUpdate durchgefuehrt. Als ich dann gestern mal wieder neugestartet hab kam Grub Error 15.

Na gut, dachte ich mir. Das Problem hatte ich schonmal. Allerdings schien es heute anders. Nach einigem gestoeber bin ich dann heute morgen darauf gestossen, dass er in der Liste Kernel 24-22 anzeigt. In der menu.lst steht allerdings nur 24-19. Ich frage mich, wo der seine Daten herholt? Gibt es noch irgendwie eine versteckte menu.lst? Ich kann daran so viel aendern wie ich will. Das interessiert den scheinbar gar nicht.

Zur Info: Ich hab eine seperate Boot-Partition.
hd0,0: Kopie von root (mit gparted-live erstellt)
hd0,2: root
hd0,3: boot

Meine Partitionen sind etwas merkwuerdig. Das liegt daran, dass ich erst noch MSWXP auf hd0 hatte. Jetzt hab ich im Laufe meiner Versuche den Error 15 zu fixen mal mit gparted und copy/paste eine Kopie erstellt. Hat aber nicht viel gebracht.

Jedenfalls hab ich mal die Grub Konsole per c geoeffnet und per Hand die Befehle mit dem richtigen Kernel und der richtigen initr eingegeben, glaube ich jedenfalls.

Trotzdem bootet er nicht gescheit, sondern ich lande in einer initrfs prompt.

Ich weiss echt nicht mehr weiter.

Gruss
Leon
 
grub

Hallo


Poste doch einfach die menu.lst und die fstab, ansonsetn findet keienr heir im Forum den Fehler.

Ich nimm an, beim update wurde due menu.lst geändert . Schau doch mal, obs noch menu.lst.bak gibt, korregiere die Kerneleinträge auf den jetzigen Kernel und kopiere die late menü.lst zurück.

Ixch hab immer ne Kopie der menu.lst in /home, als Sicherheit.

mfg
schwedenmann
 
hast du in der eingabe auch das richtige root-device (root=hda1 z.B.) angegeben als kernel-option? Das wär so das erste was mir einfällt. Wenn du deine Installation gebootet bekommst dann würd ich einfach ein grub-install auf die entsprechende Platte machen.
 
ja root=/dev/hda1 und root=/dev/hda3 hab ich beides probiert.

Naja ich bekomm das eben nicht bebootet. Ich bin immer nur mit Knoppix drin. Ich trau mich nicht mit knoppix ein grub-install zu machen, weil der noch hda benutzt und Ubuntu schon sda.

Das Problem ist ja, dass der nicht die Eintraege aus der menu.lst nimmt sondern irgendwelche anderen.

Die menu.lst~ hab ich schon geloescht, weil die uralt war. Was mich am meisten wundert ist ueberhaupt dieser initrfs prompt... Auch wenn ich per Grub-Shell boote. Ich schau mal, ob ich menu.lst irgendwie gepostet bekomme.

root@Knoppix:/mnt/hda4/grub# ls
default fat_stage1_5 menu.lst stage1
device.map installed-version minix_stage1_5 stage2
e2fs_stage1_5 jfs_stage1_5 reiserfs_stage1_5 xfs_stage1_5
root@Knoppix:/mnt/hda4/grub# cat menu.lst
# 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 10

## 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=66253fbd-1b5a-4774-bd7b-c8dc0a97e0ad ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,2)

## 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 locale=de_DE

## 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.04.1, kernel 2.6.24-19-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.24-19-generic root=/dev/hda1 ro quiet splash locale=de_DE
initrd /boot/initrd.img-2.6.24-19-generic
quiet

title Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=66253fbd-1b5a-4774-bd7b-c8dc0a97e0ad ro single
initrd /boot/initrd.img-2.6.24-19-generic

title Ubuntu 8.04.1, kernel 2.6.22-14-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=66253fbd-1b5a-4774-bd7b-c8dc0a97e0ad ro quiet splash locale=de_DE
initrd /boot/initrd.img-2.6.22-14-generic
quiet

title Ubuntu 8.04.1, kernel 2.6.22-14-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=66253fbd-1b5a-4774-bd7b-c8dc0a97e0ad ro single
initrd /boot/initrd.img-2.6.22-14-generic

title Ubuntu 8.04.1, memtest86+
root (hd0,2)
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

fstabs:
root@Knoppix:/# cat /mnt/hda1/etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0


#/dev/sda2 - swap
#/dev/sda2 none swap sw 0 0

#/dev/sda1 - /
/dev/sda1 / ext3 defaults,errors=remount-ro 0 1

#swap file
/var/cache/swap/swap0 none swap sw 0 0

#dev/sda4 - /boot
/dev/sda4 /boot ext3 defaults,error=remount-ro 0 1

/dev/hdc /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec 0 0

root@Knoppix:/# cat mnt/hda3/etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0


#/dev/sda2 - swap
/dev/sda2 none swap sw 0 0

#/dev/sda3 - /
/dev/sda3 / ext3 defaults,errors=remount-ro 0 1

#swap file
/var/cache/swap/swap0 none swap sw 0 0

#dev/sda4 - /boot
/dev/sda4 /boot ext3 defaults,error=remount-ro 0 1

/dev/hdc /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec 0 0

Hier nochmal der Inhalt meiner /boot-Partition

root@Knoppix:/mnt/hda4# ls
abi-2.6.22-14-generic initrd.img-2.6.22-14-generic memtest86+.bin
abi-2.6.24-19-generic initrd.img-2.6.22-14-generic.bak System.map-2.6.22-14-generic
config-2.6.22-14-generic initrd.img-2.6.24-19-generic System.map-2.6.24-19-generic
config-2.6.24-19-generic initrd.img-2.6.24-19-generic.bak vmlinuz-2.6.22-14-generic
grub lost+found vmlinuz-2.6.24-19-generic


Was ist jetzt los??
Ich hab mir nochmal den Inhalt von hda1 und hda3 angeschaut. Aus irgendeinem Grund gibt es dort noch ein /boot Verzeichnis, mit dem gleichen Inhalt von der Partition PLUS den neuen Kernel...

Was der Updater so alles macht...
Ich versuch mal das ganze mit root(hd0,0) zu booten
 
Zuletzt bearbeitet:
grub

Hallo


title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,3)
kernel /boot/vmlinuz-2.6.24-19-generic root=/dev/hda1 ro quiet splash locale=de_DE
initrd /boot/initrd.img-2.6.24-19-generic
quiet


ich würde mal das /boot in der Kernel und der initrd.img rausnehmen

Also /vmlinuz...blablabla


Du kannst auch (hd0,3)/vmlinuz.... schreiben

root=/dev/hda1 oder root=/dev/sda1 mußt du ausprobieren, bei mir steht, obwohl 2.6.26 noch hda..

mfg
schwedenmann
 
So,
naja, habs geloest.
Der hat die ganze Zeit den /boot Ordner aus hda1 genommen. Keine Ahnung warum da einer war. Allerdings stand dort in der fstab noch root (hd0,3) und vor dem vmlinuz KEIN boot.

Muss man erstmal drauf kommen, dass der Updater einfach meine boot-Partition kopiert und erweitert und seinen Schabernack mit der Menu.lst treibt.

Naja, ich hab jetzt beim booten einfach root (hd0,0) eingegeben und vor das vmlinuz und initrd noch ein /boot/ geschrieben - funktioniert.

Danke an alle!

Gruss
Leon
 

Ähnliche Themen

Problem mit Apache2 + MySQL Server

grub error 2

[HowTo] Debian Installation mit Installer über SSH

Grub Error 17 aber mit md0 (Softraid1)

System nach Neustart --> Grub Error 15...

Zurück
Oben