NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

spleenharvester's avatar
May 31, 2024

Samba 4.1.17 for ReadyNAS Duo v1 (sparc) [Redux]

A while back another user here posted some very good instructions on how to enable SMB3 on the original Sparc-based ReadyNAS Duo units (mine is an RND2000). However, these have since stopped working and the thread has now been locked, so I am posting some fresh instructions as I had a hell of a time getting it to work. I am using a Windows 11 PC so if you are running a different OS then change instructions accordingly.

 

1. Factory reset your Duo.

2. Update your RAIDiator firmware to the latest (4.1.16).

3. Install the addons for apt ('APT_1.0.bin') and ssh ('EnableRootSSH_1.0.bin').

4. ssh into your Duo using the below code, where [INSERTIPADDRESSHERE] is your Duo's IP. When prompted, your password is the same one you use to log into your admin account on the FrontEnd.

 

 

ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 [INSERTIPADDRESSHERE] -l root

 

5. Create a file named sources.list on your local computer, and enter contents as follows (this is where the main problems were with the original guide):

 

deb http://archive.debian.org/debian sarge non-free
deb http://archive.debian.org/debian sarge contrib
deb http://archive.debian.org/debian sarge main

 

6. Download PuTTy's pscp.exe and open a command terminal in the folder you have placed it in.

7. Send the sources.list file you created to your ReadyNAS Duo using the following code, where [LOCALFOLDERDIRECTORY] is the directory in which the file is stored on your local PC and [YOURNASNAME] is the name of your NAS:

 

pscp [LOCALFOLDERDIRECTORY]\sources.list root@[YOURNASNAME]:/etc/apt/sources.list

 

 8. Run the following commands:

 

apt-get update
apt-get install --reinstall grep
apt-get remove samba-common libwbclient0
mkdir /run
mkdir /run/samba
mkdir /var/lib/samba/private

 

9.  Download the pre-compiled Sparc version of SAMBA 4.1.17-1 kindly provided by the poster of the original thread from their drive link here

10. Send the file to the root of your Duo using pscp, like before:

 

pscp [LOCALFOLDERDIRECTORY]\samba_4.1.17-1_sparc.deb root@[YOURNASNAME]:/

 

 11. Install the file you copied by navigating to your root directory and running the command

 

dpkg -i samba_4.1.17-1_sparc.deb

 

 12. Create a new file, 'smb.conf', using notepad and fill it with the below contents. The differences are that (a) min protocol = smb2 has been added under [GLOBAL] per the original thread, and (b) security = share has been changed to security = user as the former seems to be deprecated:

 

 

# This file is auto-generated.  Do not modify!

[printers]
 path = /var/spool/samba
 printable = 1
 public = 1
 use client driver = 1

[global]
 min protocol = smb2
 allow trusted domains = 1
 delete readonly = 1
 delete veto files = 1
 dos charset = CP437
 encrypt passwords = 1
 follow symlinks = 1
 guest account = nobody
 hostname lookups = 0
 load printers = 1
 log level = 0 auth:2
 map acl inherit = 1
 max log size = 256
 name resolve order = "lmhosts host wins bcast"
 null passwords = 1
 obey pam restrictions = 0
 oplocks = 0
 passwd program = "/usr/bin/passwd %u"
 preserve case = 1
 security = user
 server string = %h
 short preserve case = 1
 store dos attributes = 1
 syslog = 0
 syslog only = 0
 unix charset = UTF-8
 unix password sync = 1
 veto files = "/.AppleDouble/.AppleDB/.AppleDesktop/:2eDS_Store/:2eTemporaryItems/TheVolumeSettingsFolder/TheFindByContentFolder/Network Trash Folder/Temporary Items/"
 wins server =
 workgroup = VOLUME

 

 13. Once again send the file you created via pscp:

 

pscp [LOCALDIRECTORY]\smb.conf root@[YOURNASNAME]:/etc/samba

 

14.  Restart SAMBA using the command:

 

/etc/init.d/samba restart

 

 15. Create a user using the command below, where [DESIREDUSERNAME] is whatever you want it to be. Note that this user will be what appears in the FrontEnd:

 

useradd [DESIREDUSERNAME]

 

16. Set a password for the user with the command:

 

smbpasswd -a [DESIREDUSERNAME]

 

17.  Restart SAMBA again using the command:

 

 

/etc/init.d/samba restart

 

18. Now restart your Duo using the command

 

sudo reboot

 

19. Once fully rebooted, open a Powershell terminal on your Windows PC and check the SMB3 version of your Duo share using the command below, where YOURSERVER is your Duo's network address:

 

Get-SmbConnection [YOURSERVER]

 

If it shows a '3' then congratulations, you are running SMB3!

 

I haven't yet tested it out performance wise (only just got my Duo) but can confirm it uses more RAM so you may want to consider upgrading from 256MB.

 

Cheers

 

12 Replies

Replies have been turned off for this discussion
  • A few corrections because it won't let me edit the original post:

     

    • Note that RAIDar 6 has a bug that makes it ignore the RAID version you select during initial setup and initialise with RAID1 anyway. Use RAIDar 4 instead. Once initialised after the factory reset double check in FrontView that it has actually chosen the RAID version you selected
    • Before executing step 7 you have to create the directory /etc/appt/ using
    mkdir /etc/appt

     

    • In step 19 [YOURSERVER] should be the hostname, not the IP address. The value of 'Dialect' in the output should be 3.0.

     

    • saudade's avatar
      saudade
      Luminary

      Thanks for this update!!  I have a Duo V1 that serves as a backup NAS to my primary NAS.  While I do sometimes connect to it directly from my Win11 desktop, it isn't often enough to warrant messing with it at the moment.  

       

      I have bookmarked this thread so I can get back to it quickly if/when I'm ready to make the jump.

       

      Thanks Again! 

    • Sandshark's avatar
      Sandshark
      Sensei - Experienced User

      So this can only be done with a freshly factory defaulted NAS?  That's a shame if true, as that'll likely cause some to forgo it.

       

      Since you had to create a user, what happens with the default admin user?

       

      Obviously, this should work on a NV+ V1 as well.

       

      It is far better to use a tool such as Notepad++ than standard Windows Notepad when creating files for a Linux system, as it can be set to save files with the proper Linux EOL (LF only) where standard Notepad always uses a CRLF. 

      • spleenharvester's avatar
        spleenharvester
        Guide

        It's possible it might be fine without resetting to defaults, I had just assumed that that step was in for a good reason in the original guide.

         

        Default admin user is still there, but it creates a new user that shows in the FrontView under Security > User & Group Accounts.

         

        It seems like there might be a performance hit, when copying large files I max at 50MB/s reading from NAS and 13MB/s writing to NAS. Memory and CPU usage are all near 100%. I'm not sure how this compares to its usual operation though as I only received this NAS and added disks this morning (WD Red Plus 2TB x 2 in RAID0 so definitely not a bottleneck). I'm going to try and upgrade the RAM to see if that improves things but it's possible this is just the limit of the old hardware.

         

        Also to add, don't forget to enable http/s on your share under Shares > Share Listing or it won't appear in Explorer or hostname/shares!

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More