[FreeNAS] Error accessing window share

Hi all,

I'm trying to access a window share from my FreeNAS:

Code:
vm_freenas# mount_smbfs -I 192.168.1.40 //test@192.168.1.40/Test /mnt/test

and I get this error:
Code:
mount_smbfs: kldload(smbfs): No such file or directory

Can you help me to resolve it? For information here is the smbclient -L result:

Code:
vm_freenas# smbclient -L 192.168.1.40 -U="test"
WARNING: Ignoring invalid value '' for parameter 'security'
Enter test's password:
Domain=[FREENAS] OS=[Windows Server 2003 3790 Service Pack 2] Server=[Windows Server 2003 5.2]

        Sharename       Type      Comment
        ---------       ----      -------
        Logiciel        Disk      Dossier partag        C$              Disk      Partage par d Utilisateurs    Disk      Dossiers personnels pour les utilisateurs
        Test            Disk
        Vid     Photos          Disk      Dossier partag        tv enregistr   IPC$            IPC       IPC distant
        ADMIN$          Disk      Administration        D$              Disk      Partage par d Musique         Disk      Dossier partag        Public          Disk      Dossier partagsession request to 192.168.1.40 failed (Called name not present)
session request to 192 failed (Called name not present)
Domain=[FREENAS] OS=[Windows Server 2003 3790 Service Pack 2] Server=[Windows Server 2003 5.2]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
 
Ok, I tried it:

Code:
vm_freenas# kldload smbfs
kldload: can't load smbfs: No such file or directory

So I verified by

Code:
vm_freenas# kldstat
Id Refs Address    Size     Name
 1   24 0xc0400000 cf6ba0   kernel
 2    1 0xc10f7000 1693c    geom_mirror.ko
 3    1 0xc110e000 17cf0    geom_raid3.ko
 4    1 0xc1126000 7864     geom_stripe.ko
 5    1 0xc461d000 137000   zfs.ko
 6    1 0xc4754000 3000     opensolaris.ko
 7    1 0xc4b44000 4000     vmmemctl.ko
 8    1 0xc4b48000 5000     vmxnet.ko
 9    1 0xc4b4d000 5000     vmblock.ko
10    1 0xc4b53000 b000     vmhgfs.ko

Does it mean that smbfs is not installed?
 
It's either buildin the kernel or a module. No idea what the kernel of FreeNAS contains.
 
Which version of FreeNAS you are using? On 0.7.2 "smbfs" module is present. You can load it directly using
Code:
kldload smbfs
 
guntag said:
I'm using FreeNAS-8.0-RC3-i386. Do you think I should change the version for an older one?

That doesn't make sense. If 7.x supports it, 8.x usually does too.
 
Ugh, what have I forgotten?

Code:
vmfreenas:/var/etc# mount_smbfs -I 192.168.1.40 //laurent@192.168.1.40/Test /mnt/test
Password:
mount_smbfs: unable to open connection: syserr = Connection reset by peer

So I add this:
Code:
client lanman auth = yes
lanman auth = yes
in /etc/var/smb.conf.

And I tried to check:
Code:
vmfreenas:/var/etc# smbtree
Enter laurent's password: 
WORKGROUP
	\\BBOX           		
cli_rpc_pipe_open_noauth: rpc_pipe_bind for pipe \srvsvc failed with error NT_STATUS_UNSUCCESSFUL
		\\BBOX\ADMIN$         	IPC Service ()
		\\BBOX\IPC$           	IPC Service ()
STE_ODILE
	\\VMFREENAS      		FreeNAS Server
		\\VMFREENAS\IPC$           	IPC Service (FreeNAS Server)
	\\MEDIACENTER    		
	\\FREENAS        		
		\\FREENAS\Public         	Dossier partagé pour les fichiers divers
		\\FREENAS\Musique        	Dossier partagé pour la musique
		\\FREENAS\D$             	Partage par défaut
		\\FREENAS\ADMIN$         	Administration à distance
		\\FREENAS\IPC$           	IPC distant
		\\FREENAS\tv enregistrée	Dossier partagé pour les programmes TV enregistrés de Windows Media Center
		\\FREENAS\Photos         	Dossier partagé pour les photos
		\\FREENAS\Vidéos        	Dossier partagé pour les vidéos
		\\FREENAS\Test           	
		\\FREENAS\Utilisateurs   	Dossiers personnels pour les utilisateurs
		\\FREENAS\C$             	Partage par défaut
		\\FREENAS\Logiciel       	Dossier partagé pour les programmes d’installation de logiciels
	\\ENTREE

What else can I check to find the cause of this error?
 
Back
Top