LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-06-2009, 06:52 AM   #1
essemesmo
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Rep: Reputation: 0
Tun/Tap Error.


Hi to everyone.

I`m try compile my TUN/TAP driver on Yellow Dog Linux.

But when i try load the module after a modules_install and reboot.

modprobe tun
i recive this error:

Can`t registry the misc device 200
FATAL: Error inserting tun (/lib/modules/2.6.27-1.ydl61.5custom/kernel/drivers/net/tun.ko): Device or resource busy

But when i try find where the file r in use i didn`t find anything.

on /dev/
din`t have any tun

but on /dev/net/

i got a file called tun

[root@localhost net]# ll
total 0
crw------- 1 root root 10, 200 Mar 15 00:16 tun


Sorry for bad english.
and Thx for now.
 
Old 10-06-2009, 10:53 AM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,094
Blog Entries: 2

Rep: Reputation: 111Reputation: 111
if you do an lsmod it'll probably show that the module is already loaded, which would give you the busy error
 
Old 10-06-2009, 11:25 AM   #3
essemesmo
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Original Poster
Rep: Reputation: 0
I alread think about that, but that`s the exist:

[root@localhost ~]# lsmod
Module Size Used by
nls_iso8859_1 3808 1
ipt_MASQUERADE 2852 1
ipt_LOG 5508 18
xt_limit 2276 19
nf_nat_ftp 2784 0
nf_conntrack_ftp 7684 1 nf_nat_ftp
iptable_nat 5608 1
nf_nat 16530 3 ipt_MASQUERADE,nf_nat_ftp,iptable_nat
ipv6 265900 18
nf_conntrack_netbios_ns 2368 0
ipt_REJECT 3072 1269
nf_conntrack_ipv4 14732 8 iptable_nat,nf_nat
xt_state 2048 5
nf_conntrack 61060 8 ipt_MASQUERADE,nf_nat_ftp,nf_conntrack_ftp,iptab le_nat,nf_nat,nf_conntrack_netbios_ns,nf_conntrack_ipv4,xt_state
xt_tcpudp 2976 55
iptable_filter 2720 1
ip_tables 12336 2 iptable_nat,iptable_filter
x_tables 13828 8 ipt_MASQUERADE,ipt_LOG,xt_limit,iptable_nat,ipt_ REJECT,xt_state,xt_tcpudp,ip_tables
binfmt_misc 9676 1
dm_mirror 18592 0
dm_log 10084 1 dm_mirror
dm_mod 54608 2 dm_mirror,dm_log
snd_aoa 15840 0
snd_powermac 47104 0
snd_seq_oss 35772 0
snd_seq_midi_event 6624 1 snd_seq_oss
snd_seq 59344 4 snd_seq_oss,snd_seq_midi_event
snd_seq_device 6924 2 snd_seq_oss,snd_seq
snd_pcm_oss 43552 0
snd_mixer_oss 16224 1 snd_pcm_oss
snd_pcm 76872 2 snd_powermac,snd_pcm_oss
snd_timer 22216 2 snd_seq,snd_pcm
snd 53208 9 snd_aoa,snd_powermac,snd_seq_oss,snd_seq,snd_seq _device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore 6280 1 snd
snd_page_alloc 8424 1 snd_pcm
ohci1394 33808 0
ieee1394 85280 1 ohci1394
3c59x 40168 0
mii 5376 1 3c59x
ne2k_pci 12068 0
8390 12224 1 ne2k_pci
sungem 31140 0
sungem_phy 11488 1 sungem

and the error persist

[root@localhost ~]# modprobe tun
FATAL: Error inserting tun (/lib/modules/2.6.27-1.ydl61.5custom/kernel/drivers/net/tun.ko): Device or resource busy
 
Old 10-07-2009, 12:00 AM   #4
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,094
Blog Entries: 2

Rep: Reputation: 111Reputation: 111
Is it possible that its compiled into the kernel? Try using the /dev/net/tun device
 
Old 10-08-2009, 05:53 AM   #5
essemesmo
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Original Poster
Rep: Reputation: 0
I format the machine and re-compile the kernel.

Until now, it`s all right.

So thx for help!
 
  


Reply

Tags
compile, tuntap


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenVPN Tun/Tap error Penn Linux - Server 5 10-14-2010 02:35 PM
Need help on TUN/TAP vinodl Linux - Networking 1 06-22-2009 11:18 AM
tun tap doubt karan84 Linux - Networking 2 01-10-2007 01:43 AM
Tun/Tap issue minasafwat Linux - Kernel 0 11-14-2006 01:11 AM
Tun/Tap getting started? blavo Linux - Newbie 0 02-14-2006 10:29 AM


All times are GMT -5. The time now is 02:00 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration