What's new

BACKUPMON BACKUPMON v1.5.10 -Mar 1, 2024- Backup/Restore your Router: JFFS + NVRAM + External USB Drive! (**Thread closed due to age**)

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Can you, please, post the output of # mount?
My shows that the share is mounted using SMB v2.0; whereas trying to mount using SMB v2.1 throws an "Invalid argument error".
Bash:
ladmin@GT-AC2900-1:/tmp/home/root# mount -t cifs -o "vers=2.0,username=******,password=******" "\\\\192.168.0.2\\backups (at Files)" /tmp/mnt/backups
ladmin@GT-AC2900-1:/tmp/home/root# mount | grep /tmp/mnt
tmpfs on /tmp/mnt type tmpfs (rw,noexec,relatime,size=16k)
tmpfs on /tmp/mnt type tmpfs (rw,noexec,relatime,size=16k)
/dev/sda1 on /tmp/mnt/Storage type ext4 (rw,nodev,relatime,data=ordered)
\\192.168.0.2\backups (at Files) on /tmp/mnt/backups type cifs (rw,relatime,vers=2.0,sec=ntlmssp,cache=strict,username=ladmin,domain=GT-AC2900-2,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.0.2,file_mode=0755,dir_mode=0755,nounix,serverino,mapposix,rsize=65536,wsize=65536,actimeo=1)
Here's solid proof that the RT-AC86U does SMB v2.1...

Code:
ViktorJp@RT-AC86U-BE10:/tmp/home/root# mount -t cifs \\\\192.168.86.9\\Backups /tmp/mnt/jangofett -o "vers=2.1,username=*****,password=*****"
ViktorJp@RT-AC86U-BE10:/tmp/home/root# mount | grep /tmp/mnt
tmpfs on /tmp/mnt type tmpfs (rw,noexec,relatime,size=16k)
tmpfs on /tmp/mnt type tmpfs (rw,noexec,relatime,size=16k)
/dev/sda1 on /tmp/mnt/PNY-USB type ext4 (rw,nodev,relatime,data=ordered)
\\192.168.86.9\Backups on /tmp/mnt/jangofett type cifs (rw,relatime,vers=2.1,sec=ntlmssp,cache=strict,username=admin,domain=JANGOFETT,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.86.9,file_mode=0755,dir_mode=0755,nounix,serverino,mapposix,rsize=1048576,wsize=1048576,actimeo=1)

Not sure that it matters... but the order that the UNC/Path is being called in my mount statement is different than yours. What if you used v2.1 using the same order as my mount statement to see?
 
Yeah, right! Thank you!
Maybe firmware version 386.12_2 makes the difference. I'm still on 386.12_0
Well, mine was working fine on 386.12_0 before...
 
You'll have to check the source code to verify that.
1700351597612.png
:p
 
What if you used v2.1 using the same order as my mount statement to see?
Unfortunately, doesn't work. Thank you for drawing my attention to this detail.
Bash:
ladmin@GT-AC2900-1:/tmp/home/root# mount -t cifs "\\\\192.168.0.2\\backups (at Files)" /tmp/mnt/backups -o "vers=2.1,username=******,password=******"
mount: mounting \\192.168.0.2\backups (at Files) on /tmp/mnt/backups failed: Invalid argument
However, with vers=2.0 works fine.
 
Unfortunately, doesn't work. Thank you for drawing my attention to this detail.
Bash:
ladmin@GT-AC2900-1:/tmp/home/root# mount -t cifs "\\\\192.168.0.2\\backups (at Files)" /tmp/mnt/backups -o "vers=2.1,username=******,password=******"
mount: mounting \\192.168.0.2\backups (at Files) on /tmp/mnt/backups failed: Invalid argument
However, with vers=2.0 works fine.
Thanks for verifying... I've just added this to the requirements list. I'll consider making this a setup option in the future to help make it more backwards compatiable.
 
Are you sure your server actually supports SMB v2.1?
Actually, I am not. Network Place (Samba) Share / Cloud Disk tab says my firmware support SMBv1 + SMBv2 only.
screenshot1.png
I am thinking about installing samba4-server - 4.18.0-1 from entware. I found a thread about configuring it on this forum.
 
Here's solid proof that the RT-AC86U does SMB v2.1...

Code:
ViktorJp@RT-AC86U-BE10:/tmp/home/root# mount -t cifs \\\\192.168.86.9\\Backups /tmp/mnt/jangofett -o "vers=2.1,username=*****,password=*****"
ViktorJp@RT-AC86U-BE10:/tmp/home/root# mount | grep /tmp/mnt
tmpfs on /tmp/mnt type tmpfs (rw,noexec,relatime,size=16k)
tmpfs on /tmp/mnt type tmpfs (rw,noexec,relatime,size=16k)
/dev/sda1 on /tmp/mnt/PNY-USB type ext4 (rw,nodev,relatime,data=ordered)
\\192.168.86.9\Backups on /tmp/mnt/jangofett type cifs (rw,relatime,vers=2.1,sec=ntlmssp,cache=strict,username=admin,domain=JANGOFETT,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.86.9,file_mode=0755,dir_mode=0755,nounix,serverino,mapposix,rsize=1048576,wsize=1048576,actimeo=1)

Not sure that it matters... but the order that the UNC/Path is being called in my mount statement is different than yours. What if you used v2.1 using the same order as my mount statement to see?
Been following along. It is a good possibility that the server that is trying to be reached is the issue. I have an old WDCloud that I recently took out of service that only worked at smb1.0. I connect to another remote server that only allows smb3. Your script being hard coded to smb2.1 won't accommodate everyone.
 
Actually, I am not. Network Place (Samba) Share / Cloud Disk tab says my firmware support SMBv1 + SMBv2 only.
Oh, so you're trying to use a client on one GT-AC2900 and a server on another GT-AC2900?

I am thinking about installing samba4-server - 4.18.0-1 from entware. I found a thread about configuring it on this forum.
There are more recent threads about trying that. It's not entirely straight forward as the inbuilt Samba code conflicts with the Entware version.
 
Last edited:
Actually, I am not. Network Place (Samba) Share / Cloud Disk tab says my firmware support SMBv1 + SMBv2 only.
I am thinking about installing samba4-server - 4.18.0-1 from entware. I found a thread about configuring it on this forum.
I think @ColinTaylor is referring to the server; I.e. the NAS; that you are trying to connect to may not support smb2.1. Not the router.
 
Oh, so you're trying to using a client on one GT-AC2900 and a server on another GT-AC2900?
I've just checked the Samba server on my RT-AX86U and it doesn't support SMB 2.1 (SMB2_10).

Code:
PORT    STATE SERVICE      REASON
445/tcp open  microsoft-ds syn-ack ttl 64
MAC Address: F0:2F:74:92:37:D8 (Unknown)

Host script results:
| smb-protocols:
|   dialects:
|     NT LM 0.12 (SMBv1) [dangerous, but default]
|_    2.02

Why do you need SMB 2.1 specifically?
 
Last edited:
Well, yes, this is exactly what I am trying to accomplish.:)
Until @Viktor Jaep can make the script more flexible to various SMB versions, you can always edit the script, find the mount command and change the version to 2.0.
 
I.e. the NAS; that you are trying to connect to may not support smb2.1
I have two GT-AC2900's. I chose the one that is not exposed to www to store backups of entware's and jffs's from both. Have been using nsrum for backups for what seems like ages. Now thinking about configuring an alternative.
 
I've just checked the Samba server on my RT-AX86U
Here're the results from my GT-AC2900:
Bash:
PORT    STATE SERVICE
445/tcp open  microsoft-ds

Host script results:
| smb-os-discovery:
|   OS: Unix (Samba 3.6.25)
|   Computer name: GT-AC2900-2
|   NetBIOS computer name:
|   Domain name:
|   FQDN: GT-AC2900-2.
|_  System time: 2023-11-19T05:14:00+03:00
| smb2-time:
|   date: 1601-01-01T00:00:00
|_  start_date: N/A
|_clock-skew: mean: -51484d17h44m39s, deviation: 89174d01h49m36s, median: -2h59m59s
| smb2-security-mode:
|   2:0:2:
|_    Message signing enabled but not required
|_nbstat: NetBIOS name: GT-AC2900-2, NetBIOS user: <unknown>, NetBIOS MAC: <unknown> (unknown)
| smb-security-mode:
|   account_used: guest
|   authentication_level: user
|   challenge_response: supported
|_  message_signing: disabled (dangerous, but default)
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top