Using Samba Drive 4.9.4 under with windows 10

post here any question or information you want to share on Computers

Using Samba Drive 4.9.4 under with windows 10

Postby matzi » Fri Nov 29, 2019 7:15 pm

Hi fvdw an Jocko,

during the speed tests with the raspi 4 I found access problems with Samba access. When selecting Samba driver 4.9.3 and deselected NTLM option thereis no smb share visible in windows explorer. But still I can access the shares with WinSCP. In windows features the smb1 is deselected, SMB Direct is selected.

How that? Do I eventually not benefit from smb3 and it is using some other protocol else? Can that be a reason for my low speed results?
matzi
Donator VIP
Donator VIP
 
Posts: 253
Joined: Wed Jul 06, 2011 8:08 am
Location: Hannover Germany

Re: Using Samba Drive 4.9.3 under with windows 10

Postby wd9895 » Fri Nov 29, 2019 7:40 pm

Hi matzi,

that's a normal reaction.
Shares under Win10 working with SMB3 never show the shares under "Network" or "Netzwerk" as this is a SMB1 feature only.

In explorer you can address your shares in typing \\<nas-domain>\>sharename>
Windows 10 will ask you for user and password.

You can also link the share to a letter or even without a letter with "net use" command.
wd9895
Donator Supporter
Donator Supporter
 
Posts: 255
Joined: Fri Jun 10, 2011 1:49 pm
Location: Hamburg, Germany

Re: Using Samba Drive 4.9.4 under with windows 10

Postby fvdw » Fri Nov 29, 2019 9:48 pm

sorry WD9895, it is not normal

I have 3 nas running using samba 4 all show up in windows 10 network and also the shared folders

On the nas I have set smaba-4.9.4 and disabled v1 protocol
$matches[2]


In windows 10 I did not change anything and I even left smb1 available but it is not used as nas only provide smb 2 or 3 protocol
$matches[2]


All nas devices are visible in windows 10 network also the raspberry
(of course all have the same workgroup name assigned as the PC in the nas setup !)
$matches[2]

the shares are also visible
samab4-shares.JPG


It can take a while before the nas appears in windows 10 "network" as the master browser must update the network list.

If you dont see your nas in the windows 10 network then just enter in explorer
Code: Select all
\\ip-of-your-nas

(fill in the actual ip of your nas)

@Matzi, which speed do you get ?
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Using Samba Drive 4.9.4 under with windows 10

Postby fvdw » Fri Nov 29, 2019 10:00 pm

check in windows 10 that smb2/3 is enabled
windows10-check.JPG
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Using Samba Drive 4.9.4 under with windows 10

Postby fvdw » Fri Nov 29, 2019 10:03 pm

check that it is really using smb3
windows10-check2.JPG
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Using Samba Drive 4.9.4 under with windows 10

Postby fvdw » Fri Nov 29, 2019 10:07 pm

write speed to 2bignas running samba 4.9.4
2bignas-write-speed-samba4.JPG
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Using Samba Drive 4.9.4 under with windows 10

Postby fvdw » Fri Nov 29, 2019 10:34 pm

writing speed from windows 10 to raspberry pi 4 using samba 4.9.4 to a shared folder with name usb-test made on usb-disk connected to usb-2.0 port
The usb disk is in this case formatted in ext3
The mount method is mounting as internal disk
The share usb-test is made using webinterface and creating the share on sda (the usb disk)
Raspb4-write-speed-samba4-ext3-usb-disk-2.0.JPG


Proof that smb v3 protocol was used
Code: Select all
PS C:\WINDOWS\system32> Get-SmbConnection

ServerName   ShareName UserName       Credential     Dialect NumOpens
----------   --------- --------       ----------     ------- --------
FVDWSL-RASPB usb-test  Frans-W7\Frans Frans-W7\frans 3.1.1   2


PS C:\WINDOWS\system32>


@Matzi

be sure you are writing to a sata hard disk connected via sata-usb adapter to usb port of the raspberry !

If you write to the sd card in raspberry 4 than writing speed will be much lower typically 10 MB/s or even 3-5 MB/s dependent on sd card used
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Using Samba Drive 4.9.4 under with windows 10

Postby matzi » Sat Nov 30, 2019 8:36 pm

fvdw
I'v set all settings like you have.
Sure I try to write to an attachnd usb drive on raspi.
The Powershell commands give a different result to yours.
PS C:\WINDOWS\system32> Get-SmbServerConfiguration | Select EnableSMB2Protocol

EnableSMB2Protocol
------------------
True


PS C:\WINDOWS\system32> Get-SmbConnection
PS C:\WINDOWS\system32>

The result is empty!
I can see the drives in windows explorer now, but I cannot see the shares. I can even not access the shares by typing \\<ip>\public
I have two devices available: 5bg2 and raspi4. Both now have the same settings. Both show the same behaviour.
It can most likely not be a PC performance issue. Iam using a 6 month old HP I5 Laptop with M2 SSD
The writing speed to both devices is still low (about 2MB/s) with WinSCP.

(P.S. Can you change the threads name to 4.9.4?)
matzi
Donator VIP
Donator VIP
 
Posts: 253
Joined: Wed Jul 06, 2011 8:08 am
Location: Hannover Germany

Re: Using Samba Drive 4.9.4 under with windows 10

Postby fvdw » Sat Nov 30, 2019 8:46 pm

The writing speed to both devices is still low (about 2MB/s) with WinSCP.


yes winscp is low because it encodes the transfer. So no good indication for what you can get with explorer.

Are the pc and the two nas devices in the same windows workgroup ?

Code: Select all
\\ip-of-your-nas

Giving this in explorer should be enough to see the shared folders. To access private shared folders you will need to enter credentials of a user that has been granted access to this share on the nas (and as such this user must be known on the nas)

PS if you mout an usb diks as internal disk then you must create shared folders on it using the web interface to make them visible on explorer
So creating folders on it using winscp is not the righ way you must create them in the webinterface
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Using Samba Drive 4.9.4 under with windows 10

Postby matzi » Sat Nov 30, 2019 8:50 pm

yes, same workgroup "WORKGROUP"
matzi
Donator VIP
Donator VIP
 
Posts: 253
Joined: Wed Jul 06, 2011 8:08 am
Location: Hannover Germany

Next

Return to Computers and General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest

cron