View previous topic :: View next topic |
Author |
Message |
mozart. n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 04 Aug 2006 Posts: 3
|
Posted: Fri Aug 04, 2006 9:58 am Post subject: kernel panic + grub probleme [solved] |
|
|
Hi,
Ich bin gerade dabei gentoo zu installieren und habe probleme mit
grub und "dadurch?" eine Kernel panic dazu gleich mehr....
Kernel ist 2.6 die aktuellen kernel-source, sorry nummer habe ich jetzt vergessen rauszuschrieben
grub das gleiche der aktuelle aus dem portage
gen2too live cd 2006.0
alles die letzten tage von den servern
kann aber die versionsnummern noch rausschreiben wenns gewünscht wird.
meine Festplattenaufteilung
Code: |
Master... erster IDE Controller
hda1 = C - Windows
hda2 = NTFS - Daten
hda3 = NTFS - Daten
-----
Salve ... erster IDE Controller
hdb1 = /boot - ext
hdb2 = swap
hdb3 = / - reiser fs
hdb4 = Logisch
hdb5 = Fat32 - Daten
|
in der grub shell hab ich mit
setup (hd0) grub im MBR der ersten Festplatte installiert, stimmt das?
und mit root(1,0) die boot partition angegeben, stimmt das?
meine grub.conf
Wenn ich das splashimge auskommentiere dann sehe ich kein grubmenu mehr und ich sehe nicht was ich boote
eigentlich müste der pfad doch stimmen. Was ist falsch?
Wenn ich kernel mit fb nehme sagt er mir das ich einen falschen viedomode angegeben habe macht aber weiter
was aber erstmal nicht so schlimm ist kann auch ohne fb leben.
Code: |
#Was als standart gebootet, wird erster eintrag = 0, 2ter eintrag = 1, usw.
default 1
#Wartezeit bis default gebootet wird
timeout = 30
#Grub Bootimage
#splashimage=(hd1,0) /boot/grub/splash.xpm.gz
#Gentoo mit FB | 0
#title Gentoo FB 1024x768 @ 32 | test 1
#root (hd1,0)
#kernel /boot/kernel_1_fb root=/dev/hdb3 video=vesafb:mtrr:3,ywrap,1024x768-32@60
#Gentoo mit FB | 1
#title Gentoo FB 800x600 @ 32 | test 1
#root (hd1,0)
#kernel /boot/kernel_1_fb root=/dev/hdb3 video=vesafb:mtrr:3,ywrap,800x600-32@60
#Gentoo ohne FB | 2
title Gentoo ohne FB| test 1
root (hd1,0)
kernel /boot/kernel_1 root=/dev/hdb3
#Windows XP | 3
title = Windows Xp
rootnoverify (hd0,0)
makeactive
chainloader +1
|
aber fb und splash ein oder aus ich bekomme immer eine kernelpanik...
Code: |
NET: Registered protocol family 1
NET: Registered protocol family 17
Using IPI Shortcut mode
attemp to access beyond end of device
hda2 rw=16, want=8,limit=2
kernel panic - not syncing: I/O error reading memory image
|
was will der überhaupt von hda2?
und was will der überhaupt?
meine fstab
Code: |
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hdb1 /boot ext2 noauto,noatime 1 2
/dev/hdb3 / reiserfs noatime 0 1
/dev/hdb2 none swap sw 0 0
#/dev/hdb5 /mnt/winvol vfat defaults,user,rw
#/dev/cdroms/cdrom0 /mnt/dvd auto noauto,user 0 0
#/dev/cdroms/cdrom1 /mnt/dvdr auto noauto,user 0 0
#/dev/fd0 /mnt/floppy auto noauto,user,rw 0 0
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
none /dev/shm tmpfs nodev,nosuid,noexec 0 0
|
Ich hoffe ihr könnt helfen
Danke
Last edited by mozart. on Sat Aug 05, 2006 10:49 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
schmutzfinger Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/12992294553fc7612a902c7.jpg)
Joined: 26 Oct 2003 Posts: 1287 Location: Dresden/Germany
|
Posted: Fri Aug 04, 2006 9:35 pm Post subject: |
|
|
Also das ist alles bissel viel auf einmal, ich habe es jetzt auch nur kurz überflogen. Aber wenn du irgendwie einen kernel zum booten bekommst und der ne kernel panic macht, dann stimmt mit dem kernel was nicht. Um sowas wie splash kannst du dich kümmern wenn es erst einmal läuft. Also nimm die grub config mit der du den kernel zum booten bekommst und boote damit nen anderen kernel. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Mr.Big Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/13851306544413fbb6c1950.jpg)
Joined: 10 Apr 2002 Posts: 424 Location: Königswartha / Germany
|
Posted: Fri Aug 04, 2006 9:45 pm Post subject: Re: kernel panic + grub probleme |
|
|
mozart. wrote: |
kann aber die versionsnummern noch rausschreiben wenns gewünscht wird.
|
Viel interessanter ist mit was sich der Kernel verabschiedet??
Also, poste mal was so alles auf dem Bildschirm steht bevor er abnippelt!
Wie schnutzfinger schon sagt um nen Kernel abzuschiessen musst Du ihn ja erst mal starten.
Ergo scheint Dein Grub schon mal zu laufen. Fehler liegt sicherlich im Kernel.
Hast Du reiserfs fest im Kernel!!!!
J. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dmaus n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/150485528044f205e13d109.png)
Joined: 15 Mar 2006 Posts: 69
|
Posted: Sat Aug 05, 2006 7:37 am Post subject: |
|
|
hier:
http://www.linuxquestions.org/questions//showthread.php?t=463272
bin ich auf folgendes gestoßen:
Quote: |
Hey,
I came across your question when searching on google.
Then answer is:
CONFIG_PM_STD_PARTITION="/dev/hda2"
You need to match that to your /boot partition
Then you should be fine.
Regards,
HushPe
|
CONFIG_PM_STD_PARTITION findest du in der Kernelconfiguration unter "Power Management Options" => "Software Suspend"
Vielleicht ist's das ja |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
freigeist Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/18781324754498dc38ef20b.png)
Joined: 26 Jan 2004 Posts: 338 Location: Cologne, Germany
|
Posted: Sat Aug 05, 2006 8:48 am Post subject: Re: kernel panic + grub probleme |
|
|
mozart. wrote: |
<-snip->
Code: |
#Was als standart gebootet, wird erster eintrag = 0, 2ter eintrag = 1, usw.
default 1
#Wartezeit bis default gebootet wird
timeout = 30
#Grub Bootimage
#splashimage=(hd1,0) /boot/grub/splash.xpm.gz
#Gentoo mit FB | 0
#title Gentoo FB 1024x768 @ 32 | test 1
#root (hd1,0)
#kernel /boot/kernel_1_fb root=/dev/hdb3 video=vesafb:mtrr:3,ywrap,1024x768-32@60
#Gentoo mit FB | 1
#title Gentoo FB 800x600 @ 32 | test 1
#root (hd1,0)
#kernel /boot/kernel_1_fb root=/dev/hdb3 video=vesafb:mtrr:3,ywrap,800x600-32@60
#Gentoo ohne FB | 2
title Gentoo ohne FB| test 1
root (hd1,0)
kernel /boot/kernel_1 root=/dev/hdb3
#Windows XP | 3
title = Windows Xp
rootnoverify (hd0,0)
makeactive
chainloader +1
|
<- snip ->[/code]
Ich hoffe ihr könnt helfen
Danke |
Das stimmt einiges mit deiner boot partition nicht. Da dein /boot nicht ein Verzeichnis auf hdb3 sondern einen eigene Partition ist, darfst du das boot Verzeichiss nicht in grub mitangeben:
Code: |
splashimage=(hd1,0) /boot/grub/splash.xpm.gz
|
ändern zu:
Code: |
splashimage=(hd1,0)/grub/splash.xpm.gz
|
und kernel zeile ändern (inkl. ro hinzufügen):
Code: |
kernel (hd1,0)/kernel_1 ro root=/dev/hdb3
|
_________________ Elfenbeinturm.cc
a metaphysical space of solitude and sanctity: http://www.elfenbeinturm.cc |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
schmutzfinger Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/12992294553fc7612a902c7.jpg)
Joined: 26 Oct 2003 Posts: 1287 Location: Dresden/Germany
|
Posted: Sat Aug 05, 2006 9:38 am Post subject: Re: kernel panic + grub probleme |
|
|
freigeist wrote: |
und kernel zeile ändern (inkl. ro hinzufügen):
Code: |
kernel (hd1,0)/kernel_1 ro root=/dev/hdb3
|
|
Das dürfte kein Problem darstellen. Wenn man eine extra boot Partition hat dann sollte darin ein symlink "boot -> ." sein. Zumindest ist das bei mir so, der wurde wohl von portage beim grub installieren erstellt.
Das heisst es spielt keine Rolle wie oft da boot steht.
Code: |
root (hd1,0)
kernel /boot/boot/boot/boot/kernel_1 root=/dev/hdb3
|
sollte also auch funktionieren. Ohne diesen symlink könnte man den grub garnicht installieren weil die stages aus (root 1,0)/boot/grub/ kommen und grub auch dort die grub.conf bzw. menu.lst sucht. Wenn der grub läuft dann hat die Installation der stage1 und der fsstages schonmal geklappt und wenn man die Einträge auswählen kann dann wurde auch die config richtig gelesen.
Also das Hauptproblem ist irgendwo im kenel. Die anderen Probleme können wir ja hier auch noch besprechen wenn erstmal ein kernel da ist mit dem die Kiste überhaupt läuft.
Divide & Conquer ![Wink ;)](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
freigeist Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/18781324754498dc38ef20b.png)
Joined: 26 Jan 2004 Posts: 338 Location: Cologne, Germany
|
Posted: Sat Aug 05, 2006 10:03 am Post subject: |
|
|
das mit dem memory image...nutzt du suspend2 oder suspend in der kernel config und hast da /dev/hda2 als resume partition angegeben? Wenn ja, dann wolltest du vermutlich deine swap partition /dev/hdb2 eintragen... _________________ Elfenbeinturm.cc
a metaphysical space of solitude and sanctity: http://www.elfenbeinturm.cc |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mozart. n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 04 Aug 2006 Posts: 3
|
Posted: Sat Aug 05, 2006 10:46 am Post subject: |
|
|
Hi Danke für die Hilfe
der Post von dmaus hat weitergeholfen
muste bei CONFIG_PM_STD_PARTITION="/dev/hda2 meine root partition reinschreiben
Das mit dem /boot weg werde ich versuchen
aber wenn es das problem beim splash wäre dürfe er den kernel
ja eigentlich auch nicht finden, trotzdem .... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mozart. n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 04 Aug 2006 Posts: 3
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|