Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why is /dev forgetting my mknod 's?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
tdb
Apprentice
Apprentice


Joined: 19 Sep 2002
Posts: 293
Location: New Orleans, Louisiana, U.S.A. (what's left of it anyway...)

PostPosted: Tue Jan 13, 2004 10:38 pm    Post subject: Why is /dev forgetting my mknod 's? Reply with quote

I installed OpenVPN on my laptop. I use kernel 2.6.1-love2. Part of the installation instructions for OpenVPN is to "mknod /dev/net/tun c 10 200", and add "alias char-major-10-200 tun" to /etc/modules.conf. After that, "modprobe tun", and you're off to the races. OpenVPN runs fine. However, once I "rmmod tun", /dev/net/tun disappears. When I go to use OpenVPN, which presumably should automagically load "tun" whenever char-major-10-200 is called, it complains about not being able to find /dev/net/tun. When I go to list /dev/net/tun, it is gone.
Now, when I reinsert the module tun, /dev/net/tun comes back. "file /dev/net/tun" identitfies it as a broken symbolic link to misc/net/tun. "file /dev/misc/net/tun" shows it as having char 10 200. From here, in order to get OpenVPN running again, I have to remove the module, re-mknod /dev/net/tun, and reinsert the module again.

Why is /dev forgetting the node I made? Why does it disappear when the module is removed? Isn't that was is preventing the kernel from autoloading it via the alias? Why when I reinset the modue, does /dev/net/tun turn into a broken symbolic link. All this works just fine under my 2.4 server kernel. Does this have to do with the now limited support for devfs in the 2.6 line? Is there a workaround?
Back to top
View user's profile Send private message
Master_Of_Disaster
l33t
l33t


Joined: 28 Feb 2003
Posts: 610
Location: 15.05072° East, 48.13747° North (aka Mauer), Austria

PostPosted: Tue Jan 13, 2004 10:41 pm    Post subject: Reply with quote

Because gentoo is using devfs, look at /etc/devfsd.conf
to find out how to adapt your config to use OpenVPN with devfs
_________________
post tenebras lux, post fenestras tux
Registered Linux User Nr. 312509
Adopt an unanswered post today!
Back to top
View user's profile Send private message
chrroessner
Apprentice
Apprentice


Joined: 02 Dec 2003
Posts: 156
Location: Germany

PostPosted: Wed Jan 14, 2004 10:04 am    Post subject: Reply with quote

Hi,

I have done a workaround. I put the following in my conf:

Code:

dev-node /dev/misc/net/tun


This solved my problem. 8)

Christian
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Mon Mar 15, 2004 9:18 pm    Post subject: Reply with quote

You put that line in devfsd.conf? I don't see any line like it in there so wanted to make sure.

Also, what do I add in the kernel config to get the tun module?

Thanks!
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum