Kaputtes /dev/pts/*
Jan-Benedict Glaw
jbglaw at lug-owl.de
Sat May 3 09:57:56 CEST 2008
On Sat, 2008-05-03 01:36:08 +0200, Thomas Laubrock <log-owl at laubrock.de> wrote:
> habe hier auf einem Debian Etch das Problem, dass seit dem Kernel Update
> von 2.6.18 auf 2.6.21 irgendwas mit /dev/pts nicht in Ordnung ist.
>
> Als Symptom kann ich unter X keine Terminals mehr öffnen.
>
> Der mount von /dev/pts sieht erst mal O.K.aus:
>
> kieken:/data/home/thl# mount
Das gibt nur aus, was in der /etc/mtab steht. Muß also nicht zwingend
passen... Was ist in /proc/mounts zu lesen? Da steht die aktuelle
Realität drin :)
> /dev/sda1 on / type ext3 (rw)
> tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
> proc on /proc type proc (rw,noexec,nosuid,nodev)
> /sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
> tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
> devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
> fusectl on /sys/fs/fuse/connections type fusectl (rw)
> /dev/mapper/lvg1-llv on /data type ext3 (rw,user_xattr)
> /dev/mapper/lvg1-llvideo on /video type ext3 (rw,user_xattr)
> tmpfs on /dev type tmpfs (rw,size=10M,mode=0755)
> binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
> kieken:/data/home/thl#
>
> Allerdings hilft ein umount und dann ein mount:
>
> kieken:/data/home/thl#umount /dev/pts
> umount: devpts: not found
> umount: /dev/pts: not mounted
> umount: devpts: not found
> umount: /dev/pts: not mounted
>
> Die Meldungen ist irgendwie seltsam, weil ja wie oben zu sehen /dev/pts
> wirklich gemountet ist.
Nein, da steht nur, daß mount *meint*, daß das irgendwann mal gemounted
wurde und bisher kein umount erfolgt ist.
> Die Meldungen tauchen auch wirklich doppelt auf.
>
> Mit einem :
> kieken:/data/home/thl# mount -o noexec,nosuid,rw,gid=5,mode=0620 -t
> devpts devpts /dev/pts
>
> Sieht es dann fast wieder gleich aus:
> kieken:/data/home/thl# mount
> /dev/sda1 on / type ext3 (rw)
> tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
> proc on /proc type proc (rw,noexec,nosuid,nodev)
> /sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
> tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
> fusectl on /sys/fs/fuse/connections type fusectl (rw)
> /dev/mapper/lvg1-llv on /data type ext3 (rw,user_xattr)
> /dev/mapper/lvg1-llvideo on /video type ext3 (rw,user_xattr)
> tmpfs on /dev type tmpfs (rw,size=10M,mode=0755)
> binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
> devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
> kieken:/data/home/thl#
>
> und unter X kann ich auch wieder Terminals öffnen.
>
> Aus der /etc/fstab habe ich /dev/pts komplett auskommentiert, aber es
> wird immer noch gemountet.
Nein. Vermutlich stehts einfach noch in der /etc/mtab, sieht wie
gemounted aus und wird eben /nicht/ mehr gemounted. Ergo auch keine
XTerms.
> Ein paar init.d scripte scheinen das ganze auch zu mounten.
> Auf einem anderen Debian Etch sind aber die gleichen Scripte am werk und
> alles funktioniert.
>
> Leider finde ich gar nichts in den Logs, wann und wer /dev/pts mountet.
>
> Hat jemand eine Idee, wo ich noch schauen kann.
System hochfahren, die /dev/pts-Zeile aus der /etc/mtab löschen, das
Ding in der /etc/fstab wieder Ent-Auskommentieren, einmal manuell
mounten. Dann sollte alles wieder laufen.
MfG, JBG
--
Jan-Benedict Glaw jbglaw at lug-owl.de +49-172-7608481
Signature of: The real problem with C++ for kernel modules is:
the second : the language just sucks.
-- Linus Torvalds
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lug-owl.de/pipermail/linux/attachments/20080503/a3b97fcc/attachment.sig>
More information about the Linux
mailing list