devfs
[Top] [All Lists]

Problems mounting devfs

To: devfs@xxxxxxxxxxx
Subject: Problems mounting devfs
From: Kjetil Kjernsmo <kjetil@xxxxxxxxxxxx>
Date: Tue, 28 Oct 2003 15:05:46 +0100
Sender: devfs-bounce@xxxxxxxxxxx
User-agent: KMail/1.5.4
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@xxxxxxxxxxxxx)
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@xxxxxxxxxxxx  webmaster@xxxxxxxxxx  editor@xxxxxxxxxxxxxxxxxxxxxx
Homepage: http://www.kjetil.kjernsmo.net/        OpenPGP KeyID: 6A6A0BBC


<Prev in Thread] Current Thread [Next in Thread>
  • Problems mounting devfs, Kjetil Kjernsmo <=