Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grub startet nur in die "grub shell" [gelöst]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
astaecker
Guru
Guru


Joined: 28 Apr 2003
Posts: 403
Location: Hamburg / Germany

PostPosted: Mon Mar 07, 2005 10:59 am    Post subject: grub startet nur in die "grub shell" [gelöst] Reply with quote

Moin,
ich habe letztens unter Windows meine Partitionen neu sortiert und dabei ist natürlich grub über den Jordan gegangen. Naja, mit einer LiveCD ist grub schnell wieder installiert worden.
Nun, jetzt kommt grub aber nur noch bis zu seiner eigenen Kommandozeile.

Ich habe schon reichlich gesucht (wahrscheinlich mangels passender Suchworte), aber keine Lösung gefunden. So hieß es, dass dies an einem Syntax-Fehler in der grub.conf liegen könnte, aber selbst eine minimal zusammengestuzte grub.conf konnte nicht helfen:
Code:

default=0
timeout=10
title Gentoo Linux: Stable - nitro-sources 2.6.10-r2
root (hd0,2)
kernel /Kernel-2.6.10-nitro2 root=/dev/hda6


Allerdings kann ich die gleichen Zeilen in der grub shell eingeben und dann bootet weiter. Auch Lilo funzt, ist aber nur ein magerer Ersatz zu grub.

Die Installation von grub scheint mir ohne Fehler verlaufen zu sein, siehe grub-emerge.log. Es macht auch keinen Unterschied, ich 0.96, 095 oder 0.94 verwende.
Eingerichtet habe ich grub entsprechend dem Gentoo Handbuch, was auch ohne Fehler verlaufen ist.

Ich weiß nicht mehr weiter und hoffe auf eure Hilfe.


Last edited by astaecker on Mon Mar 07, 2005 2:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
zielscheibe
l33t
l33t


Joined: 02 Apr 2004
Posts: 804
Location: Aachen

PostPosted: Mon Mar 07, 2005 11:05 am    Post subject: Reply with quote

Hi,

Wie hast du Grub eingerichtet?

so?
Code:

grub
>root (hd0,2)
>setup (hd0)
>quit

Mir scheint, daß Grub beim Installieren in den MBR nicht mit der Stage2 "bekannt" gemacht worden ist.
Back to top
View user's profile Send private message
Albena
n00b
n00b


Joined: 11 Oct 2004
Posts: 32

PostPosted: Mon Mar 07, 2005 11:19 am    Post subject: Reply with quote

Du gibst diese Einstellungen von Grub an:

default=0
timeout=10
title Gentoo Linux: Stable - nitro-sources 2.6.10-r2
root (hd0,2)
kernel /Kernel-2.6.10-nitro2 root=/dev/hda6

das root-filesystem liegt nach der Angabe auf /dev/hda3 (root (hd0,2) ). In der Kernelzeile liegt das rootfilesystem aber auf root=/dev/hda6

Da passt schon mal was nicht richtig zusammen.

Gruß Albena
Back to top
View user's profile Send private message
astaecker
Guru
Guru


Joined: 28 Apr 2003
Posts: 403
Location: Hamburg / Germany

PostPosted: Mon Mar 07, 2005 11:19 am    Post subject: Reply with quote

Nee, ich habe es so gemacht:
Code:

cp /proc/mounts /etc/mtab
grub-install --root-directory=/boot /dev/hda


Aber ich werde mal die andere Methode testen. Danke.
Back to top
View user's profile Send private message
astaecker
Guru
Guru


Joined: 28 Apr 2003
Posts: 403
Location: Hamburg / Germany

PostPosted: Mon Mar 07, 2005 11:30 am    Post subject: Reply with quote

Zielscheibe:
Funzt leider auch nicht.

Albena
Soweit ich es verstanden habe, definiert man erstmal mit dem ersten "root=" die Partition, auf der sich das Kernel-Image befindet. Und dann in der kernel-Zeile gibt man mit dem zweiten "root=" die wirkliche root-Partition an.
Zumindestens entspricht dies dem Gentoo Handbuch und es hat auch so bei mir bisher funktioniert.
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2953
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Mon Mar 07, 2005 11:56 am    Post subject: Reply with quote

Vielleicht fehlt da ein symlink von boot auf sich selbst, wenn /boot in einer anderen Partition als / sich befindt.

Code:

$ su -
$ cd /boot
$ ln -fs . boot

_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
mrsteven
Veteran
Veteran


Joined: 04 Jul 2003
Posts: 1939

PostPosted: Mon Mar 07, 2005 1:07 pm    Post subject: Reply with quote

Hast du eine Datei "menu.lst" im /boot-Verzeichnis rumliegen? Sollte normalerweise ein Link auf grub.conf sein. Eventuell mag er auch den Doppelpunkt in deiner title-Zeile nicht.:?
Back to top
View user's profile Send private message
astaecker
Guru
Guru


Joined: 28 Apr 2003
Posts: 403
Location: Hamburg / Germany

PostPosted: Mon Mar 07, 2005 2:09 pm    Post subject: Reply with quote

Pablo hat den Vogel abgeschossen. Danke.

Es gab zwar ein Unterverzeichnis "boot" mit einem weiteren Unterverzeichnis "grub", die wohl auch von der grub Installation erstellt sein müssen, aber das hat offenbar nicht ausgereicht.

Jetzt geht, vielen Dank an alle.
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2953
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Mon Mar 07, 2005 6:44 pm    Post subject: Reply with quote

arlsair wrote:
Pablo hat den Vogel abgeschossen. Danke.

Es gab zwar ein Unterverzeichnis "boot" mit einem weiteren Unterverzeichnis "grub", die wohl auch von der grub Installation erstellt sein müssen, aber das hat offenbar nicht ausgereicht.

Jetzt geht, vielen Dank an alle.


Nein. Vor der Installation musst du die boot Partition mountieren, bevor du die stage tarball entpackst.
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
astaecker
Guru
Guru


Joined: 28 Apr 2003
Posts: 403
Location: Hamburg / Germany

PostPosted: Mon Mar 07, 2005 7:09 pm    Post subject: Reply with quote

Die war gemountet. Außerdem, wenn /boot nicht gemountet ist, wird es bei der Installation versucht (und bei mir auch erfolgreich).
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2953
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Mon Mar 07, 2005 8:30 pm    Post subject: Reply with quote

arlsair wrote:
Die war gemountet. Außerdem, wenn /boot nicht gemountet ist, wird es bei der Installation versucht (und bei mir auch erfolgreich).


was wird versucht? Was meinst du damit?
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
astaecker
Guru
Guru


Joined: 28 Apr 2003
Posts: 403
Location: Hamburg / Germany

PostPosted: Mon Mar 07, 2005 10:00 pm    Post subject: Reply with quote

pablo_supertux wrote:
was wird versucht? Was meinst du damit?

Wenn /boot nicht gemountet ist, wird dies beim emergen nachgeholt:
Code:
>>> Merging sys-boot/grub-0.94-r1 to /
 *
 * Your boot partition was not mounted as /boot, but portage
 * was able to mount it without additional intervention.
 * Files will be installed there for grub to function correctly.
 *
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2953
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Mon Mar 07, 2005 10:20 pm    Post subject: Reply with quote

arlsair wrote:
pablo_supertux wrote:
was wird versucht? Was meinst du damit?

Wenn /boot nicht gemountet ist, wird dies beim emergen nachgeholt:
Code:
>>> Merging sys-boot/grub-0.94-r1 to /
 *
 * Your boot partition was not mounted as /boot, but portage
 * was able to mount it without additional intervention.
 * Files will be installed there for grub to function correctly.
 *


tatsächlich? Diese Meldung habe ich noch nie gesehen. Ich hab keine boot Partition und bei mir ist sowas nie passiert.
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
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