View previous topic :: View next topic |
Author |
Message |
tdb Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/1490342202402dd37d896c4.png)
Joined: 19 Sep 2002 Posts: 293 Location: New Orleans, Louisiana, U.S.A. (what's left of it anyway...)
|
Posted: Tue Jan 13, 2004 10:38 pm Post subject: Why is /dev forgetting my mknod 's? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Master_Of_Disaster l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Southpark/avatar14.gif)
Joined: 28 Feb 2003 Posts: 610 Location: 15.05072° East, 48.13747° North (aka Mauer), Austria
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
chrroessner Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 02 Dec 2003 Posts: 156 Location: Germany
|
Posted: Wed Jan 14, 2004 10:04 am Post subject: |
|
|
Hi,
I have done a workaround. I put the following in my conf:
Code: |
dev-node /dev/misc/net/tun
|
This solved my problem.
Christian |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
flickerfly l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Funny_Figure/pilgrim.gif)
Joined: 08 Nov 2002 Posts: 677 Location: Lanham, MD
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|