Mount point

Status
Not open for further replies.

Johannez

Explorer
Joined
Jan 25, 2016
Messages
59
I am trying to mount one FreeNAS to another:

Code:
mount_smbfs -I *IP* //*user*@FREENAS/*cifs share*/*folder* /mnt/*volume*/*cifs share*/*folder*


After the command i get to fill in my password, after that i get:
Code:
mount_smbfs: unable to open connection: syserr = Permission denied  


Please some help or suggestions.
 
Last edited:

Johannez

Explorer
Joined
Jan 25, 2016
Messages
59
This specific mount point I want to use to access media with the Plex server.
 
Last edited:

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
Where are you running these commands? In a jail, right?
 

Johannez

Explorer
Joined
Jan 25, 2016
Messages
59
No. The two which work I need for other reasons outside a jail. This one, when it works, could be used in a jail.

Is there a difference in commands inside/outside a jail?
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
Is cifs even a valid type? Also, using "mount" probably isn't the way to go. From the man page:
-t ufs | external_type
The argument following the -t is used to indicate the file system
type. The type ufs is the default. The -t option can be used to
indicate that the actions should only be taken on file systems of
the specified type. More than one type may be specified in a
comma separated list. The list of file system types can be pre-
fixed with ``no'' to specify the file system types for which
action should not be taken. For example, the mount command:

mount -a -t nonfs,nullfs

mounts all file systems except those of type NFS and NULLFS.

The default behavior of mount is to pass the -t option directly
to the nmount(2) system call in the fstype option.

However, for the following file system types: cd9660, mfs,
msdosfs, nfs, ntfs, nwfs, nullfs, oldnfs, portalfs, smbfs, udf,
and unionfs. mount will not call nmount(2) directly and will
instead attempt to execute a program in /sbin/mount_XXX where XXX
is replaced by the file system type name. For example, nfs file
systems are mounted by the program /sbin/mount_nfs.

Most file systems will be dynamically loaded by the kernel if not
already present, and if the kernel module is available.


And regarding mount_smbfs, I think you have the syntax incorrect (it's really hard to tell with your obfuscation and asterisks). Again from the man page:
EXAMPLES
The following example illustrates how to connect to SMB server SAMBA as
user GUEST, and mount shares PUBLIC and TMP:

mount_smbfs -I samba.mydomain.com //guest@samba/public /smb/public
mount_smbfs -I 192.168.20.3 -E koi8-r:cp866 //guest@samba/tmp /smb/tmp
 

Johannez

Explorer
Joined
Jan 25, 2016
Messages
59
Thank you for your reply's Depasseg.

If I edit the line to:
Code:
mount_smbfs -I 192.168.1.111 -E koi8-r:cp866 //root@FREENAS/CIFS-Share/Media /mnt/SSD/CIFS-Share/Share-Test

Again i can fill in my password but get returned:
Code:
Password:                                                                                                                      
mount_smbfs: unable to open connection: syserr = Permission denied  


I don't understand why i get a permission denied while from another machine i can mount it.
I am using the root account and also filled in the ip number in the CIFS share in the FreeNAS menu.
 
Last edited:

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
Double check the -E option. I'm not sure it's relevant for you.

Is the name of your freenas share "CIFS-Share"? And you have a subfolder called Media?

Is /mnt/SSD/CIFS-Share/Share-Test an empty folder to be used as a mount point? I noticed in your successful Freenas to QNAP that you used /mnt/Volume1/CIFS-Share/Media as the mount point. Could you try /mnt/Volume1/CIFS-Share/Media-test for this trial.
 

Johannez

Explorer
Joined
Jan 25, 2016
Messages
59
Yes the Share is called CIFS-Share and a there is a subfolder called media which i would like to mount to /mnt/SSD/CIFS-Share/Share-Test on the other NAS.

i just created another empty folder "Media-test" and i use:
Code:
mount_smbfs -I 192.168.1.111 //root@FREENAS/mnt/Volume1/CIFS-Share/Media /mnt/SSD/CIFS-Share/Media-test

i get:
Code:
Password:
mount_smbfs: unable to open connection: syserr = No such file or directory
 
Last edited:

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
And you can mount the Freenas share from somewhere else successfully, right?
 

Johannez

Explorer
Joined
Jan 25, 2016
Messages
59
Yes i can mount it successfully from my Qnap using this command:
Code:
mount -t cifs //192.168.1.111/CIFS-Share -o username=root,password=12345 /share/MD0_DATA/Media
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
So try that. You are making too many changes all at the same time.

mount_smbfs -I 192.168.1.111 //root@FREENAS/CIFS-Share /mnt/Volume1/CIFS-Share/Media2
(where Media2 is a new, empty folder).
 

Johannez

Explorer
Joined
Jan 25, 2016
Messages
59
Code:
[root@freenas-2 ~]# mount_smbfs -I 192.168.1.111 //root@FREENAS/CIFS-Share /mnt/SSD/CIFS-Share/Media2                         
Password:                                                                                                                          
mount_smbfs: unable to open connection: syserr = Permission denied


Will try tomorrow making other user accounts, the permission denied keeps returning.
Thanks you for the help so far, will try again tomorrow.
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
Good point, it shouldn't be root.

Good luck.
 
Status
Not open for further replies.
Top