From kjetil@kjernsmo.net Tue Oct 28 06:06:25 2003 Received: with ECARTIS (v1.0.0; list devfs); Tue, 28 Oct 2003 06:06:58 -0800 (PST) Received: from pooh.kjernsmo.net (pooh.kjernsmo.net [217.77.32.186]) by oss.sgi.com (8.12.10/8.12.10) with SMTP id h9SE6N25007206 for ; Tue, 28 Oct 2003 06:06:24 -0800 Received: from ti100710a080-0474.bb.online.no ([80.213.225.218]) by pooh.kjernsmo.net with esmtp (Exim 4.24) id 1AEUUD-0006hL-K5 for devfs@oss.sgi.com; Tue, 28 Oct 2003 15:06:17 +0100 From: Kjetil Kjernsmo To: devfs@oss.sgi.com Subject: Problems mounting devfs Date: Tue, 28 Oct 2003 15:05:46 +0100 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200310281505.46915.kjetil@kjernsmo.net> X-archive-position: 162 X-ecartis-version: Ecartis v1.0.0 Sender: devfs-bounce@oss.sgi.com Errors-to: devfs-bounce@oss.sgi.com X-original-sender: kjetil@kjernsmo.net Precedence: bulk X-list: devfs Hi all! I'm a complete newbie, so this is a typical "user" question. The archive linked from the FAQ is apparently dead (404), but the FSF/UNESCO Free Software Directory lists this mailing list as a help list, so I hope my questions are welcome! :-) Allthough I'm a newbie, I have the Perl programmer's Hubris, and I think I'm quite successful, except for a final showstopper I think may involve devfs. Over the past couple of weeks, I've struggled to get a second seat on my computer. My girlfriend needs to get some work done too, and the only way we can afford (and have space for) another computer, is to run another screen, keyboard and mouse off the same box. In the process, I have no upgraded this box to Debian Unstable, with Andreas Schuldei's backstreet ruby 2.4.21 kernel sources as well as his XFree86 4.3 with the PrefBusId patch. Right now, I'm following the HOWTO at: http://tldp.org/HOWTO/XFree-Local-multi-user-HOWTO/ My kernel compiles, my X config seems OK, Xinerama runs well on both screens. The HOWTO mentions devfs favourably, and it looks like an elegant solution to me, so I'd like to use it! I've got devfsd running (I got some nasty "bad superblock" errors before I discovered it), my kernel has the following config: CONFIG_DEVFS_FS=y CONFIG_DEVFS_MOUNT=y # CONFIG_DEVFS_DEBUG is not set I've tried with and without append="devfs=mount", and I have now # CONFIG_DEVPTS_FS is not set This is what my currently running kernel has had to say about devfs: Oct 28 11:51:30 owl kernel: devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au) Oct 28 11:51:30 owl kernel: devfs: boot_options: 0x1 Oct 28 11:51:30 owl kernel: usb.c: registered new driver usbdevfs Oct 28 11:51:30 owl kernel: Mounted devfs on /dev Looks good, eh....? :-) Well, I next try to run an X-server on the second graphics card, using a Virtual Terminal (the idea is that a keyboard and mouse should go with the second screen). It goes: (++) using VT number 8 (WW) xf86OpenConsole: VT_ACTIVATE failed (WW) xf86OpenConsole: VT_WAITACTIVE failed Fatal server error: xf86OpenConsole: VT_GETMODE failed So, I googled for this error message, and found this: http://lists.jammed.com/owl-users/2001/11/0027.html Apparently, I need more tty's than Debian normally has. But, then, if I have understood the idea behind devfs correctly, X is supposed to get devfs to make the needed devices for me automagically, right...? I tried to run this server at vt7, and that worked, expect it used the same keyboard as my main head. That's where I'm put off at the moment... I've been bothering the fine folks on the debian-user-list, and now I'm turning to you... :-) Well, the next thing is that in the HOWTO I'm following: http://tldp.org/HOWTO/XFree-Local-multi-user-HOWTO/dev_files.html apparently, mount is supposed to know when devfs is mounted. Just to do what it tells me to check: kjetil@owl:~> cat /proc/filesystems | grep devfs nodev devfs nodev usbdevfs kjetil@owl:~> mount | grep devfs ....nothing... :-( To be verbose, this is what mount says: /dev/ide/host0/bus0/target0/lun0/part1 on / type ext3 (rw,errors=remount-ro) proc on /proc type proc (rw) /dev/ide/host0/bus0/target0/lun0/part2 on /usr type ext3 (rw) /dev/ide/host0/bus0/target0/lun0/part3 on /home type ext3 (rw,noexec) /dev/ide/host0/bus0/target1/lun0/part1 on /tmp type ext3 (rw,nosuid,nodev) /dev/ide/host0/bus0/target0/lun0/part9 on /var type ext3 (rw) /dev/ide/host0/bus0/target0/lun0/part5 on /home/felles type ext3 (rw) /dev/ide/host0/bus0/target0/lun0/part6 on /usr/local/src type ext3 (rw) /dev/ide/host0/bus0/target1/lun0/part5 on /var/junk type ext2 (rw,noexec,nosuid,nodev) So, even though the kern.log clearly states, devfs is mounted on /dev, and I can't find anything to indicate it is unmounted, it seems devices aren't created, and when looking at this, I wonder if I have been able to really mount it.... I have not anything about devfs in /etc/fstab, I shouldn't, should I? And I still use stuff like /dev/hda1, etc in there... I would be very happy for any help you can provide! Cheers, Kjetil -- Kjetil Kjernsmo Astrophysicist/IT Consultant/Skeptic/Ski-orienteer/Orienteer/Mountaineer kjetil@kjernsmo.net webmaster@skepsis.no editor@learn-orienteering.org Homepage: http://www.kjetil.kjernsmo.net/ OpenPGP KeyID: 6A6A0BBC From ib@wupperonline.de Wed Oct 29 00:48:02 2003 Received: with ECARTIS (v1.0.0; list devfs); Wed, 29 Oct 2003 00:48:35 -0800 (PST) Received: from work4.tal.de (work4.tal.de [81.92.0.130]) by oss.sgi.com (8.12.10/8.12.10) with SMTP id h9T8m025017783 for ; Wed, 29 Oct 2003 00:48:01 -0800 Received: from mail.wtal.de (mail.wtal.de [195.8.224.4]) by work4.tal.de (WTALOUT1) with ESMTP id 17A7C9CF1A1 for ; Mon, 27 Oct 2003 19:38:48 +0100 (CET) Received: from ib (isdn231.s.netic.de [212.9.162.231]) by mail.wtal.de (8.11.1/8.11.0) with SMTP id h9RIPXq09328 for ; Mon, 27 Oct 2003 19:25:33 +0100 From: ib@wupperonline.de (Ingo Brueckl) Date: Mon, 27 Oct 2003 20:23:00 +0100 Subject: devfs(d) problem X-Mailer: blueMail 1.1 (SlipDoor 2.2) Message-ID: <3f9d61c6@wupperonline.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=iso-8859-1 To: devfs@oss.sgi.com X-archive-position: 163 X-ecartis-version: Ecartis v1.0.0 Sender: devfs-bounce@oss.sgi.com Errors-to: devfs-bounce@oss.sgi.com X-original-sender: ib@wupperonline.de Precedence: bulk X-list: devfs Hope, this is the right place to ask. I'm using devfs with devfsd for some time now, no problems. So far, I had kernel 2.4.20 and devfsd 1.3.23. After updating to kernel 2.4.22 and devfsd 1.3.25 there are problems with some devices (like /dev/ttyS0 and /dev/ppp) which won't automatically register any more. I can't, for example, do 'ls' on them: no such file. After loading modules "serial" and "ppp_generic" using 'modprobe', the devices show up normally. This is from my modules.defvs, but as mentioned it worked until the update: # Serial ports alias /dev/tts* serial alias /dev/ttyS* serial alias /dev/cua* serial # PPP devices alias /dev/ppp* ppp_generic How can I figure out what's going wrong? Ingo