Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Server mit Gentoo/Grub(neu) bootet nicht
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
andreask
Apprentice
Apprentice


Joined: 09 Sep 2003
Posts: 282
Location: Aachen, Germany

PostPosted: Fri Jul 02, 2004 4:33 am    Post subject: Server mit Gentoo/Grub(neu) bootet nicht Reply with quote

Hallo!

Ich habe auf einem root-server gentoo(2.4.26-grsec) installiert. Ich hab das vorher schon mehrfach lokal getestet, naja, und jetzt klappt es nicht.

Ich habe grub verwendet, syslog_ng installiert und aktiviert... aber wenn ich den Server von der Festplatte boote passiert nach außen gar nichts. Nicht nur dass er nicht online zu erreichen ist, ich bekomme auch nichtmal irgendeine Ausgabe vom syslog-ng, es gibt keine "messages" Datei. Und auch sonst gibt es keine nützlichen Informationen unter /var/log.

Ich weiß leider überhaupt nicht weiter, ich weiß nicht wie ich das Problem einkreisen kann, da ich nigendwo eine Fehlermeldung habe. Wie kann ich z.B. herausbekommen in wiefern grub klarkommt? Natürlich habe ich grub auch im MRB installiert. Aber irgendwas muss ich falsch gemacht/vergessen haben, naja. Vielleicht liegt es ja auch am Kernel, aber woher weiß ich das?

grub.conf:
Code:
default 0

timeout 5

title=Gentoo Linux 2.4.26-grsec

root (hd0,0)
kernel (hd0,0)/kernel-2.4.26-grsec root=/dev/hda3


Die Partitionen sehen wie folgt aus:
Code:
#/etc/fstab

/dev/hda1   /boot      ext2   noauto,noatime                  1 1
/dev/hda2   none      swap   sw                            0 0
/dev/hda3   /         ext3   notail,noatime                  0 1
/dev/hda5   /tmp      ext3   notail,noatime,nodev,nosuid,noexec   0 2
/dev/hda6   /usr        ext3    notail,noatime,nodev,ro             0 2
/dev/hda7   /home      ext3   notail,noatime,nodev,nosuid         0 2
/dev/hda8   /var      ext3   notail,noatime,nodev            0 2

proc      /proc      proc   defaults                     0 0
none        /dev/shm   tmpfs   defaults                     0 0


das /boot-Verzeichnis:
Code:
System.map -> System.map-2.4.26-grsec
System.map-2.4.26-grsec
boot -> .
config-2.4.26-grsec
grub
kernel-2.4.26-grsec



Hat vielleicht jemand von euch ne Idee?

Grüße
Andreas
Back to top
View user's profile Send private message
Ragin
l33t
l33t


Joined: 14 Apr 2003
Posts: 776

PostPosted: Fri Jul 02, 2004 4:58 am    Post subject: Reply with quote

Installiere grub nochmal
Code:

grub
root (hd0,0)
setup (hd0)
quit

und schreibe mal die Ausgabe von grub. nach dem setup.
Vielleicht ist da ein Fehler.
_________________
"Innerhalb der Computergemeinschaft lebt man nach der Grundregel, die Gegenwart sei ein Programmfehler, der in der nächsten Ausgabe behoben sein wird."

Clifford Stoll, amerik. Astrophysiker u. Computer- Pionier
Back to top
View user's profile Send private message
andreask
Apprentice
Apprentice


Joined: 09 Sep 2003
Posts: 282
Location: Aachen, Germany

PostPosted: Fri Jul 02, 2004 5:25 am    Post subject: Reply with quote

Code:
grub> root (hd0,0)
 Filesystem type is ext2fs, partition type 0x83

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  22 sectors are embedded.
succeeded
 Running "install /boot/grub/stage1 (hd0) (hd0)1+22 p (hd0,0)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.


Aber hat nichts gebracht.

Ich habe wie gesagt aktuelle grsec-sources verwendet.

config: http://knet-systems.de/tmp/config-2.4.26-grsec.gz
Back to top
View user's profile Send private message
ACe-Vitamindrink
n00b
n00b


Joined: 01 Jul 2004
Posts: 7

PostPosted: Fri Jul 02, 2004 6:32 am    Post subject: Na da schau an Reply with quote

Ich sitze schon seit etwa 1:00 an fast dem gleichen Problem wobei sich meines inzwischen etwas abgewandelt hat. Zu erst tratt bei mir der gleiche Fehler wie bei dir. Aus reiner Verzweiflung und auch unwissen hatte ich den MBR dan einfach mal auf (hd1,0) geschrieben anstatt auf (hd1), das Funktionietre soweit bis zur Auswahl des Bootsystems auch ganz gut wobei ich dan ein böses Error 15 zurück bekam. Nach dem ich dan wieder den MBR auf (hd1) schrieb war dies behoben. Frag mich aber bitte nicht warum ich erkenne in meiner eigenen Tat keinen Sinn :\

Zur Zeit Schlage ich mich jedoch mit Error 17 herum der mir die letzte Lust raubt. Auch fand ich bisher nichts brauchbares über diesen Fehler im Netz/diesem Forum was mich weiter gebracht hat, aber vieleicht ist es ja auch ein ganz lapidarer Fehler den ich in meiner Unwissenheit gemacht habe


Code:

Meine fstab

/dev/hdb1   /boot   ext2   noauto,noatime   1 2
/dev/hdb9   /   ext3   noatime      0 1
/dev/hdb2   none   swap   sw      0 0
/dev/hdb3   /home   ext3   noauto      0 2
/dev/hdb5   /var   ext3   noauto      0 2
/dev/hdb6   /usr   ext3   noauto      0 2
/dev/hdb7   /opt   ext3   noauto      0 2
/dev/hdb8   /root   ext3   noauto      0 2
------------cut--------------


Code:

Meine Grub.conf

grub.conf:

timeout 30
title Gentoo
root (hd1,0)
kernel (hd1,0)/kernel-2.6.6 root=/dev/ram0 init=/linuxrc real_root=/dev/hdb9
initrd (h1d,0)/initrd-2.6.6


Code:

Meine Boot-Verzeichnis

System.map -> System.map-2.6.6
System.map-2.6.6
grub
initrd-2.6.6
kernel-2.6.6


Code:

Grub-Menü auf der LiveCD

grub>root (hd1,0)
 Filesystem type is ext2fs, partition type 0x83
grub>setup (hd1)
 checkng if "/boot/grub/stage1" exists... no
 checkng if "/grub/stage1" exists... yes
 checkng if "/grub/stage2" exists... yes
 checkng if "/grub/e2fs_stage1_5" exists... yes
 Running "embed /grub/e2fs_stage1_5 (hd1)"... 22 sectors are embedded.
succeeded
 Running "install /grub/stage1 (hd1) (hd1)1+22 p (hd1,0)/grub/stage2 /grub/menu.lst"... succeeded
Done.


Code:

nach/wärend des boots

GRUB Loading stage1.5.

GRUB loading, please wait...

GNU GRUB version 0.94 (639K lower / 523200K upper memory)

 Booting 'Gentoo'

root (hd1,0)
 Filesystem type unknown, partition type 0x7
kernel (hd1,0)/kernel-2.6.6 root=/dev/ram0 init=/linuxrc real_root=/dev/hdb9

Error 17 : Cannot mount selected partition


Hat vieleicht irgend jemand eine Idee ?


Last edited by ACe-Vitamindrink on Fri Jul 02, 2004 6:48 am; edited 1 time in total
Back to top
View user's profile Send private message
holla die waldfee
Tux's lil' helper
Tux's lil' helper


Joined: 17 Sep 2003
Posts: 85

PostPosted: Fri Jul 02, 2004 6:43 am    Post subject: Re: Na da schau an Reply with quote

ACe-Vitamindrink wrote:


Code:

Meine Grub.conf

grub.conf:

timeout 30
title Gentoo
root (hd1,0)
kernel (h1,0)/kernel-2.6.6 root=/dev/ram0 init=/linuxrc real_root=/dev/hdb9
initrd (h1,0)/initrd-2.6.6


Hat vieleicht irgend jemand eine Idee ?


es wird wahrscheinlich nicht der komplette fehler sein, aber versuch soch mal
Code:
kernel (hd1,0) .....
und
initrd (hd1,0) ......


gruß holla

ps.: wozu initrd auf nem root server?
Back to top
View user's profile Send private message
ACe-Vitamindrink
n00b
n00b


Joined: 01 Jul 2004
Posts: 7

PostPosted: Fri Jul 02, 2004 6:48 am    Post subject: Re: Na da schau an Reply with quote

holla die waldfee wrote:
ACe-Vitamindrink wrote:


Code:

Meine Grub.conf

grub.conf:

timeout 30
title Gentoo
root (hd1,0)
kernel (h1,0)/kernel-2.6.6 root=/dev/ram0 init=/linuxrc real_root=/dev/hdb9
initrd (h1,0)/initrd-2.6.6


Hat vieleicht irgend jemand eine Idee ?


es wird wahrscheinlich nicht der komplette fehler sein, aber versuch soch mal
Code:
kernel (hd1,0) .....
und
initrd (hd1,0) ......


gruß holla

ps.: wozu initrd auf nem root server?


upsa ; ) nein in der Config ist das korrekt, hab mich nur beim abtippseln ins Forum vertippt : ) aber dennoch danke fürs durchlesen ; )
Back to top
View user's profile Send private message
ACe-Vitamindrink
n00b
n00b


Joined: 01 Jul 2004
Posts: 7

PostPosted: Fri Jul 02, 2004 7:37 am    Post subject: Lösung für mein Problem Reply with quote

Hallo,

nun habe ich durch zufall doch noch eine Lösung für mein Problem selbst heraus gefunden. Auch wen diese mir als ziemlich komisch erscheint.


Ausgangsbasis ist ein Rechner mit 2 Platten, eine Windows und eine für Linux. Die Windowsplatte ist Primery Master oder auch /dev/hda,(hd0,0) und und und

So ist logischer weise die Linuxplatte Primery slave ebenfalls unter der LiveCD /dev/hdb, (hd1,0) wie auch der MBR auf dieser Festplatte eindeutig beweist.

Aber jetzt kommts, ich nach dem Grubboot, in der Commando-line mir mal nur aus neugier die geometry der Platte angeschaut,.. und siehe (hd1) verweist seltsamer weise auf die Windowsplatte welche noch zuvor (hd0) war.

Also habe ich nun Root auf (hd0,0) umgesetzt und siehe es geht.... aber eine systemlogik erkenn ich darin nicht :-(
Back to top
View user's profile Send private message
toskala
Advocate
Advocate


Joined: 14 Dec 2002
Posts: 2080
Location: hamburg, germany

PostPosted: Fri Jul 02, 2004 8:25 am    Post subject: Reply with quote

auf meinem server rennt das grub so:

Quote:

default 0
timeout 1
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title=gentoo
root (hd0,0)
kernel (hd0,0)/boot/bzImage root=/dev/hda3


schmeiss einfach mal diesen initrd müll weg.
_________________
adopt an unanswered post
erst denken, dann posten
Back to top
View user's profile Send private message
andreask
Apprentice
Apprentice


Joined: 09 Sep 2003
Posts: 282
Location: Aachen, Germany

PostPosted: Fri Jul 02, 2004 10:17 am    Post subject: Reply with quote

Hm, bis auf das splashimage habe ich es genau so wie Du - prinzipiell. Das einzige was ich anders mache als sonst sind die vielen Partitionen. Gibts keine Möglichkeit grub irgendwie im "debug-modus" laufen zu lassen... naja, aber wihin soll er schreiben wenn er die platte nicht findet? könnten theoretisch Kernelmodule fehlen? Hab in " modules-autoload" nichts angepasst.
Back to top
View user's profile Send private message
toskala
Advocate
Advocate


Joined: 14 Dec 2002
Posts: 2080
Location: hamburg, germany

PostPosted: Fri Jul 02, 2004 10:21 am    Post subject: Reply with quote

das bzImage hast aber schon in /boot kopiert?
_________________
adopt an unanswered post
erst denken, dann posten
Back to top
View user's profile Send private message
andreask
Apprentice
Apprentice


Joined: 09 Sep 2003
Posts: 282
Location: Aachen, Germany

PostPosted: Fri Jul 02, 2004 10:35 am    Post subject: Re: Server mit Gentoo/Grub(neu) bootet nicht Reply with quote

andreask wrote:

das /boot-Verzeichnis:
Code:
System.map -> System.map-2.4.26-grsec
System.map-2.4.26-grsec
boot -> .
config-2.4.26-grsec
grub
kernel-2.4.26-grsec



Ja.
Back to top
View user's profile Send private message
toskala
Advocate
Advocate


Joined: 14 Dec 2002
Posts: 2080
Location: hamburg, germany

PostPosted: Fri Jul 02, 2004 10:42 am    Post subject: Reply with quote

ja aber dann fehlt dir doch in deiner grub.conf die pfadangabe!
_________________
adopt an unanswered post
erst denken, dann posten
Back to top
View user's profile Send private message
andreask
Apprentice
Apprentice


Joined: 09 Sep 2003
Posts: 282
Location: Aachen, Germany

PostPosted: Fri Jul 02, 2004 10:45 am    Post subject: Reply with quote

Im Rettungssystem sehen die Partitionen so aus:

fdisk:
Code:
Command (m for help): p

Disk /dev/hda: 41.1 GB, 41174138880 bytes
255 heads, 63 sectors/track, 5005 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1           9       72261   83  Linux
/dev/hda2              10          75      530145   82  Linux swap
/dev/hda3              76         330     2048287+  83  Linux
/dev/hda4             331        5005    37551937+   5  Extended
/dev/hda5             331         458     1028128+  83  Linux
/dev/hda6             459         841     3076416   83  Linux
/dev/hda7             842        1224     3076416   83  Linux
/dev/hda8            1225        5005    30370851   83  Linux


Code:
# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda3              2016044     59440   1854192   4% /
/dev/hda6              3028080   1115016   1759244  39% /usr
/dev/hda8             29893724     49224  28325960   1% /var
/dev/hda1                69973      2285     64075   4% /boot
/dev/hda5              1011928     16428    944096   2% /tmp
/dev/hda7              3028080     32840   2841420   2% /home



Wenn ich in das Gentoo-System wechsele, bekomme ich alle Partitionen so:

Code:
mkdir /mnt/gentoo
mount /dev/hda3 /mnt/gentoo
mount /dev/hda1 /mnt/gentoo/boot
mount /dev/hda5 /mnt/gentoo/tmp
mount /dev/hda6 /mnt/gentoo/usr
mount /dev/hda7 /mnt/gentoo/home
mount /dev/hda8 /mnt/gentoo/var
mount -t proc none /mnt/gentoo/proc
chmod 1777 /mnt/gentoo/tmp
cd /mnt/gentoo
chroot /mnt/gentoo /bin/bash



hm, bin echt ratlos. Mit Kernel-Modulen kann es nichts zu tun haben?
Back to top
View user's profile Send private message
toskala
Advocate
Advocate


Joined: 14 Dec 2002
Posts: 2080
Location: hamburg, germany

PostPosted: Fri Jul 02, 2004 10:48 am    Post subject: Reply with quote

nein, was ich meinte:

deine grub.conf

Code:
default 0
timeout 5
title=Gentoo Linux 2.4.26-grsec
root (hd0,0)
kernel (hd0,0)/kernel-2.4.26-grsec root=/dev/hda3


meine grub.conf

Code:
default 0
timeout 1
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title=gentoo
root (hd0,0)
kernel (hd0,0)/boot/bzImage root=/dev/hda3


die zeile kernel (hd0,0)/boot/bzImage root=/dev/hda3
hat bei dir ein fehlendes /boot!

änder das bitte mal und probiers erneut.
_________________
adopt an unanswered post
erst denken, dann posten
Back to top
View user's profile Send private message
andreask
Apprentice
Apprentice


Joined: 09 Sep 2003
Posts: 282
Location: Aachen, Germany

PostPosted: Fri Jul 02, 2004 11:10 am    Post subject: Reply with quote

bringt nichts, leider.
Back to top
View user's profile Send private message
toskala
Advocate
Advocate


Joined: 14 Dec 2002
Posts: 2080
Location: hamburg, germany

PostPosted: Fri Jul 02, 2004 11:32 am    Post subject: Reply with quote

dann mach alles nochmal neu und diesmal richtig :twisted:

keine ahnung was da verbockt wurde, kannst ja aber lilo benutzen und kucken obs damit booted. ich weiss dazu nix mehr.
_________________
adopt an unanswered post
erst denken, dann posten
Back to top
View user's profile Send private message
andreask
Apprentice
Apprentice


Joined: 09 Sep 2003
Posts: 282
Location: Aachen, Germany

PostPosted: Fri Jul 02, 2004 11:42 am    Post subject: Reply with quote

och nö... ;-)

ja, lilo probiere ich gleich mal... ich weiß es auch nicht. Hm...

Danke jedenfalls!
Back to top
View user's profile Send private message
_hephaistos_
Advocate
Advocate


Joined: 07 Apr 2004
Posts: 2694
Location: salzburg, austria

PostPosted: Fri Jul 02, 2004 11:47 am    Post subject: Reply with quote

ja, und lilo ausführen nicht vergessen!! da siehst wenigstens gleich fehler in der config :)
Back to top
View user's profile Send private message
toskala
Advocate
Advocate


Joined: 14 Dec 2002
Posts: 2080
Location: hamburg, germany

PostPosted: Fri Jul 02, 2004 12:05 pm    Post subject: Reply with quote

nee, den fehler sieht er nich wirklich beim root-server :lol:
_________________
adopt an unanswered post
erst denken, dann posten
Back to top
View user's profile Send private message
andreask
Apprentice
Apprentice


Joined: 09 Sep 2003
Posts: 282
Location: Aachen, Germany

PostPosted: Fri Jul 02, 2004 12:10 pm    Post subject: Reply with quote

Naja, da habe ich wohl zu viel auf einmal probiert (mehr als 3 PArtitionen, grsec, kein Bildschirm, stage1 und neue .config), ich denke ich jage das ganze erstmal lokal über einen Rechner, aber das kann dauern bei einem 400er Celeron :-( Vielleicht teste ich erstmal die Kernel-Konfig dort.

Jedenfalls bringt lilo exakt dasselbe Ergebnis - es passier NIX. :-(
Back to top
View user's profile Send private message
toskala
Advocate
Advocate


Joined: 14 Dec 2002
Posts: 2080
Location: hamburg, germany

PostPosted: Fri Jul 02, 2004 12:15 pm    Post subject: Reply with quote

also, ganz ehrlich, ich betreibe auch den einen oder anderen rootserver, die installation ist kein problem.
machs am besten mit einer checklist.

druck dir die installationsanleitung aus, geh schritt für schritt durch und hake ab was du erledigt hast.

danach machst du einen zweiten check ob alles gut ist, und dann kannst du mal rebooten.

keine hektik, alles ist cool, das rescue system hilft dir bei allem.

es ist ja schließlich noch kein meister vom himmel gefallen.
_________________
adopt an unanswered post
erst denken, dann posten
Back to top
View user's profile Send private message
andreask
Apprentice
Apprentice


Joined: 09 Sep 2003
Posts: 282
Location: Aachen, Germany

PostPosted: Fri Jul 02, 2004 12:27 pm    Post subject: Reply with quote

hm, hab beim letzten Versuch mit Grub nachher eine Datei "boot.0300" unter /boot gehabt, darin stehen kryptische Zeichen, und mitten drin:

Quote:
GRUB GeomHard DiskRead Error


sonst finde ich keine neue Datei. Was hat das wohl zu bedeuten?
Back to top
View user's profile Send private message
toskala
Advocate
Advocate


Joined: 14 Dec 2002
Posts: 2080
Location: hamburg, germany

PostPosted: Fri Jul 02, 2004 12:31 pm    Post subject: Reply with quote

http://www.uruk.org/orig-grub/errors.html

speziell:

Quote:
"Geom Error"

This error message will occur if the location of the Stage 2 or Stage 1.5 is not in the area supported by reading the disk with the BIOS directly. This could occur because the BIOS translated geometry has been changed by the user or the disk is moved to another machine or controller after installation, or GRUB was not installed using itself (if it was, the Stage 2 version of this error would have been seen during that process and it would not have completed the install).


ich würd sagen, partitioniererei nicht korrekt?
_________________
adopt an unanswered post
erst denken, dann posten
Back to top
View user's profile Send private message
_hephaistos_
Advocate
Advocate


Joined: 07 Apr 2004
Posts: 2694
Location: salzburg, austria

PostPosted: Fri Jul 02, 2004 12:37 pm    Post subject: Reply with quote

hallo,

Quote:

/dev/hdb1 /boot ext2 noauto,noatime 1 2
/dev/hdb9 / ext3 noatime 0 1
/dev/hdb2 none swap sw 0 0
/dev/hdb3 /home ext3 noauto 0 2
/dev/hdb5 /var ext3 noauto 0 2
/dev/hdb6 /usr ext3 noauto 0 2
/dev/hdb7 /opt ext3 noauto 0 2
/dev/hdb8 /root ext3 noauto 0 2


wie ist das denn gegangen? man darf doch nur 4 partitionen haben... oder sind da externe usw dabei??

ciao
Back to top
View user's profile Send private message
andreask
Apprentice
Apprentice


Joined: 09 Sep 2003
Posts: 282
Location: Aachen, Germany

PostPosted: Fri Jul 02, 2004 12:42 pm    Post subject: Reply with quote

toskala wrote:
also, ganz ehrlich, ich betreibe auch den einen oder anderen rootserver, die installation ist kein problem.
machs am besten mit einer checklist.

Ja, ich habe es auch vor einiger Zeit einige male bei mir remote auf einem Testserver installiert, das ging jedesmal mehr oder weniger problemlos.

toskala wrote:
druck dir die installationsanleitung aus, geh schritt für schritt durch und hake ab was du erledigt hast.

danach machst du einen zweiten check ob alles gut ist, und dann kannst du mal rebooten.


Also ich bin nach der ausführlichen Anleitung vorgegangen, hab als Vorlage für die kernel-Konfig die von http://linux.roothell.org/kernel genommen, die auf vielen 1und1 Servern erfolgeich eingesetzt wird. Ich hab nur die 3,4 Sachen die in der Gentoo-Doku standen entsprechend angepasst, da der Rest gut für mich war. Ich hab mir wirklich viel Zeit genommen, ich habe auch die englische Version verglichen, und gerade eben noch mal die Kurz-Anleitung:

http://www.gentoo.org/doc/de/gentoo-x86-quickinstall.xml

Ich habe jeden einzelnen Punkt davon gemacht. Ich bin mir ziemlich sicher, dass ich es beim nächsten mal exakt genau so machen würde wie jetzt, naja, irgendwo muss ich einen dämlichen Fehler drin haben.

Woran kann es denn liegen, dass Grub die Platte nicht findet, oder eine Partition... ich habe das Gefühl es hat mit den vielen Partitionen zu tun.

toskala wrote:
keine hektik, alles ist cool, das rescue system hilft dir bei allem.

es ist ja schließlich noch kein meister vom himmel gefallen.


;-)

Naja, inzwischen spiele ich schon mit dem Gedanken einfach mal einen vanilla-kernel mit genkernel zu versuchen, hm...
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
Goto page 1, 2  Next
Page 1 of 2

 
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