LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Tun/Tap Error. (https://www.linuxquestions.org/questions/linux-networking-3/tun-tap-error-760028/)

essemesmo 10-06-2009 06:52 AM

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.

estabroo 10-06-2009 10:53 AM

if you do an lsmod it'll probably show that the module is already loaded, which would give you the busy error

essemesmo 10-06-2009 11:25 AM

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

estabroo 10-07-2009 12:00 AM

Is it possible that its compiled into the kernel? Try using the /dev/net/tun device

essemesmo 10-08-2009 05:53 AM

I format the machine and re-compile the kernel.

Until now, it`s all right.

So thx for help! :)


All times are GMT -5. The time now is 12:41 AM.