Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grub fallback Funktion
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
seba45k
n00b
n00b


Joined: 24 Nov 2004
Posts: 2

PostPosted: Sat Aug 25, 2007 1:02 pm    Post subject: grub fallback Funktion Reply with quote

Hallo,

vielleicht kann mir hier jemand bei einem Problem mit grub helfen.

Als erstes meine menu.lst von grub:
Code:
default saved
timeout 0
fallback 1
color green/black light-green/black

title Kernel 2.6.16.38
root (hd0,2)
kernel (hd0,0)/kernel-2.6.16.38 root=/dev/hda3
savedefault fallback

title Fallback
root (hd0,2)
kernel (hd0,0)/kernel-fallback root=/dev/hda3
savedefault


Mir will einfach nicht einleuchten, für was das fallback Feature von Grub nützlich sein soll. Laut
Code:
info grub
muss beim Einsatz des fallback Feature und einem korrekten Start nach diesem in jedem Fall
Code:
grub-set-default 0
ausgeführt werden, damit beim nächsten Start nicht der fallback Eintrag gebootet wird.

Grub scheint diesen fallback Eintrag also auch nur in die /boot/grub/default zu schreiben.

Dann könnte man doch aber auch gleich mit savedefault arbeiten!?
Code:
default saved
timeout 0
color green/black light-green/black

title Kernel 2.6.16.38
root (hd0,2)
kernel (hd0,0)/kernel-2.6.16.38 root=/dev/hda3
savedefault 1

title Fallback
root (hd0,2)
kernel (hd0,0)/kernel-fallback root=/dev/hda3
savedefault 0


Dann müsste ich auch nur
Code:
grub-set-default 0
bei einem korrekten Start laufen lassen.

Was bringt mir jetzt das fallback Feature? Führt grub beim Einsatz des fallback Feature und einem nicht vorhanden Kernel automatisch einen Neustart mit dem fallback Eintrag durch? Dann wäre es einleuchtend. Aber was ist, wenn das Kernelimage zwar vorhanden ist, aber nicht richtig bootet? Dies dürfte wohl in 99,9% aller Fälle der Fall sein. Merkt grub dies und startet automatisch den fallback Eintrag? Das wäre für mich dann wieder logisch, aber woran sollte grub dies merken?

MfG
Back to top
View user's profile Send private message
Anarcho
Advocate
Advocate


Joined: 06 Jun 2004
Posts: 2970
Location: Germany

PostPosted: Sat Aug 25, 2007 1:55 pm    Post subject: Re: grub fallback Funktion Reply with quote

seba45k wrote:
Was bringt mir jetzt das fallback Feature? Führt grub beim Einsatz des fallback Feature und einem nicht vorhanden Kernel automatisch einen Neustart mit dem fallback Eintrag durch? Dann wäre es einleuchtend. Aber was ist, wenn das Kernelimage zwar vorhanden ist, aber nicht richtig bootet? Dies dürfte wohl in 99,9% aller Fälle der Fall sein. Merkt grub dies und startet automatisch den fallback Eintrag? Das wäre für mich dann wieder logisch, aber woran sollte grub dies merken?

MfG


Ich glaube genau ersteres. Z.b. falls du dich bei nem root-server beim kernel-image namen vertan hast. Es gibt auch nen Patch für Grub mit dem man einen 1-time-start machen kann, also die aktuelle default einstellung genau einmal bootet. Danach sieht man ja ob es klappt. Falls nicht einfach reset und er startet nen alten eintrag.
_________________
...it's only Rock'n'Roll, but I like it!
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