Remote share (Solved)

Remote share (Solved)

Postby prufa » Tue Aug 13, 2019 4:41 pm

Hi I'm having trouble mounting SMB remote share from cloudbox to my raspberry pi.
I can mount it if I ssh into the cloudbox but it doesn't automap then.
If I try to mount it from webgui I get the error Fail, Cannot mount the remote share(/mnt/remote_share_mount_dir)

I can mount other shares in cloudbox but not the share from raspberry pi.
I can access the share from my windows computer and also if I use SSH.

Can anybody tell me how I can automount this share if I do this by connecting via SSH into the cloudbox ?
Last edited by prufa on Tue Aug 13, 2019 9:31 pm, edited 1 time in total.
prufa
 
Posts: 18
Joined: Fri Jul 07, 2017 11:04 am

Re: Remote share

Postby Jocko » Tue Aug 13, 2019 4:54 pm

Hi
Can you please confirm what is your attempt because you wrote the both opposite ways
prufa wrote:I'm having trouble mounting SMB remote share from cloudbox to my raspberry pi.
so you tried to mount a cloudbox share on your raspberry and
prufa wrote:If I try to mount it from webgui I get the error Fail, Cannot mount the remote share(/mnt/remote_share_mount_dir)
here you tried to mount a raspberry share on the nas
Jocko
Site Admin - expert
 
Posts: 11558
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Remote share

Postby prufa » Tue Aug 13, 2019 5:09 pm

Jocko wrote:Hi
Can you please confirm what is your attempt because you wrote the both opposite ways
prufa wrote:I'm having trouble mounting SMB remote share from cloudbox to my raspberry pi.
so you tried to mount a cloudbox share on your raspberry and
prufa wrote:If I try to mount it from webgui I get the error Fail, Cannot mount the remote share(/mnt/remote_share_mount_dir)
here you tried to mount a raspberry share on the nas


Hi sorry for the misunderstanding.

So I have a raspberry pi that has an external hard drive connected to it and the external hard drive is shared.
So I'm trying to connect/mount to that share from Cloudbox webgui. But when I do that I get the following error: Fail, Cannot mount the remote share(/mnt/remote_share_mount_dir)

When I mount other shares in the Cloudbox webgui they work but not when I'm trying to connect/mount to the raspberry pi drive.
I can access the share on the raspberry pi if I connect to the Cloudbox via SSH and use the following command: mount -t cifs //Raspberrypi/Share /mnt/mountpoint -o rw,iocharset=utf8,username=xxxxx,password=yyyyy
And that share appears in the webgui but if I restart cloudbox the share is gone.

So is there anyway for me to automount the raspberry pi share in the cloudbox ?

I can access the share on the raspberry pi from a windows computer but not from cloudbox.
prufa
 
Posts: 18
Joined: Fri Jul 07, 2017 11:04 am

Re: Remote share

Postby Jocko » Tue Aug 13, 2019 5:20 pm

What firmware version do you use ?

If you have version 18.1, the firmware tries successively to use these commands according to the smb version supported remotely:
Code: Select all
/* try first with smb3 support */
 mount -t cifs //Raspberrypi/Share /mnt/mountpoint -o sec=ntlmv2,vers=3.0,rw,iocharset=utf8,username='xxxxx',password='yyyyy'

/* next with smb2.1 support */
 mount -t cifs //Raspberrypi/Share /mnt/mountpoint -o sec=ntlmv2,vers=2.1,rw,iocharset=utf8,username='xxxxx',password='yyyyy'

/* next with smb2.0 support */
 mount -t cifs //Raspberrypi/Share /mnt/mountpoint -o sec=ntlmv2,vers=2.0,rw,iocharset=utf8,username='xxxxx',password='yyyyy'

/* next with smb1 support */
 mount -t cifs //Raspberrypi/Share /mnt/mountpoint -o sec=ntlm,vers=1.0,rw,iocharset=utf8,username='xxxxx',password='yyyyy'

If at least one command works, that would means there is an issue on your login/password which contain an unsupported char
Jocko
Site Admin - expert
 
Posts: 11558
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Remote share

Postby prufa » Tue Aug 13, 2019 5:29 pm

Jocko wrote:What firmware version do you use ?

If you have version 18.1, the firmware tries successively to use these commands according to the smb version supported remotely:
Code: Select all
/* try first with smb3 support */
 mount -t cifs //Raspberrypi/Share /mnt/mountpoint -o sec=ntlmv2,vers=3.0,rw,iocharset=utf8,username=xxxxx,password=yyyyy

/* next with smb2.1 support */
 mount -t cifs //Raspberrypi/Share /mnt/mountpoint -o sec=ntlmv2,vers=2.1,rw,iocharset=utf8,username=xxxxx,password=yyyyy

/* next with smb2.01 support */
 mount -t cifs //Raspberrypi/Share /mnt/mountpoint -o sec=ntlmv2,vers=2.0,rw,iocharset=utf8,username=xxxxx,password=yyyyy

/* next with smb1 support */
 mount -t cifs //Raspberrypi/Share /mnt/mountpoint -o sec=ntlm,vers=1.0,rw,iocharset=utf8,username=xxxxx,password=yyyyy

If at least one command works, that would means there is an issue on your login/password which contain an unsupported char


Ahh thank you I will try to change the password I think I know what character that is :)
I will let you know what happens.
prufa
 
Posts: 18
Joined: Fri Jul 07, 2017 11:04 am

Re: Remote share

Postby Jocko » Tue Aug 13, 2019 5:32 pm

Note: I edited my post
username and password are quoted in the command line
Jocko
Site Admin - expert
 
Posts: 11558
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Remote share

Postby prufa » Tue Aug 13, 2019 6:26 pm

I changed the password on the raspberry pi but and removed one character that could been problematic but that didn't work in the webgui.
The SSH command works fine but when I restart the cloudbox the share wont automount again unless I SSH connect again to the cloudbox and mount the share again.

There is a option in the webgui to mount at boot. Do you know what command I can use to do that via SSH ?
prufa
 
Posts: 18
Joined: Fri Jul 07, 2017 11:04 am

Re: Remote share

Postby Jocko » Tue Aug 13, 2019 6:48 pm

prufa wrote:but when I restart the cloudbox the share wont automount again unless I SSH connect again to the cloudbox and mount the share again
is it the expected behaviour as you did not use the related menu from the fw web-interface.

First what is your firmware version

and can you post the output if you use the posted commandline
Jocko
Site Admin - expert
 
Posts: 11558
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Remote share

Postby prufa » Tue Aug 13, 2019 6:56 pm

Jocko wrote:
prufa wrote:but when I restart the cloudbox the share wont automount again unless I SSH connect again to the cloudbox and mount the share again
is it the expected behaviour as you did not use the related menu from the fw web-interface.

First what is your firmware version

and can you post the output if you use the posted commandline


The firmware version is 17-0.

I probably need to upgrade ?

Yes will post the output of the commandline after about an hour when I get back home again.
prufa
 
Posts: 18
Joined: Fri Jul 07, 2017 11:04 am

Re: Remote share

Postby Jocko » Tue Aug 13, 2019 6:58 pm

Yes I'd rather you upgrade to version 18.1, there is some code changes over this feature.

For example with version 17.0, mount will fail if samba version on your raspberry allows only smb2 or smb3. Then the command-line used by the firmware fails because it uses the option 'sec=ntlm'. This option can not be used with version smb2 or smb3.
That works with yours because you do not set this option
Jocko
Site Admin - expert
 
Posts: 11558
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Next

Return to Lacie cloudbox (white casing)

Who is online

Users browsing this forum: Bing Bot and 12 guests