• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

TTY0 existiert nicht

sseebb

Newbie
Guten Abend,

seit Upgrade von openSuSE 11.4 auf 12.1 scheint /dev/tty0 nicht mehr zu existieren.
Damit ziehen sich einige Fehler durch das ganze System.
Systemd wird nicht richtig ausgeführt, SFTP-Subsystem kann nicht aufgerufen werden, Scriptoutput wird nicht direkt in der Konsole dargestellt und SSH Login zieht sich auf 30 Sekunden hin...

(hier ein kleiner Auszug der Log http://twitpic.com/7h2uk9/full )

mknod /dev/tty0 c 4 0 mit 0666 Rechten hat zwar tty0 erstellt, das virtuelle Terminal wird jedoch nach (Deamon-)Neustart wieder gelöscht.

Hat jemand einen Lösungsvorschlag?

Gruß
Sebastian
 
A

Anonymous

Gast
Jetzt habe ich keine 12.1 hier, habe auch vorläufig noch keine Lust und Notwendigkeit mich damit zu beschäftigen, aber ich hoffe mal am der prinzipiellen Funktion haben sie dort nichts gedreht.

Schau mal in das Verzeichnis "/lib/udev/devices/" . Dort sollte es unter anderem Einträge für tty tty0 und tty1 geben. Diese Dateien wurden (so war das jedenfalls immer im 10.x und 11.x) vom Paket "udev" dort hin installiert. Beim erstem Start von "boot.udev" (oder bei "force-reload") werden diese dann nach /dev kopiert. Wenn die dort nicht vorhanden sind, dann mal diese hier in diesem Verzeichnis erstellen. Danach vorsichtshalber noch mal eine neue initrd bauen (möglich das sie auch mit in die initrd gepackt werden) und rebooten.

Bitte aber mal jemand mit einer 12.1 Installation (nicht auf 12.1 Update) schauen, ob das dort immer noch so ist und sich diese Dateien dort befinden.

robi
 

josef-wien

Ultimate Guru
robi schrieb:
Schau mal in das Verzeichnis "/lib/udev/devices/" . Dort sollte es unter anderem Einträge für tty tty0 und tty1 geben.
Bei 11.4 gibt es in diesem Verzeichnis genau 8 Eintragungen, und die stammen aus aaa_base (loop0 bis loop7). In /dev werden tty, tty0 bis tty63 und ttyS0 bis ttyS31 bei jedem Systemstart neu erzeugt.

Nachtrag: Das Erzeugen einer neuen Eintragung tty90 in /lib/udev/devices/ führt dazu, daß auch diese device beim nächsten Systemstart in /dev angelegt wird.

Jetzt bleibt die Frage offen, warum tty0 bei tomm.fa erzeugt wird und bei sseebb nicht.
 

tomm.fa

Administrator
Teammitglied
robi schrieb:
Bitte aber mal jemand mit einer 12.1 Installation (nicht auf 12.1 Update) schauen, ob das dort immer noch so ist und sich diese Dateien dort befinden.
Neuinstallation und außer /home nichts behalten, hoffe es hilft. ;)
Code:
ls /lib/udev/devices/
loop0  loop1  loop2  loop3  loop4  loop5  loop6  loop7
Code:
ls /dev/
.sysconfig     cpu              hpet          loop4               nvidia0    rtc0  shm       tty12  tty23  tty34  tty45  tty56  ttyS0    vcs     vcsa2
autofs         cpu_dma_latency  hugepages     loop5               nvidiactl  scd0  snapshot  tty13  tty24  tty35  tty46  tty57  ttyS1    vcs1    vcsa3
block          disk             initctl       loop6               nvram      sda   snd       tty14  tty25  tty36  tty47  tty58  ttyS2    vcs10   vcsa4
bootsplash     dvd              input         loop7               oldmem     sda1  sr0       tty15  tty26  tty37  tty48  tty59  ttyS3    vcs2    vcsa5
bsg            dvdrw            kmem          mapper              port       sda2  stderr    tty16  tty27  tty38  tty49  tty6   ttyS4    vcs3    vcsa6
btrfs-control  fb0              kmsg          mcelog              ppp        sda3  stdin     tty17  tty28  tty39  tty5   tty60  ttyS5    vcs4    vcsa7
bus            fd               log           mem                 psaux      sda4  stdout    tty18  tty29  tty4   tty50  tty61  ttyS6    vcs5    vga_arbiter
cdrom          full             loop-control  mqueue              ptmx       sda5  tty       tty19  tty3   tty40  tty51  tty62  ttyS7    vcs6    video0
cdrw           fuse             loop0         net                 pts        sda6  tty0      tty2   tty30  tty41  tty52  tty63  uinput   vcs7    watchdog
char           hidraw0          loop1         network_latency     random     sda7  tty1      tty20  tty31  tty42  tty53  tty7   urandom  vcsa    xconsole
console        hidraw1          loop2         network_throughput  rfkill     sg0   tty10     tty21  tty32  tty43  tty54  tty8   usb      vcsa1   zero
core           hidraw2          loop3         null                rtc        sg1   tty11     tty22  tty33  tty44  tty55  tty9   v4l      vcsa10
 
OP
S

sseebb

Newbie
mknod(/lib/udev/devices) + initrd = Erfolg
http://twitpic.com/7ks0oq/full

Vielen Dank! :-D

Edit:
In /sys/class/tty fehlt tty0 dennoch und somit das ganze Subsystem.
Wie bekommt man das gebacken?
 
Oben