Debian Kernel Update Problem

FreeBSD, Gentoo, openSUSE, CentOS, Ubuntu, Debian
linuxdepp
Posts: 33
Joined: 2003-09-17 03:56
 

Debian Kernel Update Problem

Post by linuxdepp »

Nach dem Update auf Debian-Kernel 2.4.24-grsec kann ich mich auf dem Server nicht mehr per SSH einloggen (Konsole bleibt dunkel).

Fehler in Messages : "Cannot open initial console"
Auth : "/dev/ttyX: cannot open as standard output"

Sprich es scheint irgendwas mit dem seriellen Modul zu sein - sonst bootet er nur mit folgendem Fehler hoch:
modprobe: modprobe: Can't locate module char-major-4 (auch serielle Schnittstelle)


EDIT: Hab nun wieder auf 2.4.18-bf2.4 downgegraded - nun gehts wieder.
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten
 

Re: Debian Kernel Update Problem

Post by captaincrunch »

...was wohl daran liegt, dass der Kernel für 1&1-Rooties ohne serielle Konsole abgestimmt ist. ;)

http://linux.roothell.org/kernel-config-2.4.24
# CONFIG_SERIAL is not set
# CONFIG_SERIAL_EXTENDED is not set
# CONFIG_SERIAL_NONSTANDARD is not set
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
linuxdepp
Posts: 33
Joined: 2003-09-17 03:56
 

Re: Debian Kernel Update Problem

Post by linuxdepp »

mh hab ich mir schon gedacht - wie kann ich dennoch mit dem 2.4.24-gsec arbeiten ?
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten
 

Re: Debian Kernel Update Problem

Post by captaincrunch »

Schnapp dir meine Config (aus dem Link), und bau dir den Kernel inkl. Support für die Konsole.
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
linuxdepp
Posts: 33
Joined: 2003-09-17 03:56
 

Re: Debian Kernel Update Problem

Post by linuxdepp »

und ich dachte ich komm ums neubauen drumherum :P
man dankt
linuxdepp
Posts: 33
Joined: 2003-09-17 03:56
 

Re: Debian Kernel Update Problem

Post by linuxdepp »

Das geht irgendwie nicht.

Ich habe von Kernel.org den 2.4.24 in Sourcen geholt.
Dann:

Code: Select all

# ../kernel-patches/all/apply/grsecurity_2_4
# dpkg -i ../kernel-image-2.4.24_rootserver.01_i386.deb
# make-kpkg --added-patches "grsecurity" --revision=rootserver.01 kernel_image
Deine Config in .config.
ffl
Userprojekt
Userprojekt
Posts: 269
Joined: 2002-10-23 08:28
Location: Karlsruhe
 

Re: Debian Kernel Update Problem

Post by ffl »

Bei mir gehts auch ohne das:

Code: Select all

[root@mars:~/downloads/kernel]$ uname -a
Linux mars 2.4.24-grsec #1 Tue Jan 6 13:06:32 CET 2004 i686 unknown

Natürlich dann ohne Konsole, aber jetzt weiß ich wenigstens was ich machen muss, damit die Konsole geht.

Wenn ich es hinbekomme, stelle ich morgen früh ein Debian-Image zur Verfügung.

Gruß
ff
linuxdepp
Posts: 33
Joined: 2003-09-17 03:56
 

Re: Debian Kernel Update Problem

Post by linuxdepp »

ja ich brauch halt die konsole (weil der dinger ca. 65 km weit weg steht im hochsicherheitstrakt von 1und1 :P)

mal schauen - also bei mir kommt der mit dem 4.24 gar nicht hoch - keine log einträge - trotz lilo -v
ffl
Userprojekt
Userprojekt
Posts: 269
Joined: 2002-10-23 08:28
Location: Karlsruhe
 

Re: Debian Kernel Update Problem

Post by ffl »

[x] Du bist dir sicher, dass 1&1 eine serielle Konsole anbietet
linuxdepp
Posts: 33
Joined: 2003-09-17 03:56
 

Re: Debian Kernel Update Problem

Post by linuxdepp »

Ja, zumindest läuft das über die (serielle) Konsole wohl. Wenn im Fehler-Log steht, dass er diese nicht erstellen kann ... hab das auch schon öfter gelesen hier, sollte also das Hauptproblem sein, weil der Kernel 2.4.24-grsec ansonsten richtig hochfährt. Gestern hab ich mir noch nen Kernel selbst gebaut, war aber nicht erfolgreich, der ist gar nicht erst hochgekommen. Seltsam das.
schl
Posts: 343
Joined: 2003-02-05 11:26
Location: München/Unterschleißheim
 

Re: Debian Kernel Update Problem

Post by schl »

Hm, 1und1 bietet einen Rescue Modus an, aber keine serielle Konsole. Oder habe ich da was verpaßt????
linuxdepp
Posts: 33
Joined: 2003-09-17 03:56
 

Re: Debian Kernel Update Problem

Post by linuxdepp »

ja serielle konsole is quark - aber die konsole kann er nicht initialisieren. wieso warum blick ich nicht - keine ahnung - mit kernel updates kenn ich mich nicht so aus.
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten
 

Re: Debian Kernel Update Problem

Post by captaincrunch »

Was genau ist jetzt eigentlich das Problem?
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
linuxdepp
Posts: 33
Joined: 2003-09-17 03:56
 

Re: Debian Kernel Update Problem

Post by linuxdepp »

LinuxDepp wrote: Nach dem Update auf Debian-Kernel 2.4.24-grsec kann ich mich auf dem Server nicht mehr per SSH einloggen (Konsole bleibt dunkel).

Fehler in /var/log/messages : "Cannot open initial console"
/var/log/auth.log : "/dev/ttyX: cannot open as standard output"

beim Kernel hochfahren:
"modprobe: modprobe: Can't locate module char-major-4 (auch serielle Schnittstelle)"


EDIT: Hab nun wieder auf 2.4.18-bf2.4 downgegraded - nun gehts wieder.
da steht alles